Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

SXYSimpleGraph Class Reference

#include <sxy_graph_simple.h>

Inheritance diagram for SXYSimpleGraph:

Inheritance graph
[legend]
Collaboration diagram for SXYSimpleGraph:

Collaboration graph
[legend]
List of all members.

Public Methods

void setType (SXYSimpleGraphType typ)
SXYSimpleGraphType getType (void)
SXYChartgetTheChart (void)
SXYAxisgetVerticalAxis (void)
SXYAxisgetHorizontalAxis (void)
void remountGraph (void)
void getScales (double &xmin, double &xmax, double &ymin, double &ymax)
void setScales (double xmin, double xmax, double ymin, double ymax)
void setGridScales (double xmin, double xmax, double ymin, double ymax)
void getGridScales (double &xmin, double &xmax, double &ymin, double &ymax)
void fitHorizontalScale (void)
void fitVerticalScale (void)
void fitAllScales (void)
void revertHorizontalAxis (void)
void revertVerticalAxis (void)
void setAxesLayout (SXYSimpleGraphLayout new_layout)
void setHorizontalAxisDirection (SXYAxisDirection direction)
void setVerticalAxisDirection (SXYAxisDirection direction)
SXYAxisDirection getHorizontalAxisDirection (void)
SXYAxisDirection getVerticalAxisDirection (void)
void setHorizontalAxisPosition (double xp, double yp)
void setVerticalAxisPosition (double xp, double yp)
void getHorizontalAxisPosition (double &xp, double &yp)
void getVerticalAxisPosition (double &xp, double &yp)
void setVerticalAxisSize (double size)
double getVerticalAxisSize (void)
void setHorizontalAxisSize (double size)
double getHorizontalAxisSize (void)
void setTheTitle (char *title)
void setTheSubTitle (char *title)
char * getTheTitle (void)
char * getTheSubTitle (void)
void setHorizontalAxisTitle (char *title)
void setVerticalAxisTitle (char *title)
char * getHorizontalAxisTitle (void)
char * getVerticalAxisTitle (void)
void getAxesSteps (double &sx, double &sy)
void setAxesSteps (double sx, double sy)
void getGridsSteps (double &sx, double &sy)
void setGridsSteps (double sx, double sy)
void getGridsAutoMultipleSteps (double &smx, double &smy)
void setGridsAutoMultipleSteps (double smx, double smy)
void attachCurve (SXYCurve *curve)
void detachCurve (SXYCurve *curve)
 SXYSimpleGraph (Ihandle *iupcnv, SXYSimpleGraphType typ)
 Construtor da classe.

virtual ~SXYSimpleGraph ()
 Destrutor.


Protected Methods

void adaptGrid (SXYAxis *ax)
void inferGridType (SXYGridType *xtype, SXYGridType *ytype)
void inferAxisType (SXYAxisType *xtype, SXYAxisType *ytype)

Private Attributes

SXYSimpleGraphType type

Constructor & Destructor Documentation

SXYSimpleGraph::SXYSimpleGraph Ihandle *    iupcnv,
SXYSimpleGraphType    sgtype
 

Construtor da classe.

Parameters:
iupcnv handle do canvas IUP criado no ambiente Lua

Definition at line 25 of file sxy_graph_simple.cpp.

References type.

SXYSimpleGraph::~SXYSimpleGraph   [virtual]
 

Destrutor.

Definition at line 134 of file sxy_graph_simple.cpp.

References getHorizontalAxis(), SXYChart::getNumAxes(), SXYGraph::getNumCharts(), getTheChart(), and getVerticalAxis().


Member Function Documentation

void SXYSimpleGraph::adaptGrid SXYAxis   ax [protected]
 

Definition at line 278 of file sxy_graph_simple.cpp.

References SXYAxis::getDirection(), SXYAxis::getOrientation(), SXYAxis::getPosition(), SXYAxis::getScales(), SXYAxis::getSize(), getTheChart(), HORIZONTAL_AXIS, HORIZONTAL_GRID, SXYChart::setGridDirection(), SXYChart::setGridPosition(), SXYChart::setGridScales(), SXYChart::setGridSize(), SXYGridOrientation, and VERTICAL_GRID.

Referenced by fitAllScales(), fitHorizontalScale(), fitVerticalScale(), setHorizontalAxisDirection(), setHorizontalAxisPosition(), setVerticalAxisDirection(), and setVerticalAxisPosition().

