Power System Platform  2024w23a
Loading...
Searching...
No Matches
Camera Class Reference

Class responsible for the correct visualization of the elements on screen. More...

#include <Camera.h>

Public Member Functions

void SetScale (wxPoint2DDouble screenPoint, double delta)
 
void SetScale (double scale)
 
void SetTranslation (wxPoint2DDouble screenPoint)
 
void StartTranslation (wxPoint2DDouble startPoint)
 
void UpdateMousePosition (wxPoint2DDouble mousePosition)
 
double GetScale () const
 
wxPoint2DDouble GetTranslation () const
 
wxPoint2DDouble GetMousePosition (bool worldCoords=true) const
 
wxPoint2DDouble ScreenToWorld (wxPoint2DDouble screenCoords) const
 
double GetZoomMin () const
 
double GetZoomMax () const
 

Protected Attributes

wxPoint2DDouble m_translation
 
wxPoint2DDouble m_translationStartPt
 
double m_scale
 
wxPoint2DDouble m_mousePosition
 
double m_zoomMin = 0.01
 
double m_zoomMax = 3.0
 

Detailed Description

Class responsible for the correct visualization of the elements on screen.

Author
Thales Lima Oliveira thale.nosp@m.s@uf.nosp@m.u.br
Date
05/10/2017

The documentation for this class was generated from the following files: