Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CGeoCanvas Class Reference

#include <CGeoCanvas.hpp>

Collaboration diagram for CGeoCanvas:
[legend]

Classes

struct  SPrvCanvasView
 
struct  SPrvDynamicView
 

Public Member Functions

 CGeoCanvas ()
 
 ~CGeoCanvas ()
 
 CGeoCanvas (const CGeoCanvas &other)=delete
 
 CGeoCanvas (CGeoCanvas &&other)=default
 
CGeoCanvasoperator= (const CGeoCanvas &other)=delete
 
CGeoCanvasoperator= (CGeoCanvas &&other)=default
 
bool operator== (const CGeoCanvas &b) const
 
void addDraw (IRcpDraw **rcpDraw)
 
void addDynamicView (IRcpDraw **rcpDraw, double xMinPerc, double yMinPerc, double xMaxPerc, double yMaxPerc, bool isProportional)
 
void calculateLimits ()
 
bool getPixelToWorld (double xLocalInCenterPixel, double yLocalInCenterPixel, double sizeXPixel, double sizeYPixel, double *xWorld, double *yWorld) const
 
CMatrix4x4 matrixTransformation (double xMinPixel, double yMinPixel, double xMaxPixel, double yMaxPixel)
 
void removeObjects (IGraphics *graphics)
 
void runDraw (IGraphics *graphics, double xMinComp, double yMinComp, double xMaxComp, double yMaxComp)
 
void update ()
 
void setMargin (double percentByOne)
 
void setNonProportional ()
 
void setOriginZero ()
 
bool hasDataTransformation (double xMinPixel, double yMinPixel, double xMaxPixel, double yMaxPixel, double *xCenterPixel, double *yCenterPixel, double *fx, double *fy, double *xCenterWorld, double *yCenterWorld)
 

Private Types

enum class  EPrvOriginType { Center , Zero }
 

Static Private Member Functions

static void prvRunDraw (CGeoCanvas::EPrvOriginType typeOrigin, double xMinComp, double yMinComp, double xMaxComp, double yMaxComp, IGraphics *graphics, CGeoCanvas::SPrvCanvasView *view)
 
static void prvDrawScene (bool isProportional, double margin, CGeoCanvas::EPrvOriginType typeOrigin, const std::vector< IRcpDraw * > &rcpsDraw, IGraphics *graphics, double xMinComp, double yMinComp, double xMaxComp, double yMaxComp, CLimits *limits)
 
static bool prvHasDataTransformation (const CLimits *limits, CGeoCanvas::EPrvOriginType typeOrigin, double margin, bool isProportional, double xMinPixel, double yMinPixel, double xMaxPixel, double yMaxPixel, double *xOriginPixel, double *yOriginPixel, double *fX, double *fY, double *xOriginWorld, double *yOriginWorld)
 
static void prvRemoveObjects (CGeoCanvas::SPrvCanvasView *view, IGraphics *graphics)
 

Private Attributes

CGeoCanvas::EPrvOriginType m_typeOrigin
 
SPrvCanvasView m_mainView
 
std::vector< SPrvDynamicViewm_dynamicViews
 

Member Enumeration Documentation

◆ EPrvOriginType

enum class CGeoCanvas::EPrvOriginType
strongprivate
Enumerator
Center 
Zero 

Constructor & Destructor Documentation

◆ CGeoCanvas() [1/3]

CGeoCanvas::CGeoCanvas ( )

◆ ~CGeoCanvas()

CGeoCanvas::~CGeoCanvas ( )

◆ CGeoCanvas() [2/3]

CGeoCanvas::CGeoCanvas ( const CGeoCanvas & other)
delete

◆ CGeoCanvas() [3/3]

CGeoCanvas::CGeoCanvas ( CGeoCanvas && other)
default

Member Function Documentation

◆ addDraw()

void CGeoCanvas::addDraw ( IRcpDraw ** rcpDraw)

◆ addDynamicView()

void CGeoCanvas::addDynamicView ( IRcpDraw ** rcpDraw,
double xMinPerc,
double yMinPerc,
double xMaxPerc,
double yMaxPerc,
bool isProportional )

◆ calculateLimits()

void CGeoCanvas::calculateLimits ( )

◆ getPixelToWorld()

bool CGeoCanvas::getPixelToWorld ( double xLocalInCenterPixel,
double yLocalInCenterPixel,
double sizeXPixel,
double sizeYPixel,
double * xWorld,
double * yWorld ) const

◆ hasDataTransformation()

bool CGeoCanvas::hasDataTransformation ( double xMinPixel,
double yMinPixel,
double xMaxPixel,
double yMaxPixel,
double * xCenterPixel,
double * yCenterPixel,
double * fx,
double * fy,
double * xCenterWorld,
double * yCenterWorld )

◆ matrixTransformation()

CMatrix4x4 CGeoCanvas::matrixTransformation ( double xMinPixel,
double yMinPixel,
double xMaxPixel,
double yMaxPixel )

◆ operator=() [1/2]

CGeoCanvas & CGeoCanvas::operator= ( CGeoCanvas && other)
default

◆ operator=() [2/2]

CGeoCanvas & CGeoCanvas::operator= ( const CGeoCanvas & other)
delete

◆ operator==()

bool CGeoCanvas::operator== ( const CGeoCanvas & b) const
inline

◆ prvDrawScene()

void CGeoCanvas::prvDrawScene ( bool isProportional,
double margin,
CGeoCanvas::EPrvOriginType typeOrigin,
const std::vector< IRcpDraw * > & rcpsDraw,
IGraphics * graphics,
double xMinComp,
double yMinComp,
double xMaxComp,
double yMaxComp,
CLimits * limits )
staticprivate

◆ prvHasDataTransformation()

bool CGeoCanvas::prvHasDataTransformation ( const CLimits * limits,
CGeoCanvas::EPrvOriginType typeOrigin,
double margin,
bool isProportional,
double xMinPixel,
double yMinPixel,
double xMaxPixel,
double yMaxPixel,
double * xOriginPixel,
double * yOriginPixel,
double * fX,
double * fY,
double * xOriginWorld,
double * yOriginWorld )
staticprivate

◆ prvRemoveObjects()

void CGeoCanvas::prvRemoveObjects ( CGeoCanvas::SPrvCanvasView * view,
IGraphics * graphics )
staticprivate

◆ prvRunDraw()

void CGeoCanvas::prvRunDraw ( CGeoCanvas::EPrvOriginType typeOrigin,
double xMinComp,
double yMinComp,
double xMaxComp,
double yMaxComp,
IGraphics * graphics,
CGeoCanvas::SPrvCanvasView * view )
staticprivate

◆ removeObjects()

void CGeoCanvas::removeObjects ( IGraphics * graphics)

◆ runDraw()

void CGeoCanvas::runDraw ( IGraphics * graphics,
double xMinComp,
double yMinComp,
double xMaxComp,
double yMaxComp )

◆ setMargin()

void CGeoCanvas::setMargin ( double percentByOne)

◆ setNonProportional()

void CGeoCanvas::setNonProportional ( )

◆ setOriginZero()

void CGeoCanvas::setOriginZero ( )

◆ update()

void CGeoCanvas::update ( )

Member Data Documentation

◆ m_dynamicViews

std::vector<SPrvDynamicView> CGeoCanvas::m_dynamicViews
private

◆ m_mainView

SPrvCanvasView CGeoCanvas::m_mainView
private

◆ m_typeOrigin

CGeoCanvas::EPrvOriginType CGeoCanvas::m_typeOrigin
private

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