void SXYSimpleGraph::attachCurve SXYCurve   curve
 

Definition at line 447 of file sxy_graph_simple.cpp.

References getHorizontalAxis(), getVerticalAxis(), and SXYCurve::setAxis().

void SXYSimpleGraph::detachCurve SXYCurve   curve
 

Definition at line 456 of file sxy_graph_simple.cpp.

References SXYCurve::unsetAxis().

void SXYSimpleGraph::fitAllScales void   
 

Definition at line 213 of file sxy_graph_simple.cpp.

References adaptGrid(), SXYGraph::fitScales(), getHorizontalAxis(), and getVerticalAxis().

void SXYSimpleGraph::fitHorizontalScale void   
 

Definition at line 199 of file sxy_graph_simple.cpp.

References adaptGrid(), SXYGraph::fitScales(), and getHorizontalAxis().

void SXYSimpleGraph::fitVerticalScale void   
 

Definition at line 206 of file sxy_graph_simple.cpp.

References adaptGrid(), SXYGraph::fitScales(), and getVerticalAxis().

void SXYSimpleGraph::getAxesSteps double &    sx,
double &    sy
 

Definition at line 165 of file sxy_graph_simple.cpp.

References getHorizontalAxis(), SXYAxis::getStep(), and getVerticalAxis().

void SXYSimpleGraph::getGridsAutoMultipleSteps double &    smx,
double &    smy
 

Definition at line 260 of file sxy_graph_simple.cpp.

References SXYChart::getGridAutoMultipleStep(), and getTheChart().

void SXYSimpleGraph::getGridScales double &    xmin,
double &    xmax,
double &    ymin,
double &    ymax
 

Definition at line 222 of file sxy_graph_simple.cpp.

References SXYChart::getGridScales(), and getTheChart().

void SXYSimpleGraph::getGridsSteps double &    sx,
double &    sy
 

Definition at line 242 of file sxy_graph_simple.cpp.

References SXYChart::getGridStep(), and getTheChart().

SXYAxis * SXYSimpleGraph::getHorizontalAxis void   
 

Definition at line 440 of file sxy_graph_simple.cpp.

References SXYChart::getAxis(), and getTheChart().

Referenced by attachCurve(), fitAllScales(), fitHorizontalScale(), getAxesSteps(), getHorizontalAxisDirection(), getHorizontalAxisSize(), getHorizontalAxisTitle(), getScales(), inferGridType(), revertHorizontalAxis(), setAxesSteps(), setHorizontalAxisDirection(), setHorizontalAxisPosition(), setHorizontalAxisSize(), setHorizontalAxisTitle(), setScales(), and ~SXYSimpleGraph().

SXYAxisDirection SXYSimpleGraph::getHorizontalAxisDirection void   
 

Definition at line 332 of file sxy_graph_simple.cpp.

References SXYAxis::getDirection(), getHorizontalAxis(), and SXYAxisDirection.

void SXYSimpleGraph::getHorizontalAxisPosition double &    xp,
double &    yp
 

double SXYSimpleGraph::getHorizontalAxisSize void   
 

Definition at line 512 of file sxy_graph_simple.cpp.

References getHorizontalAxis(), and SXYAxis::getSize().

char * SXYSimpleGraph::getHorizontalAxisTitle void   
 

Definition at line 398 of file sxy_graph_simple.cpp.

References getHorizontalAxis(), and SXYAxis::getTitle().

void SXYSimpleGraph::getScales double &    xmin,
double &    xmax,
double &    ymin,
double &    ymax
 

Definition at line 154 of file sxy_graph_simple.cpp.

References getHorizontalAxis(), SXYAxis::getScales(), and getVerticalAxis().

SXYChart * SXYSimpleGraph::getTheChart void   
 

Definition at line 427 of file sxy_graph_simple.cpp.

References SXYGraph::getChart().

Referenced by adaptGrid(), getGridsAutoMultipleSteps(), getGridScales(), getGridsSteps(), getHorizontalAxis(), getTheSubTitle(), getTheTitle(), getVerticalAxis(), remountGraph(), setGridsAutoMultipleSteps(), setGridScales(), setGridsSteps(), setScales(), setTheSubTitle(), setTheTitle(), and ~SXYSimpleGraph().

char * SXYSimpleGraph::getTheSubTitle void   
 

Definition at line 372 of file sxy_graph_simple.cpp.

References SXYChart::getSubTitle(), and getTheChart().

