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

Public Member Functions

 Quilt (ChartCanvas *parent)
 
void SetQuiltParameters (double CanvasScaleFactor, int CanvasWidth)
 
void EnableHighDefinitionZoom (bool value)
 
void UnlockQuilt ()
 
bool Compose (const ViewPort &vp)
 
bool IsComposed ()
 
ChartBaseGetFirstChart ()
 
ChartBaseGetNextChart ()
 
ChartBaseGetLargestScaleChart ()
 
ChartBaseGetNextSmallerScaleChart ()
 
std::vector< int > GetQuiltIndexArray (void)
 
bool IsQuiltDelta (ViewPort &vp)
 
bool IsChartQuiltableRef (int db_index)
 
ViewPortGetQuiltVP ()
 
wxString GetQuiltDepthUnit ()
 
void SetRenderedVP (ViewPort &vp)
 
bool HasOverlays (void)
 
int GetExtendedStackCount (void)
 
int GetnCharts ()
 
double GetBestStartScale (int dbi_ref_hint, const ViewPort &vp_in)
 
void ComputeRenderRegion (ViewPort &vp, OCPNRegion &chart_region)
 
bool RenderQuiltRegionViewOnDCNoText (wxMemoryDC &dc, ViewPort &vp, OCPNRegion &chart_region)
 
bool RenderQuiltRegionViewOnDCTextOnly (wxMemoryDC &dc, ViewPort &vp, OCPNRegion &chart_region)
 
bool IsVPBlittable (ViewPort &VPoint, int dx, int dy, bool b_allow_vector=false)
 
ChartBaseGetChartAtPix (ViewPort &VPoint, wxPoint p)
 
ChartBaseGetOverlayChartAtPix (ViewPort &VPoint, wxPoint p)
 
int GetChartdbIndexAtPix (ViewPort &VPoint, wxPoint p)
 
void InvalidateAllQuiltPatchs (void)
 
void Invalidate (void)
 
void AdjustQuiltVP (ViewPort &vp_last, ViewPort &vp_proposed)
 
LLRegion & GetFullQuiltRegion (void)
 
OCPNRegionGetFullQuiltRenderedRegion (void)
 
bool IsChartSmallestScale (int dbIndex)
 
int AdjustRefOnZoomOut (double proposed_scale_onscreen)
 
int AdjustRefOnZoomIn (double proposed_scale_onscreen)
 
int AdjustRefSelection (const ViewPort &vp_in)
 
void SetHiliteIndex (int index)
 
void SetReferenceChart (int dbIndex)
 
int GetRefChartdbIndex (void)
 
ChartBaseGetRefChart ()
 
int GetQuiltProj (void)
 
double GetMaxErrorFactor ()
 
double GetRefScale ()
 
ChartFamilyEnum GetRefFamily ()
 
void SetPreferrefFamily (ChartFamilyEnum family)
 
double GetRefNativeScale ()
 
std::vector< int > GetCandidatedbIndexArray (bool from_ref_chart, bool exclude_user_hidden)
 
std::vector< int > GetExtendedStackIndexArray ()
 
std::vector< int > GetEclipsedStackIndexArray ()
 
unsigned long GetXStackHash ()
 
bool IsBusy ()
 
QuiltPatchGetCurrentPatch ()
 
bool IsChartInQuilt (ChartBase *pc)
 
bool IsChartInQuilt (wxString &full_path)
 
bool IsQuiltVector (void)
 
bool DoesQuiltContainPlugins (void)
 
LLRegion GetHiliteRegion ()
 
int GetNomScaleMin (int scale, ChartTypeEnum type, ChartFamilyEnum family)
 
int GetNomScaleMax (int scale, ChartTypeEnum type, ChartFamilyEnum family)
 
ChartFamilyEnum GetPreferredFamily (void)
 

Static Public Member Functions

static LLRegion GetChartQuiltRegion (const ChartTableEntry &cte, ViewPort &vp)
 

Detailed Description

Definition at line 84 of file Quilt.h.

Constructor & Destructor Documentation

◆ Quilt()

Quilt::Quilt ( ChartCanvas parent)

Definition at line 219 of file Quilt.cpp.

◆ ~Quilt()

Quilt::~Quilt ( )

Definition at line 254 of file Quilt.cpp.

Member Function Documentation

◆ AdjustQuiltVP()

void Quilt::AdjustQuiltVP ( ViewPort vp_last,
ViewPort vp_proposed 
)

Definition at line 767 of file Quilt.cpp.

◆ AdjustRefOnZoomIn()

int Quilt::AdjustRefOnZoomIn ( double  proposed_scale_onscreen)

Definition at line 1020 of file Quilt.cpp.

◆ AdjustRefOnZoomOut()

int Quilt::AdjustRefOnZoomOut ( double  proposed_scale_onscreen)

