OpenCPN Partial API docs
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)
 
bool ContainsIDL ()
 
void InvalidateTransformCache ()
 
void SetVPTransformMatrix ()
 
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.


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