Graph Class Reference

help class to draw charts More...

List of all members.

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

int TransformX (float x)
int TransformY (float 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


Detailed Description

help class to draw charts

Definition at line 371 of file ImageVariableDialog.cpp.


Constructor & Destructor Documentation

Graph::Graph ( int  graphWidth,
int  graphHeight,
wxColour  backgroundColour 
) [inline]

constructors, set size and background colour of resulting bitmap

Definition at line 375 of file ImageVariableDialog.cpp.

References m_bitmap, m_dc, m_height, m_width, SetChartArea(), and SetChartDisplay().

Graph::~Graph (  )  [inline]

destructor

Definition at line 393 of file ImageVariableDialog.cpp.

References m_dc.


Member Function Documentation

void Graph::DrawGrid ( size_t  linesX,
size_t  linesY 
) [inline]

draws the grid with linesX lines in x-direction and linexY lines in y-direction

Definition at line 419 of file ImageVariableDialog.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 ImageVariableDialog::OnShowDistortionGraph(), ImageVariableDialog::OnShowResponseGraph(), and ImageVariableDialog::OnShowVignettingGraph().

void Graph::DrawLine ( std::vector< hugin_utils::FDiff2D points,
wxColour  colour,
int  penWidth = 1 
) [inline]

draws a line with the coordinates given in points

Definition at line 435 of file ImageVariableDialog.cpp.

References m_dc, TransformX(), and TransformY().

Referenced by ImageVariableDialog::OnShowDistortionGraph(), ImageVariableDialog::OnShowResponseGraph(), and ImageVariableDialog::OnShowVignettingGraph().

const wxBitmap Graph::GetGraph (  )  const [inline]

Definition at line 452 of file ImageVariableDialog.cpp.

References m_bitmap.

Referenced by ImageVariableDialog::OnShowDistortionGraph(), ImageVariableDialog::OnShowResponseGraph(), and ImageVariableDialog::OnShowVignettingGraph().

void Graph::SetChartArea ( int  left,
int  top,
int  right,
int  bottom 
) [inline]

set where to draw the chart on the bitmap

Definition at line 399 of file ImageVariableDialog.cpp.

References m_bottom, m_dc, m_left, m_right, and m_top.

Referenced by Graph(), ImageVariableDialog::OnShowDistortionGraph(), ImageVariableDialog::OnShowResponseGraph(), and ImageVariableDialog::OnShowVignettingGraph().

void Graph::SetChartDisplay ( double  xmin,
double  ymin,
double  xmax,
double  ymax 
) [inline]

set the real dimension of the chart

Definition at line 410 of file ImageVariableDialog.cpp.

References m_xmax, m_xmin, m_ymax, and m_ymin.

Referenced by Graph(), ImageVariableDialog::OnShowDistortionGraph(), ImageVariableDialog::OnShowResponseGraph(), and ImageVariableDialog::OnShowVignettingGraph().

int Graph::TransformX ( float  x  )  [inline, private]

Definition at line 455 of file ImageVariableDialog.cpp.

References m_left, m_right, m_xmax, and m_xmin.

Referenced by DrawGrid(), and DrawLine().

int Graph::TransformY ( float  y  )  [inline, private]

Definition at line 459 of file ImageVariableDialog.cpp.

References m_bottom, m_top, m_ymax, and m_ymin.

Referenced by DrawGrid(), and DrawLine().


Member Data Documentation

wxBitmap* Graph::m_bitmap [private]

Definition at line 470 of file ImageVariableDialog.cpp.

Referenced by GetGraph(), and Graph().

int Graph::m_bottom [private]

Definition at line 468 of file ImageVariableDialog.cpp.

Referenced by DrawGrid(), SetChartArea(), and TransformY().

wxMemoryDC Graph::m_dc [private]

Definition at line 471 of file ImageVariableDialog.cpp.

Referenced by DrawGrid(), DrawLine(), Graph(), SetChartArea(), and ~Graph().

int Graph::m_height [private]

Definition at line 466 of file ImageVariableDialog.cpp.

Referenced by Graph().

int Graph::m_left [private]

Definition at line 468 of file ImageVariableDialog.cpp.

Referenced by DrawGrid(), SetChartArea(), and TransformX().

int Graph::m_right [private]

Definition at line 468 of file ImageVariableDialog.cpp.

Referenced by DrawGrid(), SetChartArea(), and TransformX().

int Graph::m_top [private]

Definition at line 468 of file ImageVariableDialog.cpp.

Referenced by DrawGrid(), SetChartArea(), and TransformY().

int Graph::m_width [private]

Definition at line 466 of file ImageVariableDialog.cpp.

Referenced by Graph().

double Graph::m_xmax [private]

Definition at line 462 of file ImageVariableDialog.cpp.

Referenced by DrawGrid(), SetChartDisplay(), and TransformX().

double Graph::m_xmin [private]

Definition at line 462 of file ImageVariableDialog.cpp.

Referenced by DrawGrid(), SetChartDisplay(), and TransformX().

double Graph::m_ymax [private]

Definition at line 462 of file ImageVariableDialog.cpp.

Referenced by DrawGrid(), SetChartDisplay(), and TransformY().

double Graph::m_ymin [private]

Definition at line 462 of file ImageVariableDialog.cpp.

Referenced by DrawGrid(), SetChartDisplay(), and TransformY().


The documentation for this class was generated from the following file:
Generated on 5 Dec 2014 for Hugintrunk by  doxygen 1.4.7