MechSys  1.0
Computing library for simulations in continuum and discrete mechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions
MPM::DrawArea2D Class Reference

#include <drawarea2d.h>

List of all members.

Public Member Functions

 DrawArea2D (int xmin, int ymin, int width, int height)
virtual ~DrawArea2D ()
void SetGrid (Grid2D const *G)
 Set grid.
void SetPoints (MPoints2D const *P)
 Set material points.
void SetTime (double const *t)
 Set time.
void SetM (double const *M)
 Set multiplier for external forces.
void CalcSF ()
 Calculate scale factors.
size_t SelP () const
 Return the selected mat point id.
size_t SelN () const
 Return the selected grid node id.
void ResetSelP (size_t i)
 Set the selected mat point for output (reset previous to -1 => must call redraw())
DrawArea2DEqScales (bool EQScales=true)
 Set equal scale factors.
DrawArea2DRecalcSF (bool REcalcSF=true)
 Recalculate scale factors during draw ?
DrawArea2DWithFrame (bool WFrame=true)
 Draw an all-around frame ?
void SavePNG (char const *Filename)
void draw ()

Protected Member Functions

int handle (int E)

Constructor & Destructor Documentation

MPM::DrawArea2D::DrawArea2D ( int  xmin,
int  ymin,
int  width,
int  height 
) [inline]
MPM::DrawArea2D::~DrawArea2D ( ) [inline, virtual]

Member Function Documentation

void MPM::DrawArea2D::CalcSF ( ) [inline]

Calculate scale factors.

void MPM::DrawArea2D::draw ( ) [inline]

Draw method (internal).

DrawArea2D& MPM::DrawArea2D::EqScales ( bool  EQScales = true) [inline]

Set equal scale factors.

int MPM::DrawArea2D::handle ( int  E) [inline, protected]

Catch events.

DrawArea2D& MPM::DrawArea2D::RecalcSF ( bool  REcalcSF = true) [inline]

Recalculate scale factors during draw ?

void MPM::DrawArea2D::ResetSelP ( size_t  i) [inline]

Set the selected mat point for output (reset previous to -1 => must call redraw())

void MPM::DrawArea2D::SavePNG ( char const *  Filename) [inline]
size_t MPM::DrawArea2D::SelN ( ) const [inline]

Return the selected grid node id.

size_t MPM::DrawArea2D::SelP ( ) const [inline]

Return the selected mat point id.

void MPM::DrawArea2D::SetGrid ( Grid2D const *  G) [inline]

Set grid.

void MPM::DrawArea2D::SetM ( double const *  M) [inline]

Set multiplier for external forces.

void MPM::DrawArea2D::SetPoints ( MPoints2D const *  P) [inline]

Set material points.

void MPM::DrawArea2D::SetTime ( double const *  t) [inline]

Set time.

DrawArea2D& MPM::DrawArea2D::WithFrame ( bool  WFrame = true) [inline]

Draw an all-around frame ?


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines