36 void SetScale(wxPoint2DDouble screenPoint,
double delta);
37 void SetScale(
double scale) { m_scale = scale; }
38 void SetTranslation(wxPoint2DDouble screenPoint);
39 void StartTranslation(wxPoint2DDouble startPoint) { this->m_translationStartPt = startPoint; }
40 void UpdateMousePosition(wxPoint2DDouble mousePosition) { this->m_mousePosition = mousePosition; }
41 double GetScale()
const {
return m_scale; }
42 wxPoint2DDouble GetTranslation()
const {
return m_translation; }
43 wxPoint2DDouble GetMousePosition(
bool worldCoords =
true)
const;
44 wxPoint2DDouble ScreenToWorld(wxPoint2DDouble screenCoords)
const;
45 double GetZoomMin()
const {
return m_zoomMin; }
46 double GetZoomMax()
const {
return m_zoomMax; }
48 wxPoint2DDouble m_translation;
49 wxPoint2DDouble m_translationStartPt;
52 wxPoint2DDouble m_mousePosition;
54 double m_zoomMin = 0.01;
55 double m_zoomMax = 3.0;