Version: 0.6.0

#include <gisdisplay.h>

Collaboration diagram for wxGISDisplay:

Classes

struct  _layercachedata
 

Public Types

typedef struct
wxGISDisplay::_layercachedata 
LAYERCACHEDATA
 

Public Member Functions

virtual size_t AddCache (void)
 
virtual void Clear ()
 
virtual size_t GetLastCacheID (void) const
 
virtual size_t GetFlashCacheID (void) const
 
virtual void SetDrawCache (size_t nCacheID, bool bNoDerty=false)
 
virtual size_t GetDrawCache (void) const
 
virtual bool IsCacheDerty (size_t nCacheID) const
 
virtual void SetCacheDerty (size_t nCacheID, bool bIsDerty)
 
virtual void SetAllCachesDerty (bool bIsDerty)
 
virtual void SetUpperCachesDerty (size_t nFromCacheNo, bool bIsDerty=true)
 
virtual bool IsDerty (void) const
 
virtual size_t GetCacheCount (void) const
 
virtual void ClearCache (size_t nCacheId)
 
virtual void SetDeviceFrame (wxRect &rc)
 
virtual wxRect GetDeviceFrame (void) const
 
virtual void SetBounds (const OGREnvelope &Env)
 
virtual OGREnvelope GetBounds (bool bRotated=true) const
 
virtual wxRealPoint GetBoundsCenter (void) const
 
virtual void SetRotate (double dAngleRad)
 
virtual double GetRotate (void) const
 
virtual void DC2World (double *pdX, double *pdY)
 
virtual void World2DC (double *pdX, double *pdY)
 
virtual void DC2WorldDist (double *pdX, double *pdY, bool bRotated=true)
 
virtual void World2DCDist (double *pdX, double *pdY, bool bRotated=true)
 
virtual void OnEraseBackground (void)
 
virtual void Output (wxDC *pDC)
 
virtual bool Output (GDALDataset *pGDALDataset)
 
virtual void SetColor (const wxGISColor &Color)
 
virtual void SetLineCap (cairo_line_cap_t line_cap=CAIRO_LINE_CAP_BUTT)
 
virtual void SetLineJoin (cairo_line_join_t line_join=CAIRO_LINE_JOIN_MITER)
 
virtual void SetLineWidth (double dWidth)
 
virtual void SetMiterLimit (double dMiterLimit)
 
virtual void SetFillRule (cairo_fill_rule_t fill_rule=CAIRO_FILL_RULE_WINDING)
 
virtual bool CanDraw (OGREnvelope &Env)
 
virtual void Stroke ()
 
virtual void FillPreserve ()
 
virtual void SetColor (double dRed, double dGreen, double dBlue, double dAlpha=0)
 
virtual bool CheckDrawAsPoint (const OGREnvelope &Envelope, double dfLineWidth, bool bIsRing=true, double dOffsetX=0, double dOffsetY=0, bool bCheckEnvelope=false)
 
virtual bool DrawCircle (double dX, double dY, double dOffsetX=0, double dOffsetY=0, double dfRadius=1.0, double angle1=0, double angle2=2 *M_PI)
 
virtual bool DrawEllipse (double dX, double dY, double dOffsetX=0, double dOffsetY=0, double dfWidth=1.0, double dfHeight=1.0)
 
virtual bool DrawPointFast (double dX, double dY, double dOffsetX=0, double dOffsetY=0)
 
virtual bool DrawLine (OGRRawPoint *pOGRRawPoints, int nPointCount, bool bOwn=true, double dOffsetX=0, double dOffsetY=0, bool bIsRing=false)
 
virtual void DrawRaster (cairo_surface_t *surface, const OGREnvelope &Envelope, bool bDrawEnvelope=false)
 
virtual void ZoomingDraw (const wxRect &rc, wxDC *pDC)
 
virtual void WheelingDraw (double dZoom, wxDC *pDC)
 
virtual void PanningDraw (wxCoord x, wxCoord y, wxDC *pDC)
 
virtual void RotatingDraw (double dAngle, wxDC *pDC)
 
virtual OGREnvelope TransformRect (wxRect &rect)
 
virtual void TestDraw (void)
 
virtual wxCriticalSection & GetLock ()
 

Protected Member Functions

virtual void Output (cairo_surface_t *pSurface, wxDC *pDC)
 
virtual cairo_t * CreateContext (wxDC *dc)
 
virtual void InitTransformMatrix (void)
 
virtual double GetScaledWidth (double nWidth)
 

Protected Attributes

wxVector< LAYERCACHEDATAm_saLayerCaches
 
wxGISColor m_BackGroudnColour
 
size_t m_nLastCacheID
 
size_t m_nCurrentLayer
 
int m_nMax_X
 
int m_nMax_Y
 
wxRect m_oDeviceFrameRect
 
OGREnvelope m_RealBounds
 
OGREnvelope m_CurrentBounds
 
OGREnvelope m_CurrentBoundsRotated
 
OGREnvelope m_CurrentBoundsX8
 
double m_dRotatedBoundsCenterX
 
double m_dRotatedBoundsCenterY
 
double m_dAngleRad
 
cairo_matrix_t * m_pMatrix
 
cairo_matrix_t * m_pDisplayMatrix
 
cairo_matrix_t * m_pDisplayMatrixNoRotate
 
double m_dOrigin_X
 
double m_dOrigin_Y
 
double m_dFrameCenterX
 
double m_dFrameCenterY
 
double m_dCacheCenterX
 
double m_dCacheCenterY
 
double m_dFrameXShift
 
double m_dFrameYShift
 
wxCriticalSection m_CritSect
 
bool m_bZeroCacheSet
 
double m_dFrameRatio
 
double m_dScale
 
int m_nSysCacheCount
 
double m_dfLineWidth
 
cairo_surface_t * m_surface_tmp
 
cairo_t * m_cr_tmp
 

Detailed Description

A class to draw map contents. This class draw to virtual or real display. It use some caches (memory rgba rasters) and output DC to draw.

Library:  wxGISDisplay

The documentation for this class was generated from the following files:
  • /home/bishop/work/projects/nextgismanager/include/wxgis/display/gisdisplay.h
  • /home/bishop/work/projects/nextgismanager/src/display/gisdisplay.cpp