|
Hugintrunk
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 More... | |
| ~Graph () | |
| destructor More... | |
| void | SetChartArea (int left, int top, int right, int bottom) |
| set where to draw the chart on the bitmap More... | |
| void | SetChartDisplay (double xmin, double ymin, double xmax, double ymax) |
| set the real dimension of the chart More... | |
| void | DrawGrid (size_t linesX, size_t linesY) |
| draws the grid with linesX lines in x-direction and linexY lines in y-direction More... | |
| void | DrawLine (std::vector< hugin_utils::FDiff2D > points, wxColour colour, int penWidth=1) |
| draws a line with the coordinates given in points More... | |
| 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.
| wxGraphTools::Graph::Graph | ( | int | graphWidth, |
| int | graphHeight, | ||
| wxColour | backgroundColour | ||
| ) |
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(), and SetChartDisplay().
| wxGraphTools::Graph::~Graph | ( | ) |
|
private |
| void wxGraphTools::Graph::DrawGrid | ( | size_t | linesX, |
| size_t | linesY | ||
| ) |
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, TransformX(), and TransformY().
Referenced by wxGraphTools::GetDistortionGraph(), ImageVariableDialog::OnShowResponseGraph(), and ImageVariableDialog::OnShowVignettingGraph().
| 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, TransformX(), and TransformY().
Referenced by wxGraphTools::GetDistortionGraph(), ImageVariableDialog::OnShowResponseGraph(), and ImageVariableDialog::OnShowVignettingGraph().
| const wxBitmap wxGraphTools::Graph::GetGraph | ( | ) | const |
Definition at line 177 of file GraphTools.cpp.
References m_bitmap.
Referenced by wxGraphTools::GetDistortionGraph(), ImageVariableDialog::OnShowResponseGraph(), and ImageVariableDialog::OnShowVignettingGraph().
| void wxGraphTools::Graph::SetChartArea | ( | int | left, |
| int | top, | ||
| int | right, | ||
| int | bottom | ||
| ) |
set where to draw the chart on the bitmap
Definition at line 124 of file GraphTools.cpp.
References m_bottom, m_dc, m_left, m_right, and m_top.
Referenced by wxGraphTools::GetDistortionGraph(), Graph(), ImageVariableDialog::OnShowResponseGraph(), and ImageVariableDialog::OnShowVignettingGraph().
| void wxGraphTools::Graph::SetChartDisplay | ( | double | xmin, |
| double | ymin, | ||
| double | xmax, | ||
| double | ymax | ||
| ) |
set the real dimension of the chart
Definition at line 135 of file GraphTools.cpp.
References m_xmax, m_xmin, m_ymax, and m_ymin.
Referenced by wxGraphTools::GetDistortionGraph(), Graph(), ImageVariableDialog::OnShowResponseGraph(), and ImageVariableDialog::OnShowVignettingGraph().
|
private |
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().
|
private |
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().
1.8.5