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.

Graph::~Graph  )  [inline]
 

destructor

Definition at line 393 of file ImageVariableDialog.cpp.


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.

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.

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

const wxBitmap Graph::GetGraph  )  const [inline]
 

Definition at line 452 of file ImageVariableDialog.cpp.

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.

Referenced by 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.

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

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

Definition at line 455 of file ImageVariableDialog.cpp.

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

Definition at line 459 of file ImageVariableDialog.cpp.


Member Data Documentation

wxBitmap* Graph::m_bitmap [private]
 

Definition at line 470 of file ImageVariableDialog.cpp.

int Graph::m_bottom [private]
 

Definition at line 468 of file ImageVariableDialog.cpp.

wxMemoryDC Graph::m_dc [private]
 

Definition at line 471 of file ImageVariableDialog.cpp.

int Graph::m_height [private]
 

Definition at line 466 of file ImageVariableDialog.cpp.

int Graph::m_left [private]
 

Definition at line 468 of file ImageVariableDialog.cpp.

int Graph::m_right [private]
 

Definition at line 468 of file ImageVariableDialog.cpp.

int Graph::m_top [private]
 

Definition at line 468 of file ImageVariableDialog.cpp.

int Graph::m_width [private]
 

Definition at line 466 of file ImageVariableDialog.cpp.

double Graph::m_xmax [private]
 

Definition at line 464 of file ImageVariableDialog.cpp.

double Graph::m_xmin [private]
 

Definition at line 464 of file ImageVariableDialog.cpp.

double Graph::m_ymax [private]
 

Definition at line 464 of file ImageVariableDialog.cpp.

double Graph::m_ymin [private]
 

Definition at line 464 of file ImageVariableDialog.cpp.


The documentation for this class was generated from the following file:
Generated on Sat Apr 19 01:25:48 2014 for Hugintrunk by  doxygen 1.3.9.1