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 | Static Public Attributes
MPM::PlotXY Class Reference

#include <plotxy.h>

List of all members.

Public Member Functions

 PlotXY (int xmin, int ymin, int width, int height, char const *Title=NULL, char const *Xlbl=NULL, char const *Ylbl=NULL)
virtual ~PlotXY ()
void AddCurve (char const *Name)
 Add curve (x-y values)
void AddCurve (Array< double > const *X, Array< double > const *Y, char const *Name)
 Add curve (x-y values)
void SetXY (size_t i, Array< double > const *X, Array< double > const *Y)
 Set X and Y pointers.
void DelCurve (size_t i)
 Remove curve (x-y values)
CurvePropsSetCurve (size_t i)
void CalcSF ()
 Calculate scale factors.
void DrawRulers ()
 Draw rulers.
void DrawLegend ()
 Draw legend.
PlotXYEqScales (bool EQScales=true)
 Set equal scale factors.
PlotXYRecalcSF (bool REcalcSF=true)
 Recalculate scale factors during draw ?
PlotXYWithFrame (bool WFrame=true)
 Draw an all-around frame ?
PlotXYBRuler (bool Visible=true, int nTicks=10)
 Set bottom ruler.
PlotXYLRuler (bool Visible=true, int nTicks=10)
 Set left ruler.
PlotXYSetBTicksFmt (char const *Fmt="%4.1f", int Size=5)
 Set bottom ruler ticks format, ex.: "%4.1f" => Size==5.
PlotXYSetLTicksFmt (char const *Fmt="%3.1f", int Size=5)
 Set left ruler ticks format, ex.: "%3.1f" => Size==5.
void draw ()

Static Public Attributes

static double MINZERO = sqrt(DBL_EPSILON)
 Minimum value to be replaced to 0.0 in _pretty method.

Constructor & Destructor Documentation

MPM::PlotXY::PlotXY ( int  xmin,
int  ymin,
int  width,
int  height,
char const *  Title = NULL,
char const *  Xlbl = NULL,
char const *  Ylbl = NULL 
) [inline]
virtual MPM::PlotXY::~PlotXY ( ) [inline, virtual]

Member Function Documentation

void MPM::PlotXY::AddCurve ( char const *  Name) [inline]

Add curve (x-y values)

void MPM::PlotXY::AddCurve ( Array< double > const *  X,
Array< double > const *  Y,
char const *  Name 
) [inline]

Add curve (x-y values)

PlotXY & MPM::PlotXY::BRuler ( bool  Visible = true,
int  nTicks = 10 
) [inline]

Set bottom ruler.

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

Calculate scale factors.

void MPM::PlotXY::DelCurve ( size_t  i) [inline]

Remove curve (x-y values)

void MPM::PlotXY::draw ( ) [inline]
void MPM::PlotXY::DrawLegend ( ) [inline]

Draw legend.

void MPM::PlotXY::DrawRulers ( ) [inline]

Draw rulers.

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

Set equal scale factors.

PlotXY & MPM::PlotXY::LRuler ( bool  Visible = true,
int  nTicks = 10 
) [inline]

Set left ruler.

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

Recalculate scale factors during draw ?

PlotXY & MPM::PlotXY::SetBTicksFmt ( char const *  Fmt = "%4.1f",
int  Size = 5 
) [inline]

Set bottom ruler ticks format, ex.: "%4.1f" => Size==5.

CurveProps & MPM::PlotXY::SetCurve ( size_t  i) [inline]
PlotXY & MPM::PlotXY::SetLTicksFmt ( char const *  Fmt = "%3.1f",
int  Size = 5 
) [inline]

Set left ruler ticks format, ex.: "%3.1f" => Size==5.

void MPM::PlotXY::SetXY ( size_t  i,
Array< double > const *  X,
Array< double > const *  Y 
) [inline]

Set X and Y pointers.

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

Draw an all-around frame ?


Member Data Documentation

double MPM::PlotXY::MINZERO = sqrt(DBL_EPSILON) [static]

Minimum value to be replaced to 0.0 in _pretty method.


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