#include <sxy_chart.h>
Collaboration diagram for SXYChart:
Public Methods | |
XYCartesian * | getXyGraph (void) |
XYRasterText * | getXyTitle (void) |
XYRasterText * | getXySubTitle (void) |
void | repaintChart (cdCanvas *cnv, SXYGraphDoubleBufferMode mode) |
void | rebuildMaskArea (void) |
void | setLegendVisibility (unsigned int flag) |
unsigned int | getLegendVisibility (void) |
XYLegend * | getXyLegend (void) |
void | getLegendRelativePosition (double &x, double &y) |
void | setLegendRelativePosition (double x, double y) |
SXYAxis * | getAxis (SXYAxisOrientation orientation, unsigned int a) |
unsigned int | getNumAxes (SXYAxisOrientation orientation) |
void | insertAxis (SXYAxisOrientation orientation, SXYAxis *axis) |
void | removeAxis (SXYAxisOrientation orientation, SXYAxis *axis) |
SXYCurve * | getCurve (unsigned int c) |
unsigned int | getNumCurves (void) |
void | insertCurve (SXYCurve *curve) |
void | removeCurve (SXYCurve *curve) |
SXYArea * | getArea (unsigned int a) |
unsigned int | getNumAreas (void) |
void | insertArea (SXYArea *area) |
void | removeArea (SXYArea *area) |
char * | getTitle (void) |
void | setTitle (char *txt) |
void | setTitleColor (long int col) |
long int | getTitleColor (void) |
void | setSubTitle (char *txt) |
char * | getSubTitle (void) |
void | setSubTitleColor (long int col) |
long int | getSubTitleColor (void) |
void | setBackgroundColor (long int color) |
void | setGridColor (long int color) |
void | setMainColor (long int color) |
long int | getBackgroundColor (void) |
long int | getMainColor (void) |
long int | getGridColor (void) |
void | setLayoutFrom (SXYChart *other) |
void | setGridAutoMultipleStep (SXYGridOrientation orientation, double mulstep) |
void | setGridSize (SXYGridOrientation orientation, double size) |
void | setGridPosition (SXYGridOrientation orientation, double xp, double yp) |
void | setGridDirection (SXYGridOrientation orientation, SXYGridDirection dir) |
void | setGridType (SXYGridOrientation orientation, SXYGridType type) |
void | setGridVisibility (SXYGridOrientation orientation, unsigned int flag) |
void | setGridScales (SXYGridOrientation orientation, double min, double max) |
void | setGridStep (SXYGridOrientation orientation, double val) |
void | setZoom (double xratio, double yratio) |
void | setAllAxis (SXYAxisOrientation orientation, double vmin, double vmax) |
void | tryGridAdjust (void) |
void | fitScale (SXYAxisOrientation orientation) |
Essa funcao calcula qual deve ser o valor do eixo dada a orientacao para que caibam todas as curvas contidas dentro dele. | |
double | getGridAutoMultipleStep (SXYGridOrientation orientation) |
unsigned int | getGridVisibility (SXYGridOrientation orientation) |
void | getGridScales (SXYGridOrientation orientation, double &min, double &max) |
double | getGridStep (SXYGridOrientation orientation) |
SXYGridType | getGridType (SXYGridOrientation orientation) |
SXYGridDirection | getGridDirection (SXYGridOrientation orientation) |
SXYGraph * | getGraph (void) |
virtual | ~SXYChart () |
Liberação de todos os objetos XY criados pelo construtor. | |
SXYChart (SXYGraph *gra, double nxmin, double nymin, double nxmax, double nymax) | |
Construtor da classe. | |
Static Public Methods | |
int | getFontSizeReference (void) |
Private Methods | |
unsigned int | getNumCurvesWithAxis (SXYAxis *axis, SXYAxisOrientation orientation) |
SXYCurve * | getCurveFromAxis (int n, SXYAxis *axis, SXYAxisOrientation orientation) |
Private Attributes | |
double | xmulstep |
Multiplo para o grid horizontal a partir do eixo X principal. | |
double | ymulstep |
Multiplo para o grid vertical a partir do eixo Y principal. | |
SXYGraph * | graph |
Estrutura do Gráfico que contém o chart. | |
XYRasterText * | xy_title |
Objeto XY que representa o título do gráfico. | |
XYRasterText * | xy_subtitle |
Objeto XY que representa o subtítulo do gráfico. | |
SXYVector< SXYArea * > * | areas_vector |
Estrutura com os objetos XY que manipulam as áreas. | |
SXYVector< SXYCurve * > * | curves_vector |
Estrutura com os objetos XY que manipulam as máscaras. | |
SXYVector< SXYAxis * > * | xaxes_vector |
Estrutura com os objetos XY que manipulam os eixos hosrizontais. | |
SXYVector< SXYAxis * > * | yaxes_vector |
Estrutura com os objetos XY que manipulam os eixos verticais. | |
XYLegend * | xy_legend |
Objeto XY que representa a legenda do gráfico. | |
SXYGridType | xgrid_type |
tipo de grid vertical | |
SXYGridType | ygrid_type |
tipo de grid horizontal | |
XYGrid * | xy_xgrid |
Objeto XY que representa o grid x do gráfico. | |
XYGrid * | xy_ygrid |
Objeto XY que representa o grid y do gráfico. | |
XYCartesian * | xy_graph |
Objeto XY que representa o gráfico. |
|
Liberação de todos os objetos XY criados pelo construtor.
Definition at line 118 of file sxy_chart.cpp. References areas_vector, curves_vector, xaxes_vector, xy_graph, xy_legend, xy_subtitle, xy_title, xy_xgrid, xy_ygrid, and yaxes_vector. |
|
Construtor da classe.
Definition at line 30 of file sxy_chart.cpp. References areas_vector, curves_vector, SXYGraph::getCdCanvas(), getFontSizeReference(), graph, MAX_AREAS, MAX_AXIS, MAX_CURVES, setGridType(), xaxes_vector, xmulstep, xy_graph, xy_legend, xy_subtitle, xy_title, xy_xgrid, xy_ygrid, yaxes_vector, and ymulstep. |
|
Essa funcao calcula qual deve ser o valor do eixo dada a orientacao para que caibam todas as curvas contidas dentro dele.
Definition at line 666 of file sxy_chart.cpp. References SXYUtil::calcZoomOut(), getAxis(), getCurveFromAxis(), SXYCurve::getLimits(), getNumAxes(), getNumCurvesWithAxis(), SXYAxis::getType(), HORIZONTAL_AXIS, LINEAR_AXIS, SXYAxis::setScales(), tryGridAdjust(), and SXYAxis::tryScalesAdjust(). Referenced by SXYGraph::fitScales(). |
|
Definition at line 260 of file sxy_chart.cpp. References areas_vector, and SXYVector< SXYArea * >::getElement(). |
|
Definition at line 318 of file sxy_chart.cpp. References SXYVector< SXYAxis * >::getElement(), HORIZONTAL_AXIS, xaxes_vector, and yaxes_vector. Referenced by SXYGraph::fitAllAxis(), fitScale(), SXYSimpleGraph::getHorizontalAxis(), SXYSimpleGraph::getVerticalAxis(), SXYTaskZoomIn::makeZoom(), SXYTaskAdjustAxis::mouseClick(), SXYSimpleGraph::remountGraph(), setAllAxis(), setZoom(), and tryGridAdjust(). |
|
Definition at line 179 of file sxy_chart.cpp. References xy_graph. Referenced by cb_back_color(), and setLayoutFrom(). |
|
Definition at line 287 of file sxy_chart.cpp. References curves_vector, and SXYVector< SXYCurve * >::getElement(). Referenced by getCurveFromAxis(), getNumCurvesWithAxis(), SXYTaskPickMask::mouseClick(), SXYTaskMovePoint::mouseClick(), and SXYSimpleGraph::remountGraph(). |
|
Definition at line 717 of file sxy_chart.cpp. References getCurve(), SXYCurve::getHorizontalAxis(), getNumCurves(), SXYCurve::getVerticalAxis(), and HORIZONTAL_AXIS. Referenced by fitScale(). |
|
Definition at line 401 of file sxy_chart.cpp. Referenced by SXYAxis::SXYAxis(), and SXYChart(). |
|
Definition at line 235 of file sxy_chart.cpp. References graph. |
|
Definition at line 585 of file sxy_chart.cpp. References HORIZONTAL_GRID, xmulstep, and ymulstep. Referenced by SXYSimpleGraph::getGridsAutoMultipleSteps(). |
|
Definition at line 166 of file sxy_chart.cpp. References xy_xgrid. Referenced by cb_grid_color(), and setLayoutFrom(). |
|
Definition at line 515 of file sxy_chart.cpp. References HORIZONTAL_GRID, INVERTED_GRID, NORMAL_GRID, SXYGridDirection, xy_xgrid, and xy_ygrid. |
|
Definition at line 544 of file sxy_chart.cpp. References HORIZONTAL_GRID, max, min, xy_xgrid, and xy_ygrid. Referenced by SXYSimpleGraph::getGridScales(). |
|
Definition at line 554 of file sxy_chart.cpp. References HORIZONTAL_GRID, xy_xgrid, and xy_ygrid. Referenced by SXYSimpleGraph::getGridsSteps(). |
|
Definition at line 530 of file sxy_chart.cpp. References HORIZONTAL_GRID, SXYGridType, xgrid_type, and ygrid_type. |
|
Definition at line 536 of file sxy_chart.cpp. References HORIZONTAL_GRID, xy_xgrid, and xy_ygrid. |
|
Definition at line 191 of file sxy_chart.cpp. References xy_legend. Referenced by setLayoutFrom(). |
|
Definition at line 211 of file sxy_chart.cpp. References xy_legend. |
|
Definition at line 154 of file sxy_chart.cpp. References xy_graph. Referenced by cb_main_color(), and setLayoutFrom(). |
|
Definition at line 266 of file sxy_chart.cpp. References areas_vector, and SXYVector< SXYArea * >::getLength(). |
|
Definition at line 330 of file sxy_chart.cpp. References SXYVector< SXYAxis * >::getLength(), HORIZONTAL_AXIS, xaxes_vector, and yaxes_vector. Referenced by SXYGraph::fitAllAxis(), fitScale(), SXYTaskZoomIn::makeZoom(), SXYTaskAdjustAxis::mouseClick(), SXYSimpleGraph::remountGraph(), setAllAxis(), setZoom(), and SXYSimpleGraph::~SXYSimpleGraph(). |
|
Definition at line 293 of file sxy_chart.cpp. References curves_vector, and SXYVector< SXYCurve * >::getLength(). Referenced by getCurveFromAxis(), getNumCurvesWithAxis(), insertCurve(), SXYTaskPickMask::mouseClick(), SXYTaskMovePoint::mouseClick(), SXYSimpleGraph::remountGraph(), and removeCurve(). |
|
Definition at line 737 of file sxy_chart.cpp. References getCurve(), SXYCurve::getHorizontalAxis(), getNumCurves(), SXYCurve::getVerticalAxis(), and HORIZONTAL_AXIS. Referenced by fitScale(). |
|
Definition at line 376 of file sxy_chart.cpp. References xy_subtitle. Referenced by SXYSimpleGraph::getTheSubTitle(), and setLayoutFrom(). |
|
Definition at line 414 of file sxy_chart.cpp. References xy_subtitle. Referenced by setLayoutFrom(). |
|
Definition at line 369 of file sxy_chart.cpp. References xy_title. Referenced by SXYSimpleGraph::getTheTitle(), and setLayoutFrom(). |
|
Definition at line 407 of file sxy_chart.cpp. References xy_title. Referenced by setLayoutFrom(). |
|
Definition at line 395 of file sxy_chart.cpp. References xy_graph. Referenced by SXYCurve::attachMask(), SXYCurve::detachMask(), SXYGraph::getChartOfEvent(), SXYArea::SXYArea(), and SXYArea::~SXYArea(). |
|
Definition at line 229 of file sxy_chart.cpp. References xy_legend. Referenced by SXYTaskMoveLegend::mouseClick(). |
|
Definition at line 223 of file sxy_chart.cpp. References xy_subtitle. Referenced by SXYTaskEditText::mouseClick(). |
|
Definition at line 217 of file sxy_chart.cpp. References xy_title. Referenced by SXYTaskEditText::mouseClick(). |
|
Definition at line 273 of file sxy_chart.cpp. References areas_vector, and SXYVector< SXYArea * >::insertElement(). |
|
Definition at line 343 of file sxy_chart.cpp. References HORIZONTAL_AXIS, SXYVector< SXYAxis * >::insertElement(), xaxes_vector, and yaxes_vector. Referenced by SXYSimpleGraph::remountGraph(). |
|
Definition at line 300 of file sxy_chart.cpp. References curves_vector, getNumCurves(), SXYVector< SXYCurve * >::insertElement(), and xy_legend. Referenced by SXYCurve::setAxis(). |
|
Definition at line 253 of file sxy_chart.cpp. References xy_graph. Referenced by repaintChart(). |
|
Definition at line 280 of file sxy_chart.cpp. References areas_vector, and SXYVector< SXYArea * >::removeElement(). |
|
Definition at line 356 of file sxy_chart.cpp. References HORIZONTAL_AXIS, SXYVector< SXYAxis * >::removeElement(), xaxes_vector, and yaxes_vector. Referenced by SXYSimpleGraph::remountGraph(). |
|
Definition at line 309 of file sxy_chart.cpp. References curves_vector, getNumCurves(), SXYVector< SXYCurve * >::removeElement(), and xy_legend. Referenced by SXYCurve::setAxis(), and SXYCurve::unsetAxis(). |
|
Definition at line 241 of file sxy_chart.cpp. References rebuildMaskArea(), WITH_DOUBLE_BUFFER, and xy_graph. Referenced by SXYGraph::drawChartsAt(). |
|
Definition at line 704 of file sxy_chart.cpp. References getAxis(), getNumAxes(), SXYAxis::setScales(), tryGridAdjust(), and SXYAxis::tryScalesAdjust(). Referenced by SXYGraph::fitAllAxis(). |
|
Definition at line 185 of file sxy_chart.cpp. References xy_graph. Referenced by cb_back_color(), and setLayoutFrom(). |
|
Definition at line 592 of file sxy_chart.cpp. References HORIZONTAL_GRID, xmulstep, and ymulstep. Referenced by SXYSimpleGraph::setGridsAutoMultipleSteps(). |
|
Definition at line 172 of file sxy_chart.cpp. References xy_xgrid, and xy_ygrid. Referenced by cb_grid_color(), and setLayoutFrom(). |
|
Definition at line 485 of file sxy_chart.cpp. References HORIZONTAL_GRID, NORMAL_GRID, xy_xgrid, and xy_ygrid. Referenced by SXYSimpleGraph::adaptGrid(), and tryGridAdjust(). |
|
Definition at line 471 of file sxy_chart.cpp. References HORIZONTAL_GRID, xy_xgrid, and xy_ygrid. Referenced by SXYSimpleGraph::adaptGrid(). |
|
Definition at line 600 of file sxy_chart.cpp. References HORIZONTAL_GRID, xy_xgrid, and xy_ygrid. Referenced by SXYSimpleGraph::adaptGrid(), SXYSimpleGraph::setGridScales(), and tryGridAdjust(). |
|
Definition at line 646 of file sxy_chart.cpp. References HORIZONTAL_GRID, xy_xgrid, and xy_ygrid. Referenced by SXYSimpleGraph::adaptGrid(). |
|
Definition at line 654 of file sxy_chart.cpp. References HORIZONTAL_GRID, xy_xgrid, and xy_ygrid. Referenced by SXYSimpleGraph::setGridsSteps(), and tryGridAdjust(). |
|
Definition at line 421 of file sxy_chart.cpp. References HORIZONTAL_GRID, LINEAR_GRID, LOG_GRID, VERTICAL_GRID, xgrid_type, xy_graph, xy_xgrid, xy_ygrid, and ygrid_type. Referenced by SXYSimpleGraph::remountGraph(), and SXYChart(). |
|
Definition at line 576 of file sxy_chart.cpp. References HORIZONTAL_GRID, xy_xgrid, and xy_ygrid. |
|
Definition at line 758 of file sxy_chart.cpp. References getBackgroundColor(), getGridColor(), getLegendRelativePosition(), getMainColor(), getSubTitle(), getSubTitleColor(), getTitle(), getTitleColor(), setBackgroundColor(), setGridColor(), setLegendRelativePosition(), setMainColor(), setSubTitle(), setSubTitleColor(), setTitle(), and setTitleColor(). Referenced by SXYSimpleGraph::remountGraph(). |
|
Definition at line 199 of file sxy_chart.cpp. References xy_legend. Referenced by setLayoutFrom(). |
|
Definition at line 205 of file sxy_chart.cpp. References xy_legend. |
|
Definition at line 160 of file sxy_chart.cpp. References xy_graph. Referenced by cb_main_color(), and setLayoutFrom(). |
|
Definition at line 389 of file sxy_chart.cpp. References xy_subtitle. Referenced by setLayoutFrom(), and SXYSimpleGraph::setTheSubTitle(). |
|
Definition at line 569 of file sxy_chart.cpp. References xy_subtitle. Referenced by setLayoutFrom(). |
|
Definition at line 383 of file sxy_chart.cpp. References xy_title. Referenced by setLayoutFrom(), and SXYSimpleGraph::setTheTitle(). |
|
Definition at line 562 of file sxy_chart.cpp. References xy_title. Referenced by setLayoutFrom(). |
|
Definition at line 630 of file sxy_chart.cpp. References getAxis(), getNumAxes(), SXYAxis::setZoom(), and tryGridAdjust(). Referenced by SXYGraph::setZoom(). |
|
Definition at line 610 of file sxy_chart.cpp. References getAxis(), SXYAxis::getDirection(), SXYAxis::getScales(), SXYAxis::getStep(), setGridDirection(), setGridScales(), and setGridStep(). Referenced by fitScale(), SXYTaskZoomIn::makeZoom(), SXYSimpleGraph::remountGraph(), setAllAxis(), SXYSimpleGraph::setScales(), setZoom(), and SXYGraph::tryGridAdjust(). |
|
Estrutura com os objetos XY que manipulam as áreas.
Definition at line 60 of file sxy_chart.h. Referenced by getArea(), getNumAreas(), insertArea(), removeArea(), SXYChart(), and ~SXYChart(). |
|
Estrutura com os objetos XY que manipulam as máscaras.
Definition at line 63 of file sxy_chart.h. Referenced by getCurve(), getNumCurves(), insertCurve(), removeCurve(), SXYChart(), and ~SXYChart(). |
|
Estrutura do Gráfico que contém o chart.
Definition at line 51 of file sxy_chart.h. Referenced by getGraph(), and SXYChart(). |
|
Estrutura com os objetos XY que manipulam os eixos hosrizontais.
Definition at line 66 of file sxy_chart.h. Referenced by getAxis(), getNumAxes(), insertAxis(), removeAxis(), SXYChart(), and ~SXYChart(). |
|
tipo de grid vertical
Definition at line 75 of file sxy_chart.h. Referenced by getGridType(), and setGridType(). |
|
Multiplo para o grid horizontal a partir do eixo X principal.
Definition at line 45 of file sxy_chart.h. Referenced by getGridAutoMultipleStep(), setGridAutoMultipleStep(), and SXYChart(). |
|
Objeto XY que representa o gráfico.
Definition at line 87 of file sxy_chart.h. Referenced by getBackgroundColor(), getMainColor(), getXyGraph(), rebuildMaskArea(), repaintChart(), setBackgroundColor(), setGridType(), setMainColor(), SXYChart(), and ~SXYChart(). |
|
Objeto XY que representa a legenda do gráfico.
Definition at line 72 of file sxy_chart.h. Referenced by getLegendRelativePosition(), getLegendVisibility(), getXyLegend(), insertCurve(), removeCurve(), setLegendRelativePosition(), setLegendVisibility(), SXYChart(), and ~SXYChart(). |
|
Objeto XY que representa o subtítulo do gráfico.
Definition at line 57 of file sxy_chart.h. Referenced by getSubTitle(), getSubTitleColor(), getXySubTitle(), setSubTitle(), setSubTitleColor(), SXYChart(), and ~SXYChart(). |
|
Objeto XY que representa o título do gráfico.
Definition at line 54 of file sxy_chart.h. Referenced by getTitle(), getTitleColor(), getXyTitle(), setTitle(), setTitleColor(), SXYChart(), and ~SXYChart(). |
|
Objeto XY que representa o grid x do gráfico.
Definition at line 81 of file sxy_chart.h. Referenced by getGridColor(), getGridDirection(), getGridScales(), getGridStep(), getGridVisibility(), setGridColor(), setGridDirection(), setGridPosition(), setGridScales(), setGridSize(), setGridStep(), setGridType(), setGridVisibility(), SXYChart(), and ~SXYChart(). |
|
Objeto XY que representa o grid y do gráfico.
Definition at line 84 of file sxy_chart.h. Referenced by getGridDirection(), getGridScales(), getGridStep(), getGridVisibility(), setGridColor(), setGridDirection(), setGridPosition(), setGridScales(), setGridSize(), setGridStep(), setGridType(), setGridVisibility(), SXYChart(), and ~SXYChart(). |
|
Estrutura com os objetos XY que manipulam os eixos verticais.
Definition at line 69 of file sxy_chart.h. Referenced by getAxis(), getNumAxes(), insertAxis(), removeAxis(), SXYChart(), and ~SXYChart(). |
|
tipo de grid horizontal
Definition at line 78 of file sxy_chart.h. Referenced by getGridType(), and setGridType(). |
|
Multiplo para o grid vertical a partir do eixo Y principal.
Definition at line 48 of file sxy_chart.h. Referenced by getGridAutoMultipleStep(), setGridAutoMultipleStep(), and SXYChart(). |