|
Hugin trunk 0.1
|
help class to draw charts More...
#include <GraphTools.h>
Public Member Functions | |
| Graph (int graphWidth, int graphHeight, wxColour backgroundColour) | |
| constructors, set size and background colour of resulting bitmap | |
| ~Graph () | |
| destructor | |
| void | SetChartArea (int left, int top, int right, int bottom) |
| set where to draw the chart on the bitmap | |
| void | SetChartDisplay (double xmin, double ymin, double xmax, double ymax) |
| set the real dimension of the chart | |
| void | DrawGrid (size_t linesX, size_t linesY) |
| draws the grid with linesX lines in x-direction and linexY lines in y-direction | |
| void | DrawLine (std::vector< hugin_utils::FDiff2D > points, wxColour colour, int penWidth=1) |
| draws a line with the coordinates given in points | |
| const wxBitmap | GetGraph () const |
Private Member Functions | |
| Graph (const Graph &) | |
| Graph & | operator= (const Graph &) |
| int | TransformX (double x) |
| int | TransformY (double y) |
Private Attributes | |
| double | m_xmin |
| double | m_xmax |
| double | m_ymin |
| double | m_ymax |
| int | m_width |
| int | m_height |
| int | m_left |
| int | m_top |
| int | m_right |
| int | m_bottom |
| wxBitmap * | m_bitmap |
| wxMemoryDC | m_dc |
help class to draw charts
Definition at line 51 of file GraphTools.h.
constructors, set size and background colour of resulting bitmap
Definition at line 100 of file GraphTools.cpp.
References m_bitmap, m_dc, m_height, m_width, SetChartArea(), SetChartDisplay(), and threshold().
| wxGraphTools::Graph::~Graph | ( | ) |
draws the grid with linesX lines in x-direction and linexY lines in y-direction
Definition at line 144 of file GraphTools.cpp.
References m_bottom, m_dc, m_left, m_right, m_top, m_xmax, m_xmin, m_ymax, m_ymin, threshold(), TransformX(), and TransformY().
| void wxGraphTools::Graph::DrawLine | ( | std::vector< hugin_utils::FDiff2D > | points, |
| wxColour | colour, | ||
| int | penWidth = 1 |
||
| ) |
draws a line with the coordinates given in points
Definition at line 160 of file GraphTools.cpp.
References m_dc, threshold(), TransformX(), and TransformY().
Definition at line 177 of file GraphTools.cpp.
References m_bitmap.
set the real dimension of the chart
Definition at line 135 of file GraphTools.cpp.
References m_xmax, m_xmin, m_ymax, m_ymin, and threshold().
Referenced by Graph().
Definition at line 182 of file GraphTools.cpp.
References m_left, m_right, m_xmax, m_xmin, and hugin_utils::round().
Referenced by DrawGrid(), and DrawLine().
Definition at line 187 of file GraphTools.cpp.
References m_bottom, m_top, m_ymax, m_ymin, and hugin_utils::round().
Referenced by DrawGrid(), and DrawLine().
|
private |
Definition at line 81 of file GraphTools.h.
Referenced by GetGraph(), and Graph().
|
private |
Definition at line 79 of file GraphTools.h.
Referenced by DrawGrid(), SetChartArea(), and TransformY().
|
private |
Definition at line 82 of file GraphTools.h.
Referenced by DrawGrid(), DrawLine(), Graph(), SetChartArea(), and ~Graph().
|
private |
Definition at line 77 of file GraphTools.h.
Referenced by Graph().
|
private |
Definition at line 79 of file GraphTools.h.
Referenced by DrawGrid(), SetChartArea(), and TransformX().
|
private |
Definition at line 79 of file GraphTools.h.
Referenced by DrawGrid(), SetChartArea(), and TransformX().
|
private |
Definition at line 79 of file GraphTools.h.
Referenced by DrawGrid(), SetChartArea(), and TransformY().
|
private |
Definition at line 77 of file GraphTools.h.
Referenced by Graph().
|
private |
Definition at line 75 of file GraphTools.h.
Referenced by DrawGrid(), SetChartDisplay(), and TransformX().
|
private |
Definition at line 75 of file GraphTools.h.
Referenced by DrawGrid(), SetChartDisplay(), and TransformX().
|
private |
Definition at line 75 of file GraphTools.h.
Referenced by DrawGrid(), SetChartDisplay(), and TransformY().
|
private |
Definition at line 75 of file GraphTools.h.
Referenced by DrawGrid(), SetChartDisplay(), and TransformY().