ToolMap
Loading...
Searching...
No Matches
tmGISScale Class Reference
Inheritance diagram for tmGISScale:

Public Member Functions

void SetPPI (const wxSize &ppi)
 
void SetUnitAndProj (PRJDEF_PROJ_TYPE proj, PRJDEF_UNIT_TYPE units)
 
PRJDEF_PROJ_TYPE GetProjection ()
 
void SetExtentWndReal (const tmRealRect &ExtentWndReal)
 
void SetWidthDistanceInM (double WidthDistanceInM)
 
void SetMaxLayersExtentAsExisting (const tmRealRect &r)
 
void SetMaxLayersExtent (const tmRealRect &r)
 
tmRealRect GetMaxLayersExtent ()
 
double GetLayersExtentWidth ()
 
double GetLayersExtentHeight ()
 
double GetPixelSize ()
 
wxPoint2DDouble GetTopLeftValue ()
 
void SetWindowExtent (const wxRect &extent)
 
wxRect GetWindowExtent ()
 
tmRealRect GetWindowExtentReal ()
 
void SetWindowExtentMM (const wxSize &size)
 
long GetActualScale ()
 
wxString GetVisibleWidthText ()
 
double GetWindowRealWidth ()
 
double GetwindowRealHeight ()
 
double ComputeDivFactor (wxSize wnd_extent=wxDefaultSize)
 
bool ComputeMaxExtent ()
 
wxSize ComputeCenterPxWnd (double divratio, wxSize wnd_extent=wxDefaultSize)
 
bool ComputeMaxExtentReal (wxSize wnd_offset=wxDefaultSize)
 
bool ComptuteNewWindowSize (const wxSize &oldsize, const wxSize &newsize)
 Compute new real extend when windows size change.
 
void ComputeNewScaleExtent (const long &scale)
 
double GetBestDivFactor (const wxRect &selected_rect)
 
void ComputeNewRealZoomExtent (const wxRect &calc_wnd_extent, const wxPoint &top_left)
 
void ComputePrevZoomExtent (double pixelsize, const wxPoint2DDouble &topleft)
 
void ComputeNewRealPanExtent (const wxPoint &offsetxtop)
 
bool MoveViewTo (const vrRealRect &rect)
 
bool ZoomViewTo (const vrRealRect &rect)
 
double MetersToPixels (int meters)
 
double MetersToRealUnits (int meters)
 
wxRealPoint PixelToReal (wxPoint pt)
 
wxPoint RealToPixel (wxRealPoint realpt)
 
tmRealRect PixelsToReal (const wxRect &rectpx)
 Convert pixel rectange to real units.
 
bool IsLayerExtentValid ()
 

Static Public Member Functions

static tmRealRect ComputeMaxCoord (const tmRealRect &r1, const tmRealRect &r2)
 
static double DifferenceDouble (const double &d1, const double &d2)
 
static double DifferenceCoord (const double &coordmax, const double &coordmin)
 
static double RemoveFromCoord (const double &coord1, const double &value)
 
static double AppendToCoord (const double &coord1, const double &value)
 

Member Function Documentation

◆ ComptuteNewWindowSize()

bool tmGISScale::ComptuteNewWindowSize ( const wxSize &  oldsize,
const wxSize &  newsize 
)

Compute new real extend when windows size change.

Author
Lucien Schreiber (c) CREALP 2009
Date
24 April 2009

◆ PixelsToReal()

tmRealRect tmGISScale::PixelsToReal ( const wxRect &  rectpx)

Convert pixel rectange to real units.

Parameters
rectpxpixels values rectangle to convert
Returns
The real coordinates
Author
Lucien Schreiber (c) CREALP 2008
Date
29 October 2008

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