Definition at line 987 of file Quilt.cpp.

◆ AdjustRefSelection()

int Quilt::AdjustRefSelection ( const ViewPort vp_in)

Definition at line 1503 of file Quilt.cpp.

◆ Compose()

bool Quilt::Compose ( const ViewPort vp)

WGS84_semimajor_axis_meters * mercator_k0 * DEGREE;

Definition at line 1643 of file Quilt.cpp.

◆ ComputeRenderRegion()

void Quilt::ComputeRenderRegion ( ViewPort vp,
OCPNRegion chart_region 
)

Definition at line 2505 of file Quilt.cpp.

◆ DoesQuiltContainPlugins()

bool Quilt::DoesQuiltContainPlugins ( void  )

Definition at line 614 of file Quilt.cpp.

◆ EnableHighDefinitionZoom()

void Quilt::EnableHighDefinitionZoom ( bool  value)
inline

Definition at line 94 of file Quilt.h.

◆ GetBestStartScale()

double Quilt::GetBestStartScale ( int  dbi_ref_hint,
const ViewPort vp_in 
)

Definition at line 1538 of file Quilt.cpp.

◆ GetCandidatedbIndexArray()

std::vector< int > Quilt::GetCandidatedbIndexArray ( bool  from_ref_chart,
bool  exclude_user_hidden 
)

Definition at line 346 of file Quilt.cpp.

◆ GetChartAtPix()

ChartBase * Quilt::GetChartAtPix ( ViewPort VPoint,
wxPoint  p 
)

Definition at line 666 of file Quilt.cpp.

◆ GetChartdbIndexAtPix()

int Quilt::GetChartdbIndexAtPix ( ViewPort VPoint,
wxPoint  p 
)

Definition at line 643 of file Quilt.cpp.

◆ GetChartQuiltRegion()

LLRegion Quilt::GetChartQuiltRegion ( const ChartTableEntry cte,
ViewPort vp 
)
static

Definition at line 469 of file Quilt.cpp.

◆ GetCurrentPatch()

QuiltPatch * Quilt::GetCurrentPatch ( )

Definition at line 377 of file Quilt.cpp.

◆ GetEclipsedStackIndexArray()

std::vector< int > Quilt::GetEclipsedStackIndexArray ( )
inline

Definition at line 179 of file Quilt.h.

◆ GetExtendedStackCount()

int Quilt::GetExtendedStackCount ( void  )
inline

Definition at line 112 of file Quilt.h.

◆ GetExtendedStackIndexArray()

std::vector< int > Quilt::GetExtendedStackIndexArray ( )
inline

Definition at line 176 of file Quilt.h.

◆ GetFirstChart()

ChartBase * Quilt::GetFirstChart ( )

Definition at line 392 of file Quilt.cpp.

◆ GetFullQuiltRegion()

LLRegion & Quilt::GetFullQuiltRegion ( void  )
inline

Definition at line 141 of file Quilt.h.

◆ GetFullQuiltRenderedRegion()

OCPNRegion & Quilt::GetFullQuiltRenderedRegion ( void  )
inline

Definition at line 142 of file Quilt.h.

◆ GetHiliteRegion()

LLRegion Quilt::GetHiliteRegion ( )

Definition at line 1093 of file Quilt.cpp.

◆ GetLargestScaleChart()

ChartBase * Quilt::GetLargestScaleChart ( )

Definition at line 454 of file Quilt.cpp.

◆ GetMaxErrorFactor()

double Quilt::GetMaxErrorFactor ( )
inline

Definition at line 163 of file Quilt.h.

◆ GetnCharts()

int Quilt::GetnCharts ( )
inline

Definition at line 114 of file Quilt.h.

◆ GetNextChart()

ChartBase * Quilt::GetNextChart ( )

Definition at line 414 of file Quilt.cpp.

◆ GetNextSmallerScaleChart()

ChartBase * Quilt::GetNextSmallerScaleChart ( )

Definition at line 434 of file Quilt.cpp.

◆ GetNomScaleMax()

int Quilt::GetNomScaleMax ( int  scale,
ChartTypeEnum  type,
ChartFamilyEnum  family 
)

Definition at line 815 of file Quilt.cpp.

◆ GetNomScaleMin()

int Quilt::GetNomScaleMin ( int  scale,
ChartTypeEnum  type,
ChartFamilyEnum  family 
)

Definition at line 832 of file Quilt.cpp.

◆ GetOverlayChartAtPix()

ChartBase * Quilt::GetOverlayChartAtPix ( ViewPort VPoint,
wxPoint  p 
)

Definition at line 693 of file Quilt.cpp.

◆ GetPreferredFamily()

ChartFamilyEnum Quilt::GetPreferredFamily ( void  )
inline

