#include <sxy_graph.h>
Inheritance diagram for SXYGraph:
Public Methods | |
SXYChart * | getChart (int i) |
int | getNumCharts (void) |
void | insertChart (SXYChart *cht) |
void | removeChart (SXYChart *cht) |
void | setStandartTasks (void) |
SXYTask * | getTask (int i) |
int | getNumTasks (void) |
void | insertTask (SXYTask *tsk) |
void | removeTask (SXYTask *tsk) |
int | getChartOfEvent (int x, int y) |
int | getDeviceSizeMM (double &w, double &h) |
cdCanvas * | getCdCanvas (void) |
Função para consulta do canvas CD associado ao gráfico. | |
Ihandle * | getIupCanvas (void) |
Função para consulta do canvas IUP associado ao gráfico. | |
void | activateDisplayCanvas (void) |
void | setZoom (double xratio, double yratio) |
void | fitScales (SXYGraphFitOption opt) |
void | redrawGraph (void) |
void | printGraph (int ask, char *ps_cmd) |
void | copyGraph (int width, int height) |
virtual void | remountGraph (void)=0 |
virtual void | updateGraph (void) |
void | tryGridAdjust () |
SXYGraph (Ihandle *iupcnv) | |
Construtor da classe. | |
virtual | ~SXYGraph () |
Destrutor. | |
Protected Methods | |
virtual void | mouseClick (int b, int x, int y, int sft, int ctr) |
virtual void | mouseUnclick (int b, int x, int y, int sft, int ctr) |
virtual void | mouseMotion (int x, int y, int sft, int ctr) |
virtual void | mouseEnter (void) |
virtual void | mouseLeave (void) |
Private Methods | |
void | fitAllAxis (SXYAxisOrientation orientation) |
void | drawChartsAt (cdCanvas *cnv, SXYGraphDoubleBufferMode mode) |
void | deleteGraphDatas (void) |
Static Private Methods | |
SXYGraph * | getThis (Ihandle *handle) |
int | iupActionCallback (Ihandle *h) |
int | iupResizeCallback (Ihandle *h, int width, int height) |
int | iupEnterCallback (Ihandle *h) |
int | iupLeaveCallback (Ihandle *h) |
int | iupMotionCallback (Ihandle *h, int x, int y, char *r) |
int | iupButtonCallback (Ihandle *h, int b, int e, int x, int y, char *r) |
Private Attributes | |
SXYVector< SXYChart * > * | charts_vector |
Vetor para a estrutura que armazena os objetos (um gráfico) XY relativos ao gráfico. | |
SXYVector< SXYTask * > * | tasks_vector |
Vetor para a estrutura que armazena as tarefas associadas ao gráfico. | |
cdCanvas * | cd_canvas |
Handle do canvas CD (utilizado para desenho). | |
Ihandle * | iup_canvas |
Handle do canvas IUP (utilizado para interação com o usuário). |
|
Construtor da classe.
Definition at line 39 of file sxy_graph.cpp. References cd_canvas, charts_vector, MAX_CHARTS, MAX_TASKS, and tasks_vector. |
|
Destrutor.
Definition at line 78 of file sxy_graph.cpp. References cd_canvas, charts_vector, and tasks_vector. |
|
Definition at line 391 of file sxy_graph.cpp. Referenced by drawChartsAt(), getChartOfEvent(), iupButtonCallback(), iupMotionCallback(), and iupResizeCallback(). |
|
Definition at line 237 of file sxy_graph.cpp. References drawChartsAt(), and redrawGraph(). |
|
|
|
Definition at line 206 of file sxy_graph.cpp. References activateDisplayCanvas(), getChart(), getNumCharts(), and SXYChart::repaintChart(). Referenced by copyGraph(), printGraph(), and redrawGraph(). |
|
Definition at line 121 of file sxy_graph.cpp. References SXYUtil::calcZoomOut(), SXYChart::getAxis(), getChart(), SXYChart::getNumAxes(), getNumCharts(), SXYAxis::getScales(), max, min, and SXYChart::setAllAxis(). Referenced by fitScales(). |
|
Definition at line 151 of file sxy_graph.cpp. References ALL_X, ALL_Y, fitAllAxis(), SXYChart::fitScale(), getChart(), getNumCharts(), INDIVIDUAL_X, and INDIVIDUAL_Y. Referenced by SXYSimpleGraph::fitAllScales(), SXYSimpleGraph::fitHorizontalScale(), and SXYSimpleGraph::fitVerticalScale(). |
|
Função para consulta do canvas CD associado ao gráfico.
Definition at line 95 of file sxy_graph.cpp. References cd_canvas. Referenced by getDeviceSizeMM(), and SXYChart::SXYChart(). |
|
|
|
Definition at line 109 of file sxy_graph.cpp. References getCdCanvas(). |
|
Função para consulta do canvas IUP associado ao gráfico.
Definition at line 103 of file sxy_graph.cpp. References iup_canvas. Referenced by SXYTaskZoomIn::mouseClick(), SXYTaskMovePoint::mouseClick(), SXYTaskZoomIn::mouseEnter(), SXYTaskMovePoint::mouseEnter(), SXYTaskZoomIn::mouseLeave(), SXYTaskMovePoint::mouseLeave(), SXYTaskZoomIn::mouseUnclick(), and SXYTaskMovePoint::mouseUnclick(). |
|
Definition at line 324 of file sxy_graph.cpp. References charts_vector, and SXYVector< SXYChart * >::getLength(). Referenced by drawChartsAt(), fitAllAxis(), fitScales(), getChartOfEvent(), SXYSimpleGraph::remountGraph(), setZoom(), tryGridAdjust(), and SXYSimpleGraph::~SXYSimpleGraph(). |
|
Definition at line 296 of file sxy_graph.cpp. References SXYVector< SXYTask * >::getLength(), and tasks_vector. Referenced by iupButtonCallback(), iupEnterCallback(), iupLeaveCallback(), and iupMotionCallback(). |
|
Definition at line 289 of file sxy_graph.cpp. References SXYVector< SXYTask * >::getElement(), and tasks_vector. Referenced by iupButtonCallback(), iupEnterCallback(), iupLeaveCallback(), and iupMotionCallback(). |
|
Definition at line 400 of file sxy_graph.cpp. Referenced by iupActionCallback(), iupButtonCallback(), iupEnterCallback(), iupLeaveCallback(), iupMotionCallback(), and iupResizeCallback(). |
|
Definition at line 331 of file sxy_graph.cpp. References charts_vector, and SXYVector< SXYChart * >::insertElement(). Referenced by SXYSimpleGraph::remountGraph(). |
|
Definition at line 303 of file sxy_graph.cpp. References SXYVector< SXYTask * >::insertElement(), and tasks_vector. Referenced by setStandartTasks(). |
|
Definition at line 439 of file sxy_graph.cpp. References getThis(), and redrawGraph(). |
|
Definition at line 471 of file sxy_graph.cpp. References activateDisplayCanvas(), CALLBACK_TREATED, getNumTasks(), getTask(), getThis(), mouseClick(), SXYTask::mouseClick(), mouseUnclick(), and SXYTask::mouseUnclick(). |
|
Definition at line 423 of file sxy_graph.cpp. References CALLBACK_TREATED, getNumTasks(), getTask(), getThis(), mouseEnter(), and SXYTask::mouseEnter(). |
|
Definition at line 406 of file sxy_graph.cpp. References CALLBACK_TREATED, getNumTasks(), getTask(), getThis(), mouseLeave(), and SXYTask::mouseLeave(). |
|
Definition at line 447 of file sxy_graph.cpp. References activateDisplayCanvas(), CALLBACK_TREATED, getNumTasks(), getTask(), getThis(), mouseMotion(), and SXYTask::mouseMotion(). |
|
Definition at line 504 of file sxy_graph.cpp. References activateDisplayCanvas(), and getThis(). |
|
Definition at line 72 of file sxy_graph.h. Referenced by iupButtonCallback(). |
|
Definition at line 75 of file sxy_graph.h. Referenced by iupEnterCallback(). |
|
Definition at line 76 of file sxy_graph.h. Referenced by iupLeaveCallback(). |
|
Definition at line 74 of file sxy_graph.h. Referenced by iupMotionCallback(). |
|
Definition at line 73 of file sxy_graph.h. Referenced by iupButtonCallback(). |
|
Definition at line 255 of file sxy_graph.cpp. References drawChartsAt(), and redrawGraph(). |
|
|
Implemented in SXYSimpleGraph. |
|
Definition at line 338 of file sxy_graph.cpp. References charts_vector, and SXYVector< SXYChart * >::removeElement(). Referenced by SXYSimpleGraph::remountGraph(). |
|
Definition at line 310 of file sxy_graph.cpp. References SXYVector< SXYTask * >::removeElement(), and tasks_vector. |
|
Definition at line 345 of file sxy_graph.cpp. References insertTask(). |
|
Definition at line 195 of file sxy_graph.cpp. References getChart(), getNumCharts(), and SXYChart::setZoom(). |
|
Definition at line 356 of file sxy_graph.cpp. References getChart(), getNumCharts(), and SXYChart::tryGridAdjust(). |
|
Definition at line 113 of file sxy_graph.h. |
|
Handle do canvas CD (utilizado para desenho).
Definition at line 46 of file sxy_graph.h. Referenced by getCdCanvas(), SXYGraph(), and ~SXYGraph(). |
|
Vetor para a estrutura que armazena os objetos (um gráfico) XY relativos ao gráfico.
Definition at line 40 of file sxy_graph.h. Referenced by getChart(), getNumCharts(), insertChart(), removeChart(), SXYGraph(), and ~SXYGraph(). |
|
Handle do canvas IUP (utilizado para interação com o usuário).
Definition at line 49 of file sxy_graph.h. Referenced by getIupCanvas(). |
|
Vetor para a estrutura que armazena as tarefas associadas ao gráfico.
Definition at line 43 of file sxy_graph.h. Referenced by getNumTasks(), getTask(), insertTask(), removeTask(), SXYGraph(), and ~SXYGraph(). |