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 ()
 
ChartBase * GetFirstChart ()
 
ChartBase * GetNextChart ()
 
ChartBase * GetLargestScaleChart ()
 
ChartBase * GetNextSmallerScaleChart ()
 
std::vector< int > GetQuiltIndexArray (void)
 
bool IsQuiltDelta (ViewPort &vp)
 
bool IsChartQuiltableRef (int db_index)
 
ViewPort & GetQuiltVP ()
 
wxString GetQuiltDepthUnit ()
 
void SetRenderedVP (ViewPort &vp)
 
bool HasOverlays (void)
 
int GetExtendedStackCount (void)
 
int GetFullScreenIndexCount (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)
 
ChartBase * GetChartAtPix (ViewPort &VPoint, wxPoint p)
 
ChartBase * GetOverlayChartAtPix (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)
 
OCPNRegion & GetFullQuiltRenderedRegion (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 SetHiliteIndexArray (const std::vector< int > &index_array)
 
void ClearHiliteIndexArray ()
 
void SetReferenceChart (int dbIndex)
 
int GetRefChartdbIndex (void)
 
ChartBase * GetRefChart ()
 
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 ()
 
std::vector< int > & GetFullscreenIndexArray ()
 
unsigned long GetXStackHash ()
 
bool IsBusy ()
 
QuiltPatch * GetCurrentPatch ()
 
bool IsChartInQuilt (ChartBase *pc)
 
bool IsChartInQuilt (wxString &full_path)
 
bool IsQuiltVector (void)
 
bool DoesQuiltContainPlugins (void)
 
LLRegion GetHiliteRegion ()
 
std::vector< int > & GetHiLiteIndexArray ()
 
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 83 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 1028 of file Quilt.cpp.

◆ AdjustRefOnZoomOut()

int Quilt::AdjustRefOnZoomOut ( double proposed_scale_onscreen)

Definition at line 995 of file Quilt.cpp.

◆ AdjustRefSelection()

int Quilt::AdjustRefSelection ( const ViewPort & vp_in)

Definition at line 1559 of file Quilt.cpp.

◆ ClearHiliteIndexArray()

void Quilt::ClearHiliteIndexArray ( )
inline

Definition at line 155 of file Quilt.h.

◆ Compose()

bool Quilt::Compose ( const ViewPort & vp)

WGS84_semimajor_axis_meters * mercator_k0 * DEGREE;

Definition at line 1695 of file Quilt.cpp.

◆ ComputeRenderRegion()

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

Definition at line 2581 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 93 of file Quilt.h.

◆ GetBestStartScale()

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

Definition at line 1594 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 184 of file Quilt.h.

◆ GetExtendedStackCount()

int Quilt::GetExtendedStackCount ( void )
inline

Definition at line 111 of file Quilt.h.

◆ GetExtendedStackIndexArray()

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

Definition at line 181 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.

◆ GetFullscreenIndexArray()

std::vector< int > & Quilt::GetFullscreenIndexArray ( )
inline

Definition at line 187 of file Quilt.h.

◆ GetFullScreenIndexCount()

int Quilt::GetFullScreenIndexCount ( void )
inline

Definition at line 112 of file Quilt.h.

◆ GetHiLiteIndexArray()

std::vector< int > & Quilt::GetHiLiteIndexArray ( )
inline

Definition at line 202 of file Quilt.h.

◆ GetHiliteRegion()

LLRegion Quilt::GetHiliteRegion ( )

Definition at line 1101 of file Quilt.cpp.

◆ GetLargestScaleChart()

ChartBase * Quilt::GetLargestScaleChart ( )

Definition at line 454 of file Quilt.cpp.

◆ GetMaxErrorFactor()

double Quilt::GetMaxErrorFactor ( )
inline

Definition at line 168 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 208 of file Quilt.h.

◆ GetQuiltDepthUnit()

wxString Quilt::GetQuiltDepthUnit ( )
inline

Definition at line 107 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 167 of file Quilt.h.

◆ GetQuiltVP()

ViewPort & Quilt::GetQuiltVP ( )
inline

Definition at line 106 of file Quilt.h.

◆ GetRefChart()

ChartBase * Quilt::GetRefChart ( )

Definition at line 1679 of file Quilt.cpp.

◆ GetRefChartdbIndex()

int Quilt::GetRefChartdbIndex ( void )
inline

Definition at line 163 of file Quilt.h.

◆ GetRefFamily()

ChartFamilyEnum Quilt::GetRefFamily ( )
inline

Definition at line 171 of file Quilt.h.

◆ GetRefNativeScale()

double Quilt::GetRefNativeScale ( )

Definition at line 777 of file Quilt.cpp.

◆ GetRefScale()

double Quilt::GetRefScale ( )
inline

Definition at line 169 of file Quilt.h.

◆ GetXStackHash()

unsigned long Quilt::GetXStackHash ( )
inline

Definition at line 191 of file Quilt.h.

◆ HasOverlays()

bool Quilt::HasOverlays ( void )
inline

Definition at line 109 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 193 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 1079 of file Quilt.cpp.

◆ IsComposed()

bool Quilt::IsComposed ( )
inline

Definition at line 97 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 2611 of file Quilt.cpp.

◆ RenderQuiltRegionViewOnDCTextOnly()

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

Definition at line 2616 of file Quilt.cpp.

◆ SetHiliteIndex()

void Quilt::SetHiliteIndex ( int index)
inline

Definition at line 151 of file Quilt.h.

◆ SetHiliteIndexArray()

void Quilt::SetHiliteIndexArray ( const std::vector< int > & index_array)
inline

Definition at line 152 of file Quilt.h.

◆ SetPreferrefFamily()

void Quilt::SetPreferrefFamily ( ChartFamilyEnum family)
inline

Definition at line 173 of file Quilt.h.

◆ SetQuiltParameters()

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

Definition at line 88 of file Quilt.h.

◆ SetReferenceChart()

void Quilt::SetReferenceChart ( int dbIndex)
inline

Definition at line 157 of file Quilt.h.

◆ SetRenderedVP()

void Quilt::SetRenderedVP ( ViewPort & vp)
inline

Definition at line 108 of file Quilt.h.

◆ UnlockQuilt()

void Quilt::UnlockQuilt ( )

Definition at line 1685 of file Quilt.cpp.


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