Definition at line 198 of file Quilt.h.

◆ GetQuiltDepthUnit()

wxString Quilt::GetQuiltDepthUnit ( )
inline

Definition at line 108 of file Quilt.h.

◆ GetQuiltIndexArray()

std::vector< int > Quilt::GetQuiltIndexArray ( void  )

Definition at line 729 of file Quilt.cpp.

◆ GetQuiltProj()

int Quilt::GetQuiltProj ( void  )
inline

Definition at line 162 of file Quilt.h.

◆ GetQuiltVP()

ViewPort & Quilt::GetQuiltVP ( )
inline

Definition at line 107 of file Quilt.h.

◆ GetRefChart()

ChartBase * Quilt::GetRefChart ( )

Definition at line 1623 of file Quilt.cpp.

◆ GetRefChartdbIndex()

int Quilt::GetRefChartdbIndex ( void  )
inline

Definition at line 158 of file Quilt.h.

◆ GetRefFamily()

ChartFamilyEnum Quilt::GetRefFamily ( )
inline

Definition at line 166 of file Quilt.h.

◆ GetRefNativeScale()

double Quilt::GetRefNativeScale ( )

Definition at line 777 of file Quilt.cpp.

◆ GetRefScale()

double Quilt::GetRefScale ( )
inline

Definition at line 164 of file Quilt.h.

◆ GetXStackHash()

unsigned long Quilt::GetXStackHash ( )
inline

Definition at line 183 of file Quilt.h.

◆ HasOverlays()

bool Quilt::HasOverlays ( void  )
inline

Definition at line 110 of file Quilt.h.

◆ Invalidate()

void Quilt::Invalidate ( void  )
inline

Definition at line 129 of file Quilt.h.

◆ InvalidateAllQuiltPatchs()

void Quilt::InvalidateAllQuiltPatchs ( void  )

Definition at line 718 of file Quilt.cpp.

◆ IsBusy()

bool Quilt::IsBusy ( )
inline

Definition at line 185 of file Quilt.h.

◆ IsChartInQuilt() [1/2]

bool Quilt::IsChartInQuilt ( ChartBase pc)

Definition at line 322 of file Quilt.cpp.

◆ IsChartInQuilt() [2/2]

bool Quilt::IsChartInQuilt ( wxString &  full_path)

Definition at line 334 of file Quilt.cpp.

◆ IsChartQuiltableRef()

bool Quilt::IsChartQuiltableRef ( int  db_index)

Definition at line 291 of file Quilt.cpp.

◆ IsChartSmallestScale()

bool Quilt::IsChartSmallestScale ( int  dbIndex)

Definition at line 1071 of file Quilt.cpp.

◆ IsComposed()

bool Quilt::IsComposed ( )
inline

Definition at line 98 of file Quilt.h.

◆ IsQuiltDelta()

bool Quilt::IsQuiltDelta ( ViewPort vp)

Definition at line 749 of file Quilt.cpp.

◆ IsQuiltVector()

bool Quilt::IsQuiltVector ( void  )

Definition at line 584 of file Quilt.cpp.

◆ IsVPBlittable()

bool Quilt::IsVPBlittable ( ViewPort VPoint,
int  dx,
int  dy,
bool  b_allow_vector = false 
)

Definition at line 266 of file Quilt.cpp.

◆ RenderQuiltRegionViewOnDCNoText()

bool Quilt::RenderQuiltRegionViewOnDCNoText ( wxMemoryDC &  dc,
ViewPort vp,
OCPNRegion chart_region 
)

Definition at line 2535 of file Quilt.cpp.

◆ RenderQuiltRegionViewOnDCTextOnly()

bool Quilt::RenderQuiltRegionViewOnDCTextOnly ( wxMemoryDC &  dc,
ViewPort vp,
OCPNRegion chart_region 
)

Definition at line 2540 of file Quilt.cpp.

◆ SetHiliteIndex()

void Quilt::SetHiliteIndex ( int  index)
inline

Definition at line 151 of file Quilt.h.

◆ SetPreferrefFamily()

void Quilt::SetPreferrefFamily ( ChartFamilyEnum  family)
inline

Definition at line 168 of file Quilt.h.

◆ SetQuiltParameters()

void Quilt::SetQuiltParameters ( double  CanvasScaleFactor,
int  CanvasWidth 
)
inline

Definition at line 89 of file Quilt.h.

◆ SetReferenceChart()

void Quilt::SetReferenceChart ( int  dbIndex)
inline

Definition at line 152 of file Quilt.h.

◆ SetRenderedVP()

void Quilt::SetRenderedVP ( ViewPort vp)
inline

Definition at line 109 of file Quilt.h.

◆ UnlockQuilt()

void Quilt::UnlockQuilt ( )

Definition at line 1629 of file Quilt.cpp.


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