char * SXYSimpleGraph::getTheTitle void   
 

Definition at line 356 of file sxy_graph_simple.cpp.

References getTheChart(), and SXYChart::getTitle().

SXYSimpleGraphType SXYSimpleGraph::getType void   
 

Definition at line 421 of file sxy_graph_simple.cpp.

References SXYSimpleGraphType, and type.

Referenced by inferAxisType().

SXYAxis * SXYSimpleGraph::getVerticalAxis void   
 

Definition at line 433 of file sxy_graph_simple.cpp.

References SXYChart::getAxis(), and getTheChart().

Referenced by attachCurve(), fitAllScales(), fitVerticalScale(), getAxesSteps(), getScales(), getVerticalAxisDirection(), getVerticalAxisSize(), getVerticalAxisTitle(), inferGridType(), revertVerticalAxis(), setAxesSteps(), setScales(), setVerticalAxisDirection(), setVerticalAxisPosition(), setVerticalAxisSize(), setVerticalAxisTitle(), and ~SXYSimpleGraph().

SXYAxisDirection SXYSimpleGraph::getVerticalAxisDirection void   
 

Definition at line 340 of file sxy_graph_simple.cpp.

References SXYAxis::getDirection(), getVerticalAxis(), and SXYAxisDirection.

void SXYSimpleGraph::getVerticalAxisPosition double &    xp,
double &    yp
 

double SXYSimpleGraph::getVerticalAxisSize void   
 

Definition at line 496 of file sxy_graph_simple.cpp.

References SXYAxis::getSize(), and getVerticalAxis().

char * SXYSimpleGraph::getVerticalAxisTitle void   
 

Definition at line 406 of file sxy_graph_simple.cpp.

References SXYAxis::getTitle(), and getVerticalAxis().

void SXYSimpleGraph::inferAxisType SXYAxisType   xtype,
SXYAxisType   ytype
[protected]
 

Definition at line 111 of file sxy_graph_simple.cpp.

References getType(), LINEAR_AXIS, LOG_AXIS, LOG_SIMPLE_GRAPH, SEMILOG_SIMPLE_GRAPH, SXYSimpleGraphType, TIME_AXIS, TIME_LINEAR_SIMPLE_GRAPH, and TIME_LOG_SIMPLE_GRAPH.

Referenced by remountGraph().

void SXYSimpleGraph::inferGridType SXYGridType   xtype,
SXYGridType   ytype
[protected]
 

Definition at line 97 of file sxy_graph_simple.cpp.

References getHorizontalAxis(), SXYAxis::getType(), getVerticalAxis(), LINEAR_GRID, LOG_AXIS, and LOG_GRID.

Referenced by remountGraph().

void SXYSimpleGraph::remountGraph void    [virtual]
 

Implements SXYGraph.

Definition at line 32 of file sxy_graph_simple.cpp.

References SXYChart::getAxis(), SXYChart::getCurve(), SXYVector< T >::getElement(), SXYVector< T >::getLength(), SXYChart::getNumAxes(), SXYGraph::getNumCharts(), SXYChart::getNumCurves(), getTheChart(), inferAxisType(), inferGridType(), SXYChart::insertAxis(), SXYGraph::insertChart(), SXYVector< T >::insertElement(), SXYChart::removeAxis(), SXYGraph::removeChart(), SXYChart::setGridType(), SXYChart::setLayoutFrom(), SXYAxis::setLayoutFrom(), SXYAxisType, SXYGridType, and SXYChart::tryGridAdjust().

Referenced by setType().

void SXYSimpleGraph::revertHorizontalAxis void   
 

Definition at line 462 of file sxy_graph_simple.cpp.

References SXYAxis::getDirection(), getHorizontalAxis(), SXYAxis::getPosition(), INVERTED_AXIS, NORMAL_AXIS, SXYAxis::setDirection(), SXYAxis::setPosition(), and SXYAxisDirection.

void SXYSimpleGraph::revertVerticalAxis void   
 

Definition at line 475 of file sxy_graph_simple.cpp.

References SXYAxis::getDirection(), SXYAxis::getPosition(), getVerticalAxis(), INVERTED_AXIS, NORMAL_AXIS, SXYAxis::setDirection(), SXYAxis::setPosition(), and SXYAxisDirection.

void SXYSimpleGraph::setAxesLayout SXYSimpleGraphLayout    new_layout
 

Definition at line 520 of file sxy_graph_simple.cpp.

