OpenCPN Partial API docs
Loading...
Searching...
No Matches
ViewPort Class Reference

Public Member Functions

wxPoint GetPixFromLL (double lat, double lon)
 
void GetLLFromPix (const wxPoint &p, double *lat, double *lon)
 
void GetLLFromPix (const wxPoint2DDouble &p, double *lat, double *lon)
 
wxPoint2DDouble GetDoublePixFromLL (double lat, double lon)
 
LLRegion GetLLRegion (const OCPNRegion &region)
 
OCPNRegion GetVPRegionIntersect (const OCPNRegion &region, const LLRegion &llregion, int chart_native_scale)
 
OCPNRegion GetVPRegionIntersect (const OCPNRegion &Region, int nPoints, float *llpoints, int chart_native_scale, wxPoint *ppoints)
 
wxRect GetVPRectIntersect (size_t n, float *llpoints)
 
ViewPort BuildExpandedVP (int width, int height)
 
void SetBoxes (void)
 
void PixelScale (float factor)
 
void Invalidate ()
 
void Validate ()
 
bool IsValid () const
 
void SetRotationAngle (double angle_rad)
 
void SetProjectionType (int type)
 
LLBBox & GetBBox ()
 
void SetBBoxDirect (const LLBBox &bbox)
 
void SetBBoxDirect (double latmin, double lonmin, double latmax, double lonmax)
 
void InvalidateTransformCache ()
 
bool operator== (const ViewPort &rhs) const
 

Public Attributes

double clat
 
double clon
 
double view_scale_ppm
 
double skew
 
double rotation
 
double tilt
 
double chart_scale
 
double ref_scale
 
int pix_width
 
int pix_height
 
bool b_quilt
 
bool b_FullScreenQuilt
 
int m_projection_type
 
bool b_MercatorProjectionOverride
 
wxRect rv_rect
 
float vp_matrix_transform [16]
 
float norm_transform [16]
 

Detailed Description

Definition at line 81 of file viewport.h.

Constructor & Destructor Documentation

◆ ViewPort()

ViewPort::ViewPort ( )

Definition at line 123 of file viewport.cpp.

Member Function Documentation

◆ BuildExpandedVP()

ViewPort ViewPort::BuildExpandedVP ( int  width,
int  height 
)

Definition at line 967 of file viewport.cpp.

◆ GetBBox()

LLBBox & ViewPort::GetBBox ( )
inline

Definition at line 113 of file viewport.h.

◆ GetDoublePixFromLL()

wxPoint2DDouble ViewPort::GetDoublePixFromLL ( double  lat,
double  lon 
)

Definition at line 152 of file viewport.cpp.

◆ GetLLFromPix() [1/2]

void ViewPort::GetLLFromPix ( const wxPoint &  p,
double *  lat,
double *  lon 
)
inline

Definition at line 86 of file viewport.h.

◆ GetLLFromPix() [2/2]

void ViewPort::GetLLFromPix ( const wxPoint2DDouble &  p,
double *  lat,
double *  lon 
)

Definition at line 267 of file viewport.cpp.

◆ GetLLRegion()

LLRegion ViewPort::GetLLRegion ( const OCPNRegion region)

Definition at line 342 of file viewport.cpp.

◆ GetPixFromLL()

wxPoint ViewPort::GetPixFromLL ( double  lat,
double  lon 
)

Definition at line 143 of file viewport.cpp.

◆ GetVPRectIntersect()

wxRect ViewPort::GetVPRectIntersect ( size_t  n,
float *  llpoints 
)

Definition at line 797 of file viewport.cpp.

◆ GetVPRegionIntersect() [1/2]

OCPNRegion ViewPort::GetVPRegionIntersect ( const OCPNRegion region,
const LLRegion &  llregion,
int  chart_native_scale 
)

Definition at line 418 of file viewport.cpp.

◆ GetVPRegionIntersect() [2/2]

OCPNRegion ViewPort::GetVPRegionIntersect ( const OCPNRegion Region,
int  nPoints,
float *  llpoints,
int  chart_native_scale,
wxPoint *  ppoints 
)

Definition at line 479 of file viewport.cpp.

◆ Invalidate()

void ViewPort::Invalidate ( )
inline

Definition at line 106 of file viewport.h.

◆ InvalidateTransformCache()

void ViewPort::InvalidateTransformCache ( )
inline

Definition at line 119 of file viewport.h.

◆ IsValid()

bool ViewPort::IsValid ( ) const
inline

Definition at line 108 of file viewport.h.

◆ operator==()

bool ViewPort::operator== ( const ViewPort rhs) const
inline

Definition at line 148 of file viewport.h.

◆ PixelScale()

void ViewPort::PixelScale ( float  factor)

Definition at line 136 of file viewport.cpp.

◆ SetBBoxDirect() [1/2]

void ViewPort::SetBBoxDirect ( const LLBBox &  bbox)
inline

Definition at line 115 of file viewport.h.

◆ SetBBoxDirect() [2/2]

void ViewPort::SetBBoxDirect ( double  latmin,
double  lonmin,
double  latmax,
double  lonmax 
)

Definition at line 962 of file viewport.cpp.

◆ SetBoxes()

void ViewPort::SetBoxes ( void  )

Definition at line 820 of file viewport.cpp.

◆ SetProjectionType()

void ViewPort::SetProjectionType ( int  type)
inline

Definition at line 111 of file viewport.h.

◆ SetRotationAngle()

void ViewPort::SetRotationAngle ( double  angle_rad)
inline

Definition at line 110 of file viewport.h.

◆ Validate()

void ViewPort::Validate ( )
inline

Definition at line 107 of file viewport.h.

Member Data Documentation

◆ b_FullScreenQuilt

bool ViewPort::b_FullScreenQuilt

Definition at line 137 of file viewport.h.

◆ b_MercatorProjectionOverride

bool ViewPort::b_MercatorProjectionOverride

Definition at line 140 of file viewport.h.

◆ b_quilt

bool ViewPort::b_quilt

Definition at line 136 of file viewport.h.

◆ chart_scale

double ViewPort::chart_scale

Definition at line 129 of file viewport.h.

◆ clat

double ViewPort::clat

Definition at line 122 of file viewport.h.

◆ clon

double ViewPort::clon

Definition at line 123 of file viewport.h.

◆ m_projection_type

int ViewPort::m_projection_type

Definition at line 139 of file viewport.h.

◆ norm_transform

float ViewPort::norm_transform[16]

Definition at line 145 of file viewport.h.

◆ pix_height

int ViewPort::pix_height

Definition at line 134 of file viewport.h.

◆ pix_width

int ViewPort::pix_width

Definition at line 133 of file viewport.h.

◆ ref_scale

double ViewPort::ref_scale

Definition at line 131 of file viewport.h.

◆ rotation

double ViewPort::rotation

Definition at line 126 of file viewport.h.

◆ rv_rect

wxRect ViewPort::rv_rect

Definition at line 141 of file viewport.h.

◆ skew

double ViewPort::skew

Definition at line 125 of file viewport.h.

◆ tilt

double ViewPort::tilt

Definition at line 127 of file viewport.h.

◆ view_scale_ppm

double ViewPort::view_scale_ppm

Definition at line 124 of file viewport.h.

◆ vp_matrix_transform

float ViewPort::vp_matrix_transform[16]

Definition at line 144 of file viewport.h.


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