|
OpenCPN Partial API docs
|
ChartCanvas - Main chart display and interaction component. More...
#include <chcanv.h>
Public Member Functions | |
| ChartCanvas (wxFrame *frame, int canvasIndex, wxWindow *nmea_log) | |
| virtual void | ReloadVP (bool b_adjust=true) override |
| float | GetVPScale () override |
| Return ViewPort scale factor, in physical pixels per meter. | |
| bool | Show (bool show=true) override |
| double | GetCanvasRangeMeters () override |
| int | GetENCDisplayCategory () override |
| void | SetCanvasRangeMeters (double range) override |
| wxBitmap * | GetScratchBitmap () const override |
| void | ResetGridFont () override |
| void | ResetGlGridFont () override |
| void | EnablePaint (bool b_enable) override |
| bool | CanAccelerateGlPanning () override |
| void | SetupGlCompression () override |
| void | TriggerDeferredFocus () override |
| void | Refresh (bool eraseBackground=true, const wxRect *rect=nullptr) override |
| wxWindow * | GetWindow () override |
| double | GetScaleValue () override |
| void | SetupGlCanvas () |
| void | OnKeyDown (wxKeyEvent &event) |
| void | OnKeyUp (wxKeyEvent &event) |
| void | OnKeyChar (wxKeyEvent &event) |
| void | OnPaint (wxPaintEvent &event) |
| void | OnToolLeftClick (wxCommandEvent &event) |
| void | PaintCleanup () |
| void | Scroll (int dx, int dy) |
| bool | MouseEventOverlayWindows (wxMouseEvent &event) |
| bool | MouseEventChartBar (wxMouseEvent &event) |
| bool | MouseEventMUIBar (wxMouseEvent &event) |
| bool | MouseEventToolbar (wxMouseEvent &event) |
| bool | MouseEventIENCBar (wxMouseEvent &event) |
| bool | MouseEventSetup (wxMouseEvent &event, bool b_handle_dclick=true) |
| bool | MouseEventProcessObjects (wxMouseEvent &event) |
| bool | MouseEventProcessCanvas (wxMouseEvent &event) |
| Processes mouse events for core chart panning and zooming operations. | |
| void | SetCanvasCursor (wxMouseEvent &event) |
| void | OnKillFocus (wxFocusEvent &WXUNUSED(event)) |
| void | OnSetFocus (wxFocusEvent &WXUNUSED(event)) |
| void | PopupMenuHandler (wxCommandEvent &event) |
| bool | IsPrimaryCanvas () |
| bool | SetUserOwnship () |
| bool | SetCursor (const wxCursor &c) override |
| void | Update () override |
| void | LostMouseCapture (wxMouseCaptureLostEvent &event) |
| void | CancelMouseRoute () |
| void | SetDisplaySizeMM (double size) |
| Set the width of the screen in millimeters. | |
| double | GetDisplaySizeMM () |
| Get the width of the screen in millimeters. | |
| bool | SetVPScale (double sc, bool b_refresh=true) |
| Sets the viewport scale while maintaining the center point. | |
| bool | SetVPProjection (int projection) |
| bool | SetViewPoint (double lat, double lon) |
| Centers the view on a specific lat/lon position. | |
| bool | SetViewPointByCorners (double latSW, double lonSW, double latNE, double lonNE) |
| bool | SetViewPoint (double lat, double lon, double scale_ppm, double skew, double rotation, int projection=0, bool b_adjust=true, bool b_refresh=true) |
| Set the viewport center point, scale, skew, rotation and projection. | |
| void | LoadVP (ViewPort &vp, bool b_adjust=true) |
| ChartStack * | GetpCurrentStack () |
| void | SetGroupIndex (int index, bool autoswitch=false) |
| bool | CheckGroup (int igroup) |
| void | canvasRefreshGroupIndex (void) |
| void | canvasChartsRefresh (int dbi_hint) |
| void | CheckGroupValid (bool showMessage=true, bool switchGroup0=true) |
| void | UpdateCanvasS52PLIBConfig () |
| void | OnDeferredFocusTimerEvent (wxTimerEvent &event) |
| void | OnRouteFinishTimerEvent (wxTimerEvent &event) |
| void | ClearS52PLIBStateHash () |
| void | SetupCanvasQuiltMode (void) |
| void | ApplyCanvasConfig (canvasConfig *pcc) |
| bool | SetVPRotation (double angle) |
| double | GetVPRotation (void) |
| double | GetVPSkew (void) |
| double | GetVPTilt (void) |
| void | ClearbFollow (void) |
| void | SetbFollow (void) |
| void | TogglebFollow (void) |
| bool | GetbFollow () |
| void | JumpToPosition (double lat, double lon, double scale) |
| void | SetFirstAuto (bool b_auto) |
| void | SetAbsoluteMinScale (double min_scale) |
| std::shared_ptr< HostApi121::PiPointContext > | GetCanvasContextAtPoint (int x, int y) |
| void | GetDoubleCanvasPointPix (double rlat, double rlon, wxPoint2DDouble *r) |
| Convert latitude/longitude to canvas pixel coordinates (physical pixels) with double precision. | |
| void | GetDoubleCanvasPointPixVP (ViewPort &vp, double rlat, double rlon, wxPoint2DDouble *r) |
| Convert latitude/longitude to canvas pixel coordinates (physical pixels) with double precision, using specified viewport. | |
| bool | GetCanvasPointPix (double rlat, double rlon, wxPoint *r) |
| Convert latitude/longitude to canvas pixel coordinates (physical pixels) rounded to nearest integer. | |
| bool | GetCanvasPointPixVP (ViewPort &vp, double rlat, double rlon, wxPoint *r) |
| Convert latitude/longitude to canvas pixel coordinates rounded to nearest integer using specified viewport. | |
| void | GetCanvasPixPoint (double x, double y, double &lat, double &lon) |
| Convert canvas pixel coordinates (physical pixels) to latitude/longitude. | |
| void | WarpPointerDeferred (int x, int y) |
| void | UpdateShips () |
| void | UpdateAIS () |
| void | UpdateAlerts () |
| void | ToggleCPAWarn () |
| bool | IsMeasureActive () |
| wxBitmap & | GetTideBitmap () |
| int | GetUpMode () |
| bool | GetLookahead () |
| void | UnlockQuilt () |
| void | SetQuiltMode (bool b_quilt) |
| bool | GetQuiltMode (void) |
| std::vector< int > | GetQuiltIndexArray (void) |
| bool | IsQuiltDelta (void) |
| void | SetQuiltChartHiLiteIndex (int dbIndex) |
| void | SetQuiltChartHiLiteIndexArray (std::vector< int > hilite_array) |
| void | ClearQuiltChartHiLiteIndexArray () |
| int | GetQuiltReferenceChartIndex (void) |
| double | GetBestStartScale (int dbi_hint, const ViewPort &vp) |
| void | ConfigureChartBar () |
| int | GetNextContextMenuId () |
| TCWin * | getTCWin () |
| bool | StartTimedMovement (bool stoptimer=true) |
| void | DoTimedMovement () |
| void | DoMovement (long dt) |
| Performs a step of smooth movement animation on the chart canvas. | |
| void | StopMovement () |
| void | StartTimedMovementVP (double target_lat, double target_lon, int nstep) |
| void | DoTimedMovementVP () |
| void | StopMovementVP () |
| void | StartTimedMovementTarget () |
| void | DoTimedMovementTarget () |
| void | StopMovementTarget () |
| void | SetColorScheme (ColorScheme cs) |
| ColorScheme | GetColorScheme () |
| void | CanvasApplyLocale () |
| void | RebuildCursors () |
| int | GetCanvasWidth () |
| int | GetCanvasHeight () |
| float | GetVPChartScale () |
| Return the ViewPort chart scale denominator (e.g., 50000 for a 1:50000 scale). | |
| double | GetCanvasScaleFactor () |
| Return the number of logical pixels per meter for the screen. | |
| double | GetCanvasTrueScale () |
| double | GetAbsoluteMinScalePpm () |
| ViewPort * | GetpVP () |
| void | SetVP (ViewPort &) |
| ChartBase * | GetChartAtCursor () |
| ChartBase * | GetOverlayChartAtCursor () |
| Piano * | GetPiano () |
| int | GetPianoHeight () |
| bool | isRouteEditing (void) |
| bool | isMarkEditing (void) |
| GSHHSChart * | GetWorldBackgroundChart () |
| void | ResetWorldBackgroundChart () |
| void | SetbTCUpdate (bool f) |
| bool | GetbTCUpdate () |
| void | SetbShowCurrent (bool f) |
| bool | GetbShowCurrent () |
| void | SetbShowTide (bool f) |
| bool | GetbShowTide () |
| void | SetShowVisibleSectors (bool val) |
| bool | GetShowVisibleSectors () |
| double | GetPixPerMM () |
| Get the number of logical pixels per millimeter on the screen. | |
| void | SetbEnableBasemapTile (bool f) |
| bool | GetbEnableBasemapTile () |
| void | SetOwnShipState (ownship_state_t state) |
| void | SetCursorStatus (double cursor_lat, double cursor_lon) |
| void | GetCursorLatLon (double *lat, double *lon) |
| bool | PanCanvas (double dx, double dy) |
| Pans (moves) the canvas by the specified physical pixels in x and y directions. | |
| void | StopAutoPan (void) |
| bool | IsOwnshipOnScreen () |
| void | DisableQuiltAdjustOnZoom (bool disable) |
| void | ZoomCanvas (double factor, bool can_zoom_to_cursor=true, bool stoptimer=true) |
| Perform a smooth zoom operation on the chart canvas by the specified factor. | |
| void | ZoomCanvasSimple (double factor) |
| Perform an immediate zoom operation without smooth transitions. | |
| void | RotateCanvas (double dir) |
| void | DoRotateCanvas (double rotation) |
| void | DoTiltCanvas (double tilt) |
| void | ShowAISTargetList (void) |
| void | ShowGoToPosition (void) |
| void | HideGlobalToolbar () |
| void | ShowGlobalToolbar () |
| bool | GetShowDepthUnits () |
| void | SetShowDepthUnits (bool show) |
| bool | GetShowGrid () |
| void | SetShowGrid (bool show) |
| bool | GetShowOutlines () |
| void | SetShowOutlines (bool show) |
| bool | GetShowChartbar () |
| wxRect | GetMUIBarRect () |
| void | SetMUIBarPosition () |
| void | DestroyMuiBar () |
| void | CreateMUIBar () |
| void | ToggleChartOutlines (void) |
| void | ToggleCanvasQuiltMode (void) |
| wxString | GetScaleText () |
| bool | GetShowAIS () |
| void | SetShowAIS (bool show) |
| bool | GetAttenAIS () |
| void | SetAttenAIS (bool show) |
| void | SetShowFocusBar (bool enable) |
| bool | GetShowFocusBar () |
| MUIBar * | GetMUIBar () |
| void | SetAlertString (wxString str) |
| wxString | GetAlertString () |
| bool | GetShowENCText () |
| void | SetShowENCText (bool show) |
| bool | GetShowENCDepth () |
| void | SetShowENCDepth (bool show) |
| bool | GetShowENCLightDesc () |
| void | SetShowENCLightDesc (bool show) |
| bool | GetShowENCBuoyLabels () |
| void | SetShowENCBuoyLabels (bool show) |
| bool | GetShowENCLights () |
| void | SetShowENCLights (bool show) |
| void | SetENCDisplayCategory (int category) |
| bool | GetShowENCAnchor () |
| void | SetShowENCAnchor (bool show) |
| bool | GetShowENCDataQual () |
| void | SetShowENCDataQual (bool show) |
| void | JaggyCircle (ocpnDC &dc, wxPen pen, int x, int y, int radius) |
| void | ShowTides (bool bShow) |
| void | ShowCurrents (bool bShow) |
| void | SetUpMode (int mode) |
| void | ToggleLookahead () |
| void | SetShowGPS (bool show) |
| void | UpdateFollowButtonState (void) |
| void | InvalidateGL () |
| bool | IsTileOverlayIndexInYesShow (int index) |
| bool | IsTileOverlayIndexInNoShow (int index) |
| void | AddTileOverlayIndexToNoShow (int index) |
| ViewPort & | GetVP () |
| wxString | FindValidUploadPort () |
| ChartBase * | GetLargestScaleQuiltChart () |
| ChartBase * | GetFirstQuiltChart () |
| ChartBase * | GetNextQuiltChart () |
| int | GetQuiltChartCount () |
| void | InvalidateAllQuiltPatchs (void) |
| void | SetQuiltRefChart (int dbIndex) |
| std::vector< int > | GetQuiltCandidatedbIndexArray (bool flag1=true, bool flag2=true) |
| std::vector< int > & | GetQuiltExtendedStackdbIndexArray () |
| std::vector< int > & | GetQuiltFullScreendbIndexArray () |
| std::vector< int > | GetQuiltEclipsedStackdbIndexArray () |
| int | GetQuiltRefChartdbIndex (void) |
| void | InvalidateQuilt (void) |
| double | GetQuiltMaxErrorFactor () |
| bool | IsChartQuiltableRef (int db_index) |
| bool | IsChartLargeEnoughToRender (ChartBase *chart, ViewPort &vp) |
| int | GetCanvasChartNativeScale () |
| int | FindClosestCanvasChartdbIndex (int scale) |
| void | UpdateCanvasOnGroupChange (void) |
| void | ShowObjectQueryWindow (int x, int y, float zlat, float zlon) |
| void | ShowMarkPropertiesDialog (RoutePoint *markPoint) |
| void | ShowRoutePropertiesDialog (wxString title, Route *selected) |
| void | ShowTrackPropertiesDialog (Track *selected) |
| void | DrawTCWindow (int x, int y, void *pIDX) |
| Legacy tide dialog creation method. | |
| void | ShowSingleTideDialog (int x, int y, void *pvIDX) |
| Display tide/current dialog with single-instance management. | |
| bool | IsTideDialogOpen () const |
| void | CloseTideDialog () |
| Close any open tide dialog. | |
| void | UpdateGPSCompassStatusBox (bool b_force_new) |
| ocpnCompass * | GetCompass () |
| wxColour | GetFogColor () |
| void | ShowChartInfoWindow (int x, int dbIndex) |
| void | HideChartInfoWindow (void) |
| void | ShowCompositeInfoWindow (int x, int n_charts, int scale, const std::vector< int > &index_vector) |
| void | StartMeasureRoute () |
| void | CancelMeasureRoute () |
| bool | DoCanvasUpdate (void) |
| void | SelectQuiltRefdbChart (int db_index, bool b_autoscale=true) |
| void | SelectQuiltRefChart (int selected_index) |
| double | GetBestVPScale (ChartBase *pchart) |
| void | selectCanvasChartDisplay (int type, int family) |
| void | RemoveChartFromQuilt (int dbIndex) |
| void | HandlePianoClick (int selected_index, const std::vector< int > &selected_dbIndex_array) |
| void | HandlePianoRClick (int x, int y, int selected_index, const std::vector< int > &selected_dbIndex_array) |
| void | HandlePianoRollover (int selected_index, const std::vector< int > &selected_dbIndex_array, int n_charts, int scale) |
| void | ClearPianoRollover () |
| void | UpdateCanvasControlBar (void) |
| void | FormatPianoKeys (void) |
| void | PianoPopupMenu (int x, int y, int selected_index, const std::vector< int > &selected_dbIndex_array) |
| void | OnPianoMenuDisableChart (wxCommandEvent &event) |
| void | OnPianoMenuEnableChart (wxCommandEvent &event) |
| bool | IsPianoContextMenuActive () |
| bool | DoCanvasCOGSet (void) |
| void | ApplyGlobalSettings () |
| void | SetShowGPSCompassWindow (bool bshow) |
| bool | GetShowGPSCompassWindow () |
| void | FreezePiano () |
| void | ThawPiano () |
| void | StartChartDragInertia () |
| void | SetupGridFont () |
| void | DrawBlinkObjects (void) |
| void | StartRoute (void) |
| wxString | FinishRoute (void) |
| bool | CheckEdgePan (int x, int y, bool bdragging, int margin, int delta) |
| int | GetMinAvailableGshhgQuality () |
| int | GetMaxAvailableGshhgQuality () |
| Route * | GetSelectedRoute () const |
| Track * | GetSelectedTrack () const |
| RoutePoint * | GetSelectedRoutePoint () const |
| void | SetAISCanvasDisplayStyle (int StyleIndx) |
| void | TouchAISToolActive (void) |
| void | UpdateAISTBTool (void) |
| void | SelectChartFromStack (int index, bool bDir=false, ChartTypeEnum New_Type=CHART_TYPE_DONTCARE, ChartFamilyEnum New_Family=CHART_FAMILY_DONTCARE) |
| void | SelectdbChart (int dbindex) |
| void | DoCanvasStackDelta (int direction) |
| void | ProcessNewGUIScale () |
| wxRect | GetScaleBarRect () |
| void | RenderAlertMessage (wxDC &dc, const ViewPort &vp) |
| std::vector< int > | GetQuiltNoshowIindexArray () |
| double | GetDisplayScale () |
| Get the ratio of physical to logical pixel for the display. | |
| void | ResetOwnshipOffset () |
| NotificationsList * | GetNotificationsList () |
| int | PrepareContextSelections (double lat, double lon) |
| RoutePoint * | GetFoundRoutepoint () |
Public Member Functions inherited from AbstractChartCanvas | |
| AbstractChartCanvas (wxWindow *parent, wxPoint point, wxSize size, int flags) | |
Friends | |
| class | glChartCanvas |
ChartCanvas - Main chart display and interaction component.
Manages the visualization of nautical charts and all chart-related user interactions. This class integrates geographic data, user interface elements, and navigation tools into a comprehensive chart viewing experience. It handles everything from chart loading and rendering to user gestures, route planning, and navigation aids.
ChartCanvas uses ViewPort internally to handle the mathematical transformations between geographic and screen coordinates. While ViewPort focuses on the projection math, ChartCanvas manages the actual rendering, user interaction, and application logic.
As a wxWindow subclass, it responds to paint, mouse, keyboard, and other window events, translating them into appropriate chart operations like panning, zooming, and object manipulation.
| ChartCanvas::ChartCanvas | ( | wxFrame * | frame, |
| int | canvasIndex, | ||
| wxWindow * | nmea_log | ||
| ) |
Definition at line 250 of file chcanv.cpp.
| ChartCanvas::~ChartCanvas | ( | ) |
Definition at line 685 of file chcanv.cpp.
| void ChartCanvas::AddTileOverlayIndexToNoShow | ( | int | index | ) |
Definition at line 14535 of file chcanv.cpp.
| void ChartCanvas::ApplyCanvasConfig | ( | canvasConfig * | pcc | ) |
Definition at line 1155 of file chcanv.cpp.
| void ChartCanvas::ApplyGlobalSettings | ( | ) |
Definition at line 1207 of file chcanv.cpp.
|
overridevirtual |
Implements AbstractChartCanvas.
Definition at line 6264 of file chcanv.cpp.
| void ChartCanvas::CancelMeasureRoute | ( | ) |
Definition at line 2622 of file chcanv.cpp.
| void ChartCanvas::CancelMouseRoute | ( | ) |
Definition at line 12767 of file chcanv.cpp.
| void ChartCanvas::CanvasApplyLocale | ( | ) |
Definition at line 848 of file chcanv.cpp.
| void ChartCanvas::canvasChartsRefresh | ( | int | dbi_hint | ) |
Definition at line 1442 of file chcanv.cpp.
| void ChartCanvas::canvasRefreshGroupIndex | ( | void | ) |
Definition at line 1318 of file chcanv.cpp.
| bool ChartCanvas::CheckEdgePan | ( | int | x, |
| int | y, | ||
| bool | bdragging, | ||
| int | margin, | ||
| int | delta | ||
| ) |
Definition at line 7445 of file chcanv.cpp.
| bool ChartCanvas::CheckGroup | ( | int | igroup | ) |
Definition at line 1408 of file chcanv.cpp.
| void ChartCanvas::CheckGroupValid | ( | bool | showMessage = true, |
| bool | switchGroup0 = true |
||
| ) |
Definition at line 1216 of file chcanv.cpp.
| void ChartCanvas::ClearbFollow | ( | void | ) |
Definition at line 4929 of file chcanv.cpp.
| void ChartCanvas::ClearPianoRollover | ( | ) |
Definition at line 14756 of file chcanv.cpp.
| void ChartCanvas::ClearQuiltChartHiLiteIndexArray | ( | ) |
Definition at line 2565 of file chcanv.cpp.
| void ChartCanvas::CloseTideDialog | ( | ) |
Close any open tide dialog.
Definition at line 13965 of file chcanv.cpp.
| void ChartCanvas::ConfigureChartBar | ( | ) |
Definition at line 1249 of file chcanv.cpp.
| void ChartCanvas::CreateMUIBar | ( | ) |
Definition at line 7225 of file chcanv.cpp.
| void ChartCanvas::DestroyMuiBar | ( | ) |
Definition at line 7273 of file chcanv.cpp.
|
inline |
| bool ChartCanvas::DoCanvasCOGSet | ( | void | ) |
Definition at line 3452 of file chcanv.cpp.
| void ChartCanvas::DoCanvasStackDelta | ( | int | direction | ) |
Definition at line 14119 of file chcanv.cpp.
| bool ChartCanvas::DoCanvasUpdate | ( | void | ) |
Definition at line 1512 of file chcanv.cpp.
| void ChartCanvas::DoMovement | ( | long | dt | ) |
Performs a step of smooth movement animation on the chart canvas.
This function is called to update the canvas position, scale, or rotation during animated panning, zooming, or rotating operations. The amount of movement performed is determined by the elapsed time parameter dt, and the operation continues as long as the internal movement timer is nonzero.
| dt | Elapsed time in milliseconds since the last movement step. |
Definition at line 3688 of file chcanv.cpp.
| void ChartCanvas::DoRotateCanvas | ( | double | rotation | ) |
Definition at line 4902 of file chcanv.cpp.
| void ChartCanvas::DoTiltCanvas | ( | double | tilt | ) |
Definition at line 4912 of file chcanv.cpp.
| void ChartCanvas::DoTimedMovement | ( | ) |
Definition at line 3670 of file chcanv.cpp.
| void ChartCanvas::DoTimedMovementTarget | ( | ) |
Definition at line 3665 of file chcanv.cpp.
| void ChartCanvas::DoTimedMovementVP | ( | ) |
Definition at line 3626 of file chcanv.cpp.
| void ChartCanvas::DrawBlinkObjects | ( | void | ) |
Definition at line 13364 of file chcanv.cpp.
| void ChartCanvas::DrawTCWindow | ( | int | x, |
| int | y, | ||
| void * | pIDX | ||
| ) |
Legacy tide dialog creation method.
Redirects to ShowSingleTideDialog for single-instance behavior.
Definition at line 13920 of file chcanv.cpp.
|
overridevirtual |
Implements AbstractChartCanvas.
Definition at line 2514 of file chcanv.cpp.
| int ChartCanvas::FindClosestCanvasChartdbIndex | ( | int | scale | ) |
Definition at line 2465 of file chcanv.cpp.
| wxString ChartCanvas::FindValidUploadPort | ( | ) |
Definition at line 14011 of file chcanv.cpp.
| wxString ChartCanvas::FinishRoute | ( | void | ) |
Definition at line 11343 of file chcanv.cpp.
| void ChartCanvas::FormatPianoKeys | ( | void | ) |
Definition at line 14873 of file chcanv.cpp.
| double ChartCanvas::GetBestStartScale | ( | int | dbi_hint, |
| const ViewPort & | vp | ||
| ) |
Definition at line 5300 of file chcanv.cpp.
| double ChartCanvas::GetBestVPScale | ( | ChartBase * | pchart | ) |
Definition at line 1996 of file chcanv.cpp.
| int ChartCanvas::GetCanvasChartNativeScale | ( | ) |
Definition at line 2434 of file chcanv.cpp.
| std::shared_ptr< HostApi121::PiPointContext > ChartCanvas::GetCanvasContextAtPoint | ( | int | x, |
| int | y | ||
| ) |
Definition at line 7559 of file chcanv.cpp.
| void ChartCanvas::GetCanvasPixPoint | ( | double | x, |
| double | y, | ||
| double & | lat, | ||
| double & | lon | ||
| ) |
Convert canvas pixel coordinates (physical pixels) to latitude/longitude.
Uses BSB chart geo-referencing for compatible raster charts when conditions permit, otherwise falls back to viewport projection estimation.
| x | X-coordinate in physical pixels |
| y | Y-coordinate in physical pixels |
| lat | [out] Reference to receive the resulting latitude at the given (x, y) coordinates. |
| lon | [out] Reference to receive the resulting longitude at the given (x, y) coordinates. |
Definition at line 4629 of file chcanv.cpp.
| bool ChartCanvas::GetCanvasPointPix | ( | double | rlat, |
| double | rlon, | ||
| wxPoint * | r | ||
| ) |
Convert latitude/longitude to canvas pixel coordinates (physical pixels) rounded to nearest integer.
Uses GetDoubleCanvasPointPixVP internally and rounds results using wxRound (std::lround). This means 3.7 becomes 4, -3.7 becomes -4.
| rlat | Latitude in degrees |
| rlon | Longitude in degrees |
| r | [out] Pointer to wxPoint to receive the canvas pixel coordinates in physical pixels, as rounded integer values. |
Definition at line 4604 of file chcanv.cpp.
| bool ChartCanvas::GetCanvasPointPixVP | ( | ViewPort & | vp, |
| double | rlat, | ||
| double | rlon, | ||
| wxPoint * | r | ||
| ) |
Convert latitude/longitude to canvas pixel coordinates rounded to nearest integer using specified viewport.
Uses GetDoubleCanvasPointPixVP internally and rounds results using wxRound (std::lround). This means 3.7 becomes 4, -3.7 becomes -4.
| vp | ViewPort containing projection parameters and canvas settings |
| rlat | Latitude in degrees |
| rlon | Longitude in degrees |
| r | [out] Pointer to wxPoint to receive the canvas pixel coordinates in physical pixels, as rounded integer values. |
Definition at line 4608 of file chcanv.cpp.
|
overridevirtual |
Implements AbstractChartCanvas.
Definition at line 2225 of file chcanv.cpp.
|
inline |
Return the number of logical pixels per meter for the screen.
| ChartBase * ChartCanvas::GetChartAtCursor | ( | ) |
Definition at line 2444 of file chcanv.cpp.
|
inline |
| void ChartCanvas::GetCursorLatLon | ( | double * | lat, |
| double * | lon | ||
| ) |
Definition at line 4542 of file chcanv.cpp.
|
inline |
Get the ratio of physical to logical pixel for the display.
On standard displays, one logical pixel equals one physical pixel, so this value is 1.0. On high-DPI/Retina displays, one logical pixel may equal multiple physical pixels:
|
inline |
| void ChartCanvas::GetDoubleCanvasPointPix | ( | double | rlat, |
| double | rlon, | ||
| wxPoint2DDouble * | r | ||
| ) |
Convert latitude/longitude to canvas pixel coordinates (physical pixels) with double precision.
Returns unrounded floating point pixel coordinates. When used with drawing functions that take integer coordinates, values will be truncated.
| rlat | Latitude in degrees |
| rlon | Longitude in degrees |
| r | [out] Pointer to wxPoint2DDouble to receive the canvas pixel coordinates as unrounded floating point values |
Definition at line 4549 of file chcanv.cpp.
| void ChartCanvas::GetDoubleCanvasPointPixVP | ( | ViewPort & | vp, |
| double | rlat, | ||
| double | rlon, | ||
| wxPoint2DDouble * | r | ||
| ) |
Convert latitude/longitude to canvas pixel coordinates (physical pixels) with double precision, using specified viewport.
Returns unrounded floating point pixel coordinates. When used with drawing functions that take integer coordinates, values will be truncated.
| vp | ViewPort containing projection parameters and canvas settings |
| rlat | Latitude in degrees |
| rlon | Longitude in degrees |
| r | [out] Pointer to wxPoint2DDouble to receive the canvas pixel coordinates as unrounded floating point values |
Definition at line 4554 of file chcanv.cpp.
|
inlineoverridevirtual |
Implements AbstractChartCanvas.
| ChartBase * ChartCanvas::GetFirstQuiltChart | ( | ) |
Definition at line 2549 of file chcanv.cpp.
|
inline |
| ChartBase * ChartCanvas::GetLargestScaleQuiltChart | ( | ) |
Definition at line 2545 of file chcanv.cpp.
| wxRect ChartCanvas::GetMUIBarRect | ( | ) |
Definition at line 15089 of file chcanv.cpp.
| int ChartCanvas::GetNextContextMenuId | ( | ) |
Definition at line 12773 of file chcanv.cpp.
| ChartBase * ChartCanvas::GetNextQuiltChart | ( | ) |
Definition at line 2553 of file chcanv.cpp.
|
inline |
| ChartBase * ChartCanvas::GetOverlayChartAtCursor | ( | ) |
Definition at line 2455 of file chcanv.cpp.
|
inline |
| int ChartCanvas::GetPianoHeight | ( | ) |
Definition at line 1242 of file chcanv.cpp.
|
inline |
| std::vector< int > ChartCanvas::GetQuiltCandidatedbIndexArray | ( | bool | flag1 = true, |
| bool | flag2 = true |
||
| ) |
Definition at line 2569 of file chcanv.cpp.
| int ChartCanvas::GetQuiltChartCount | ( | ) |
Definition at line 2555 of file chcanv.cpp.
| std::vector< int > ChartCanvas::GetQuiltEclipsedStackdbIndexArray | ( | ) |
Definition at line 2586 of file chcanv.cpp.
| std::vector< int > & ChartCanvas::GetQuiltExtendedStackdbIndexArray | ( | ) |
Definition at line 2578 of file chcanv.cpp.
| std::vector< int > & ChartCanvas::GetQuiltFullScreendbIndexArray | ( | ) |
Definition at line 2582 of file chcanv.cpp.
| std::vector< int > ChartCanvas::GetQuiltIndexArray | ( | void | ) |
Definition at line 2525 of file chcanv.cpp.
| double ChartCanvas::GetQuiltMaxErrorFactor | ( | ) |
Definition at line 2592 of file chcanv.cpp.
| bool ChartCanvas::GetQuiltMode | ( | void | ) |
Definition at line 2535 of file chcanv.cpp.
|
inline |
| int ChartCanvas::GetQuiltRefChartdbIndex | ( | void | ) |
Definition at line 2574 of file chcanv.cpp.
| int ChartCanvas::GetQuiltReferenceChartIndex | ( | void | ) |
Definition at line 2537 of file chcanv.cpp.
|
inlineoverridevirtual |
Implements AbstractChartCanvas.
|
inlineoverridevirtual |
Implements AbstractChartCanvas.
|
inline |
| ViewPort & ChartCanvas::GetVP | ( | ) |
Definition at line 2638 of file chcanv.cpp.
|
inline |
|
inlineoverridevirtual |
Return ViewPort scale factor, in physical pixels per meter.
Implements AbstractChartCanvas.
|
inlineoverridevirtual |
Implements AbstractChartCanvas.
|
inline |
| void ChartCanvas::HandlePianoClick | ( | int | selected_index, |
| const std::vector< int > & | selected_dbIndex_array | ||
| ) |
Definition at line 14549 of file chcanv.cpp.
| void ChartCanvas::HandlePianoRClick | ( | int | x, |
| int | y, | ||
| int | selected_index, | ||
| const std::vector< int > & | selected_dbIndex_array | ||
| ) |
Definition at line 14689 of file chcanv.cpp.
| void ChartCanvas::HandlePianoRollover | ( | int | selected_index, |
| const std::vector< int > & | selected_dbIndex_array, | ||
| int | n_charts, | ||
| int | scale | ||
| ) |
Definition at line 14702 of file chcanv.cpp.
| void ChartCanvas::HideChartInfoWindow | ( | void | ) |
Definition at line 7412 of file chcanv.cpp.
| void ChartCanvas::HideGlobalToolbar | ( | ) |
Definition at line 11399 of file chcanv.cpp.
| void ChartCanvas::InvalidateAllQuiltPatchs | ( | void | ) |
Definition at line 2541 of file chcanv.cpp.
| void ChartCanvas::InvalidateGL | ( | ) |
Definition at line 2426 of file chcanv.cpp.
| void ChartCanvas::InvalidateQuilt | ( | void | ) |
Definition at line 2590 of file chcanv.cpp.
Definition at line 2600 of file chcanv.cpp.
| bool ChartCanvas::IsChartQuiltableRef | ( | int | db_index | ) |
Definition at line 2596 of file chcanv.cpp.
| bool ChartCanvas::IsOwnshipOnScreen | ( | ) |
Definition at line 5250 of file chcanv.cpp.
| bool ChartCanvas::IsQuiltDelta | ( | void | ) |
Definition at line 2521 of file chcanv.cpp.
| bool ChartCanvas::IsTideDialogOpen | ( | ) | const |
Definition at line 13963 of file chcanv.cpp.
| bool ChartCanvas::IsTileOverlayIndexInNoShow | ( | int | index | ) |
Definition at line 14529 of file chcanv.cpp.
| bool ChartCanvas::IsTileOverlayIndexInYesShow | ( | int | index | ) |
Definition at line 14523 of file chcanv.cpp.
| void ChartCanvas::JaggyCircle | ( | ocpnDC & | dc, |
| wxPen | pen, | ||
| int | x, | ||
| int | y, | ||
| int | radius | ||
| ) |
Definition at line 6847 of file chcanv.cpp.
| void ChartCanvas::JumpToPosition | ( | double | lat, |
| double | lon, | ||
| double | scale | ||
| ) |
Definition at line 5015 of file chcanv.cpp.
| void ChartCanvas::LoadVP | ( | ViewPort & | vp, |
| bool | b_adjust = true |
||
| ) |
Definition at line 5266 of file chcanv.cpp.
| void ChartCanvas::LostMouseCapture | ( | wxMouseCaptureLostEvent & | event | ) |
Definition at line 10637 of file chcanv.cpp.
| bool ChartCanvas::MouseEventChartBar | ( | wxMouseEvent & | event | ) |
Definition at line 7849 of file chcanv.cpp.
| bool ChartCanvas::MouseEventIENCBar | ( | wxMouseEvent & | event | ) |
Definition at line 7874 of file chcanv.cpp.
| bool ChartCanvas::MouseEventMUIBar | ( | wxMouseEvent & | event | ) |
Definition at line 7888 of file chcanv.cpp.
| bool ChartCanvas::MouseEventOverlayWindows | ( | wxMouseEvent & | event | ) |
Definition at line 7791 of file chcanv.cpp.
| bool ChartCanvas::MouseEventProcessCanvas | ( | wxMouseEvent & | event | ) |
Processes mouse events for core chart panning and zooming operations.
This method handles the main chart navigation interactions:
| event | The mouse event to process |
Definition at line 10401 of file chcanv.cpp.
| bool ChartCanvas::MouseEventProcessObjects | ( | wxMouseEvent & | event | ) |
Definition at line 8431 of file chcanv.cpp.
| bool ChartCanvas::MouseEventSetup | ( | wxMouseEvent & | event, |
| bool | b_handle_dclick = true |
||
| ) |
g_btouch
Definition at line 7901 of file chcanv.cpp.
| bool ChartCanvas::MouseEventToolbar | ( | wxMouseEvent & | event | ) |
Definition at line 7859 of file chcanv.cpp.
| void ChartCanvas::OnDeferredFocusTimerEvent | ( | wxTimerEvent & | event | ) |
Definition at line 2667 of file chcanv.cpp.
| void ChartCanvas::OnKeyChar | ( | wxKeyEvent & | event | ) |
Definition at line 2672 of file chcanv.cpp.
| void ChartCanvas::OnKeyDown | ( | wxKeyEvent & | event | ) |
Definition at line 2712 of file chcanv.cpp.
| void ChartCanvas::OnKeyUp | ( | wxKeyEvent & | event | ) |
Definition at line 3316 of file chcanv.cpp.
| void ChartCanvas::OnKillFocus | ( | wxFocusEvent & | WXUNUSEDevent | ) |
Definition at line 929 of file chcanv.cpp.
| void ChartCanvas::OnPaint | ( | wxPaintEvent & | event | ) |
TODO UpdateCanvasS52PLIBConfig();
Definition at line 11990 of file chcanv.cpp.
| void ChartCanvas::OnPianoMenuDisableChart | ( | wxCommandEvent & | event | ) |
Definition at line 14951 of file chcanv.cpp.
| void ChartCanvas::OnPianoMenuEnableChart | ( | wxCommandEvent & | event | ) |
Definition at line 14940 of file chcanv.cpp.
| void ChartCanvas::OnRouteFinishTimerEvent | ( | wxTimerEvent & | event | ) |
Definition at line 962 of file chcanv.cpp.
| void ChartCanvas::OnSetFocus | ( | wxFocusEvent & | WXUNUSEDevent | ) |
Definition at line 952 of file chcanv.cpp.
| void ChartCanvas::OnToolLeftClick | ( | wxCommandEvent & | event | ) |
Definition at line 14201 of file chcanv.cpp.
| void ChartCanvas::PaintCleanup | ( | ) |
Definition at line 12624 of file chcanv.cpp.
| bool ChartCanvas::PanCanvas | ( | double | dx, |
| double | dy | ||
| ) |
Pans (moves) the canvas by the specified physical pixels in x and y directions.
Definition at line 5136 of file chcanv.cpp.
| void ChartCanvas::PianoPopupMenu | ( | int | x, |
| int | y, | ||
| int | selected_index, | ||
| const std::vector< int > & | selected_dbIndex_array | ||
| ) |
Definition at line 14875 of file chcanv.cpp.
| void ChartCanvas::PopupMenuHandler | ( | wxCommandEvent & | event | ) |
Definition at line 11314 of file chcanv.cpp.
| int ChartCanvas::PrepareContextSelections | ( | double | lat, |
| double | lon | ||
| ) |
in touch mode a route point could have been selected and draghandle icon shown so clear the selection
Definition at line 8095 of file chcanv.cpp.
| void ChartCanvas::ProcessNewGUIScale | ( | ) |
Definition at line 7217 of file chcanv.cpp.
| void ChartCanvas::RebuildCursors | ( | ) |
Definition at line 770 of file chcanv.cpp.
|
overridevirtual |
Implements AbstractChartCanvas.
Definition at line 12786 of file chcanv.cpp.
|
overridevirtual |
Implements AbstractChartCanvas.
Definition at line 5260 of file chcanv.cpp.
| void ChartCanvas::RemoveChartFromQuilt | ( | int | dbIndex | ) |
Definition at line 14991 of file chcanv.cpp.
| void ChartCanvas::RenderAlertMessage | ( | wxDC & | dc, |
| const ViewPort & | vp | ||
| ) |
Definition at line 15098 of file chcanv.cpp.
|
overridevirtual |
Implements AbstractChartCanvas.
Definition at line 6263 of file chcanv.cpp.
|
inlineoverridevirtual |
Implements AbstractChartCanvas.
| void ChartCanvas::RotateCanvas | ( | double | dir | ) |
Definition at line 4887 of file chcanv.cpp.
| void ChartCanvas::selectCanvasChartDisplay | ( | int | type, |
| int | family | ||
| ) |
Definition at line 14464 of file chcanv.cpp.
| void ChartCanvas::SelectChartFromStack | ( | int | index, |
| bool | bDir = false, |
||
| ChartTypeEnum | New_Type = CHART_TYPE_DONTCARE, |
||
| ChartFamilyEnum | New_Family = CHART_FAMILY_DONTCARE |
||
| ) |
Definition at line 14364 of file chcanv.cpp.
| void ChartCanvas::SelectdbChart | ( | int | dbindex | ) |
Definition at line 14421 of file chcanv.cpp.
| void ChartCanvas::SelectQuiltRefChart | ( | int | selected_index | ) |
Definition at line 1988 of file chcanv.cpp.
| void ChartCanvas::SelectQuiltRefdbChart | ( | int | db_index, |
| bool | b_autoscale = true |
||
| ) |
Definition at line 1971 of file chcanv.cpp.
| void ChartCanvas::SetAbsoluteMinScale | ( | double | min_scale | ) |
Definition at line 4881 of file chcanv.cpp.
| void ChartCanvas::SetAISCanvasDisplayStyle | ( | int | StyleIndx | ) |
Definition at line 14282 of file chcanv.cpp.
| void ChartCanvas::SetAttenAIS | ( | bool | show | ) |
Definition at line 14276 of file chcanv.cpp.
| void ChartCanvas::SetbFollow | ( | void | ) |
Definition at line 4941 of file chcanv.cpp.
| void ChartCanvas::SetCanvasCursor | ( | wxMouseEvent & | event | ) |
Definition at line 10608 of file chcanv.cpp.
|
overridevirtual |
Implements AbstractChartCanvas.
Definition at line 2235 of file chcanv.cpp.
| void ChartCanvas::SetColorScheme | ( | ColorScheme | cs | ) |
Definition at line 3772 of file chcanv.cpp.
|
override |
Definition at line 12777 of file chcanv.cpp.
| void ChartCanvas::SetCursorStatus | ( | double | cursor_lat, |
| double | cursor_lon | ||
| ) |
Definition at line 4408 of file chcanv.cpp.
| void ChartCanvas::SetDisplaySizeMM | ( | double | size | ) |
Set the width of the screen in millimeters.
Definition at line 2360 of file chcanv.cpp.
| void ChartCanvas::SetENCDisplayCategory | ( | int | category | ) |
Definition at line 15047 of file chcanv.cpp.
| void ChartCanvas::SetGroupIndex | ( | int | index, |
| bool | autoswitch = false |
||
| ) |
Definition at line 1320 of file chcanv.cpp.
| void ChartCanvas::SetMUIBarPosition | ( | ) |
Definition at line 7244 of file chcanv.cpp.
|
inline |
| void ChartCanvas::SetQuiltChartHiLiteIndex | ( | int | dbIndex | ) |
Definition at line 2557 of file chcanv.cpp.
| void ChartCanvas::SetQuiltChartHiLiteIndexArray | ( | std::vector< int > | hilite_array | ) |
Definition at line 2561 of file chcanv.cpp.
| void ChartCanvas::SetQuiltMode | ( | bool | b_quilt | ) |
Definition at line 2530 of file chcanv.cpp.
| void ChartCanvas::SetQuiltRefChart | ( | int | dbIndex | ) |
Definition at line 5294 of file chcanv.cpp.
| void ChartCanvas::SetShowAIS | ( | bool | show | ) |
Definition at line 14270 of file chcanv.cpp.
| void ChartCanvas::SetShowENCAnchor | ( | bool | show | ) |
Definition at line 15081 of file chcanv.cpp.
| void ChartCanvas::SetShowENCBuoyLabels | ( | bool | show | ) |
Definition at line 15068 of file chcanv.cpp.
| void ChartCanvas::SetShowENCDataQual | ( | bool | show | ) |
Definition at line 15031 of file chcanv.cpp.
| void ChartCanvas::SetShowENCDepth | ( | bool | show | ) |
Definition at line 15052 of file chcanv.cpp.
| void ChartCanvas::SetShowENCLightDesc | ( | bool | show | ) |
Definition at line 15060 of file chcanv.cpp.
| void ChartCanvas::SetShowENCLights | ( | bool | show | ) |
Definition at line 15073 of file chcanv.cpp.
| void ChartCanvas::SetShowENCText | ( | bool | show | ) |
Definition at line 15039 of file chcanv.cpp.
| void ChartCanvas::SetShowGPS | ( | bool | show | ) |
Definition at line 1224 of file chcanv.cpp.
| void ChartCanvas::SetShowGPSCompassWindow | ( | bool | bshow | ) |
Definition at line 1234 of file chcanv.cpp.
| void ChartCanvas::SetupCanvasQuiltMode | ( | void | ) |
Definition at line 2041 of file chcanv.cpp.
| void ChartCanvas::SetupGlCanvas | ( | ) |
Definition at line 853 of file chcanv.cpp.
|
overridevirtual |
Implements AbstractChartCanvas.
Definition at line 6265 of file chcanv.cpp.
| void ChartCanvas::SetupGridFont | ( | ) |
Definition at line 761 of file chcanv.cpp.
| void ChartCanvas::SetUpMode | ( | int | mode | ) |
Definition at line 3424 of file chcanv.cpp.
| bool ChartCanvas::SetUserOwnship | ( | ) |
Definition at line 2244 of file chcanv.cpp.
| bool ChartCanvas::SetViewPoint | ( | double | lat, |
| double | lon | ||
| ) |
Centers the view on a specific lat/lon position.
| lat | Latitude in degrees |
| lon | Longitude in degrees |
Definition at line 5433 of file chcanv.cpp.
| bool ChartCanvas::SetViewPoint | ( | double | lat, |
| double | lon, | ||
| double | scale_ppm, | ||
| double | skew, | ||
| double | rotation, | ||
| int | projection = 0, |
||
| bool | b_adjust = true, |
||
| bool | b_refresh = true |
||
| ) |
Set the viewport center point, scale, skew, rotation and projection.
| lat | Latitude of viewport center in degrees. |
| lon | Longitude of viewport center in degrees. |
| scale_ppm | Requested viewport scale in physical pixels per meter. This is the desired rendering scale before projection effects. |
| skew | Chart skew angle in radians. |
| rotation | Viewport rotation in radians. |
| projection | Projection type (default=0). If 0, maintains current projection. |
| b_adjust | Allow small viewport adjustments for performance. |
| b_refresh | Request screen refresh after change. |
Definition at line 5442 of file chcanv.cpp.
| bool ChartCanvas::SetViewPointByCorners | ( | double | latSW, |
| double | lonSW, | ||
| double | latNE, | ||
| double | lonNE | ||
| ) |
Definition at line 5396 of file chcanv.cpp.
| void ChartCanvas::SetVP | ( | ViewPort & | vp | ) |
Definition at line 2640 of file chcanv.cpp.
| bool ChartCanvas::SetVPProjection | ( | int | projection | ) |
Definition at line 5419 of file chcanv.cpp.
| bool ChartCanvas::SetVPRotation | ( | double | angle | ) |
Definition at line 5438 of file chcanv.cpp.
| bool ChartCanvas::SetVPScale | ( | double | sc, |
| bool | b_refresh = true |
||
| ) |
Sets the viewport scale while maintaining the center point.
Changes the chart display scale while preserving the current view center, orientation, skew, and projection settings. This is typically used for zoom operations.
| scale | The new viewport scale to set (pixels per meter) |
| refresh | Whether to refresh the display after changing the scale |
Definition at line 5414 of file chcanv.cpp.
|
inlineoverridevirtual |
Implements AbstractChartCanvas.
| void ChartCanvas::ShowAISTargetList | ( | void | ) |
Definition at line 11411 of file chcanv.cpp.
| void ChartCanvas::ShowChartInfoWindow | ( | int | x, |
| int | dbIndex | ||
| ) |
Definition at line 7365 of file chcanv.cpp.
| void ChartCanvas::ShowCompositeInfoWindow | ( | int | x, |
| int | n_charts, | ||
| int | scale, | ||
| const std::vector< int > & | index_vector | ||
| ) |
Definition at line 7280 of file chcanv.cpp.
| void ChartCanvas::ShowCurrents | ( | bool | bShow | ) |
Definition at line 1288 of file chcanv.cpp.
| void ChartCanvas::ShowGlobalToolbar | ( | ) |
Definition at line 11405 of file chcanv.cpp.
| void ChartCanvas::ShowMarkPropertiesDialog | ( | RoutePoint * | markPoint | ) |
Definition at line 10922 of file chcanv.cpp.
| void ChartCanvas::ShowObjectQueryWindow | ( | int | x, |
| int | y, | ||
| float | zlat, | ||
| float | zlon | ||
| ) |
Definition at line 10641 of file chcanv.cpp.
| void ChartCanvas::ShowRoutePropertiesDialog | ( | wxString | title, |
| Route * | selected | ||
| ) |
Definition at line 10980 of file chcanv.cpp.
| void ChartCanvas::ShowSingleTideDialog | ( | int | x, |
| int | y, | ||
| void * | pvIDX | ||
| ) |
Display tide/current dialog with single-instance management.
Handles the following scenarios:
| x | Mouse click x-coordinate in canvas pixels |
| y | Mouse click y-coordinate in canvas pixels |
| pvIDX | Pointer to IDX_entry for the tide/current station |
Definition at line 13924 of file chcanv.cpp.
| void ChartCanvas::ShowTides | ( | bool | bShow | ) |
Definition at line 1263 of file chcanv.cpp.
| void ChartCanvas::ShowTrackPropertiesDialog | ( | Track * | selected | ) |
Definition at line 11024 of file chcanv.cpp.
| void ChartCanvas::StartChartDragInertia | ( | ) |
Definition at line 3472 of file chcanv.cpp.
| void ChartCanvas::StartMeasureRoute | ( | ) |
Definition at line 2606 of file chcanv.cpp.
| void ChartCanvas::StartRoute | ( | void | ) |
Definition at line 11323 of file chcanv.cpp.
| bool ChartCanvas::StartTimedMovement | ( | bool | stoptimer = true | ) |
Definition at line 3593 of file chcanv.cpp.
| void ChartCanvas::StartTimedMovementTarget | ( | ) |
Definition at line 3663 of file chcanv.cpp.
| void ChartCanvas::StartTimedMovementVP | ( | double | target_lat, |
| double | target_lon, | ||
| int | nstep | ||
| ) |
Definition at line 3610 of file chcanv.cpp.
| void ChartCanvas::StopMovement | ( | ) |
Definition at line 3575 of file chcanv.cpp.
| void ChartCanvas::StopMovementTarget | ( | ) |
Definition at line 3667 of file chcanv.cpp.
| void ChartCanvas::StopMovementVP | ( | ) |
Definition at line 3659 of file chcanv.cpp.
| void ChartCanvas::TogglebFollow | ( | void | ) |
Definition at line 4922 of file chcanv.cpp.
| void ChartCanvas::ToggleCanvasQuiltMode | ( | void | ) |
Definition at line 14093 of file chcanv.cpp.
| void ChartCanvas::ToggleChartOutlines | ( | void | ) |
Definition at line 3407 of file chcanv.cpp.
| void ChartCanvas::ToggleCPAWarn | ( | ) |
Definition at line 7108 of file chcanv.cpp.
| void ChartCanvas::ToggleLookahead | ( | ) |
Definition at line 3418 of file chcanv.cpp.
| void ChartCanvas::TouchAISToolActive | ( | void | ) |
Definition at line 14322 of file chcanv.cpp.
|
overridevirtual |
Implements AbstractChartCanvas.
Definition at line 2651 of file chcanv.cpp.
| void ChartCanvas::UnlockQuilt | ( | ) |
Definition at line 2523 of file chcanv.cpp.
|
override |
Definition at line 12839 of file chcanv.cpp.
| void ChartCanvas::UpdateAIS | ( | ) |
Definition at line 7046 of file chcanv.cpp.
| void ChartCanvas::UpdateAISTBTool | ( | void | ) |
Definition at line 14324 of file chcanv.cpp.
| void ChartCanvas::UpdateAlerts | ( | ) |
Definition at line 6996 of file chcanv.cpp.
| void ChartCanvas::UpdateCanvasControlBar | ( | void | ) |
Definition at line 14764 of file chcanv.cpp.
| void ChartCanvas::UpdateCanvasOnGroupChange | ( | void | ) |
Definition at line 5383 of file chcanv.cpp.
| void ChartCanvas::UpdateCanvasS52PLIBConfig | ( | ) |
Definition at line 11913 of file chcanv.cpp.
| void ChartCanvas::UpdateFollowButtonState | ( | void | ) |
Definition at line 4973 of file chcanv.cpp.
| void ChartCanvas::UpdateGPSCompassStatusBox | ( | bool | b_force_new | ) |
Definition at line 14332 of file chcanv.cpp.
| void ChartCanvas::UpdateShips | ( | ) |
Definition at line 6946 of file chcanv.cpp.
| void ChartCanvas::WarpPointerDeferred | ( | int | x, |
| int | y | ||
| ) |
Definition at line 11905 of file chcanv.cpp.
| void ChartCanvas::ZoomCanvas | ( | double | factor, |
| bool | can_zoom_to_cursor = true, |
||
| bool | stoptimer = true |
||
| ) |
Perform a smooth zoom operation on the chart canvas by the specified factor.
The zoom can either be centered on the cursor position or the center of the viewport.
| factor | The zoom factor to apply:
|
| can_zoom_to_cursor | If true, zoom operation will be centered on current cursor position. If false, zoom operation centers on current viewport center. |
| stoptimer | If true, stops any ongoing movement/zoom operations before starting this zoom. If false, allows this zoom to blend with existing operations. |
Definition at line 4691 of file chcanv.cpp.
| void ChartCanvas::ZoomCanvasSimple | ( | double | factor | ) |
Perform an immediate zoom operation without smooth transitions.
This is a simplified version of ZoomCanvas that applies the zoom immediately without animation or cursor-centering logic. Typically used for programmatic zooming.
| factor | The zoom factor to apply:
|
Definition at line 4685 of file chcanv.cpp.
|
friend |
| obs::EventVar ChartCanvas::json_msg |
Notified with message targeting all plugins.
Contains a message type string and a wxJSONValue shared_ptr.
| CanvasMenuHandler* ChartCanvas::m_canvasMenu |
| double ChartCanvas::m_cursor_lat |
The latitude in degrees corresponding to the most recently processed cursor position.
This variable does NOT continuously track the mouse cursor position. It is updated only:
For code that needs the current geographic coordinates under the current mouse pointer, use GetCanvasPixPoint(mouse_x, mouse_y, lat, lon) instead of accessing this variable directly.
| double ChartCanvas::m_cursor_lon |
The longitude in degrees corresponding to the most recently processed cursor position.
This variable does NOT continuously track the mouse cursor position. It is updated only:
For code that needs the current geographic coordinates under the current mouse pointer, use GetCanvasPixPoint(mouse_x, mouse_y, lat, lon) instead of accessing this variable directly.
| RoutePoint* ChartCanvas::m_prev_pMousePoint |