References DEPTH_LAYOUT, HALF_CROSS_LAYOUT, QUARTER_CROSS_LAYOUT, setHorizontalAxisDirection(), setHorizontalAxisPosition(), setHorizontalAxisSize(), setVerticalAxisDirection(), setVerticalAxisPosition(), setVerticalAxisSize(), and TYPICAL_LAYOUT.

void SXYSimpleGraph::setAxesSteps double    sx,
double    sy
 

Definition at line 175 of file sxy_graph_simple.cpp.

References getHorizontalAxis(), getVerticalAxis(), and SXYAxis::setStep().

void SXYSimpleGraph::setGridsAutoMultipleSteps double    smx,
double    smy
 

Definition at line 269 of file sxy_graph_simple.cpp.

References getTheChart(), and SXYChart::setGridAutoMultipleStep().

void SXYSimpleGraph::setGridScales double    xmin,
double    xmax,
double    ymin,
double    ymax
 

Definition at line 232 of file sxy_graph_simple.cpp.

References getTheChart(), and SXYChart::setGridScales().

void SXYSimpleGraph::setGridsSteps double    sx,
double    sy
 

Definition at line 251 of file sxy_graph_simple.cpp.

References getTheChart(), and SXYChart::setGridStep().

void SXYSimpleGraph::setHorizontalAxisDirection SXYAxisDirection    direction
 

Definition at line 296 of file sxy_graph_simple.cpp.

References adaptGrid(), getHorizontalAxis(), and SXYAxis::setDirection().

Referenced by setAxesLayout().

void SXYSimpleGraph::setHorizontalAxisPosition double    xp,
double    yp
 

Definition at line 305 of file sxy_graph_simple.cpp.

References adaptGrid(), getHorizontalAxis(), and SXYAxis::setPosition().

Referenced by setAxesLayout().

void SXYSimpleGraph::setHorizontalAxisSize double    size
 

Definition at line 504 of file sxy_graph_simple.cpp.

References getHorizontalAxis(), and SXYAxis::setSize().

Referenced by setAxesLayout().

void SXYSimpleGraph::setHorizontalAxisTitle char *    title
 

Definition at line 381 of file sxy_graph_simple.cpp.

References getHorizontalAxis(), and SXYAxis::setTitle().

void SXYSimpleGraph::setScales double    xmin,
double    xmax,
double    ymin,
double    ymax
 

Definition at line 185 of file sxy_graph_simple.cpp.

References getHorizontalAxis(), getTheChart(), getVerticalAxis(), SXYAxis::setScales(), and SXYChart::tryGridAdjust().

void SXYSimpleGraph::setTheSubTitle char *    title
 

Definition at line 364 of file sxy_graph_simple.cpp.

References getTheChart(), and SXYChart::setSubTitle().

void SXYSimpleGraph::setTheTitle char *    title
 

Definition at line 348 of file sxy_graph_simple.cpp.

References getTheChart(), and SXYChart::setTitle().

void SXYSimpleGraph::setType SXYSimpleGraphType    typ
 

Definition at line 414 of file sxy_graph_simple.cpp.

References remountGraph(), and type.

void SXYSimpleGraph::setVerticalAxisDirection SXYAxisDirection    direction
 

Definition at line 323 of file sxy_graph_simple.cpp.

References adaptGrid(), getVerticalAxis(), and SXYAxis::setDirection().

Referenced by setAxesLayout().

void SXYSimpleGraph::setVerticalAxisPosition double    xp,
double    yp
 

Definition at line 314 of file sxy_graph_simple.cpp.

References adaptGrid(), getVerticalAxis(), and SXYAxis::setPosition().

Referenced by setAxesLayout().

void SXYSimpleGraph::setVerticalAxisSize double    size
 

Definition at line 488 of file sxy_graph_simple.cpp.

References getVerticalAxis(), and SXYAxis::setSize().

Referenced by setAxesLayout().

void SXYSimpleGraph::setVerticalAxisTitle char *    title
 

Definition at line 389 of file sxy_graph_simple.cpp.

References getVerticalAxis(), and SXYAxis::setTitle().


Member Data Documentation

SXYSimpleGraphType SXYSimpleGraph::type [private]
 

Definition at line 42 of file sxy_graph_simple.h.

Referenced by getType(), setType(), and SXYSimpleGraph().


The documentation for this class was generated from the following files:
SXY
Tecgraf / PUC-Rio - Computer Graphics Technology Group