#include <gre/view.h>

Public Types | |
| enum | COLORUSE { COLORUSE_Background, COLORUSE_HighlightElem, COLORUSE_ActiveElem, COLORUSE_DataTipElem, COLORUSE_COUNT } |
| enum | CREATEFLAGS { CREATEFLAG_None = 0x00000000, CREATEFLAG_3D = 0x00000001, CREATEFLAG_NoCallCreateCB = 0x00000002, CREATEFLAG_NoRenderSeparate = 0x00000004, CREATEFLAG_Hardcopy = 0x00000008, CREATEFLAG_DisableDraw = 0x00000010, CREATEFLAG_Locator = 0x00000020 } |
| enum | DATATIPSELECTION { DATATIPSELECTION_FromView = 0, DATATIPSELECTION_None = 1, DATATIPSELECTION_ActiveLayer = 2, DATATIPSELECTION_AllLayers = 3, DATATIPSELECTION_AllVisible = 4, DATATIPSELECTION_AutoScale = 5, DATATIPSELECTION_ObjectNames = 6, DATATIPSELECTION_ReverseGeocode = 7 } |
| typedef fastdelegate::FastDelegate < void(VIEW *) | DELEGATE_POINTERENTERLEAVE ) |
| typedef fastdelegate::FastDelegate < void(VIEW *, const DPOINT2D &) | DELEGATE_POINTERMOVE ) |
Public Member Functions | |
| VIEW () | |
| virtual | ~VIEW () |
| void | AddDelegateOnPointerEnter (DELEGATE_POINTERENTERLEAVE delegate) |
| void | AddDelegateOnPointerLeave (DELEGATE_POINTERENTERLEAVE delegate) |
| void | AddDelegateOnPointerMove (DELEGATE_POINTERMOVE delegate) |
| void | AttachGroupView (GRE::GROUPVIEW *groupview) |
| void | AttachLayerView (GRE::LAYERVIEW *layerview) |
| void | CancelDrawing (ERRVALUE err=EUserCancel) |
| void | ClearMessage () |
| bool | ContainsLayer (const GRE::LAYER *layer) const |
| double | ConvertScreenUnits (GRE::LAYER *layer, double value, int iunits, int ounits) |
| ERRVALUE | Create (VIEWABLE *viewable, int iwidth, int iheight, CREATEFLAGS createflags=CREATEFLAG_None) |
| DATATIPSELECTION | DataTipGetSelection () const |
| ERRVALUE | DataTipGetString (const DPOINT2D &point, MISTRING &string, SPATMOD::IMAGE::STAGE_ARRAY &images, FINDFLAGS findflags, int maxlines=0, DATATIPSELECTION selection=DATATIPSELECTION_FromView, bool bForceHTML=false, MGUI::CTRL_TOOLTIP *tooltip=0) |
| void | DataTipSetDelay (INT32 delay) |
| void | DataTipSetPixelDelta (int PixelDelta) |
| void | DataTipSetSelection (DATATIPSELECTION selection) |
| void | DestroyGroupView (GRE::GROUP *group) |
| void | DestroyLayerView (GRE::LAYER *layer) |
| void | Detach () |
| void | DetachGroupView (GRE::GROUPVIEW *groupview) |
| void | DetachLayerView (GRE::LAYERVIEW *layerview) |
| void | DisableRedraw () |
| ERRVALUE | Draw () |
| ERRVALUE | DrawGroup (GRE::GROUP *group, GRE::DRAWFLAGS drawflags=GRE::DRAWFLAG_None) |
| ERRVALUE | DrawIfAutoUpdate () |
| int | DrawIfNeeded () |
| ERRVALUE | DrawLayer (GRE::LAYER *layer, GRE::DRAWFLAGS drawflags=GRE::DRAWFLAG_None) |
| ERRVALUE | DrawLayerElement (GRE::LAYER *layer, ELEMTYPE ElemType, ELEMNUM ElemNum, GRE::RENDERTARGET Target, GRE::DRAWFLAGS drawflags=GRE::DRAWFLAG_None) |
| ERRVALUE | DrawLayerElements (GRE::LAYER *layer, ELEMTYPE ElemType, const UNSIGNEDSET *pElemSet, GRE::RENDERTARGET Target, GRE::DRAWFLAGS drawflags=GRE::DRAWFLAG_None) |
| ERRVALUE | DrawLayerHighlighted (GRE::LAYER *layer, GRE::DRAWFLAGS drawflags=GRE::DRAWFLAG_None) |
| ERRVALUE | DrawLayerOverlay (GRE::LAYER *layer, GRE::DRAWFLAGS drawflags=GRE::DRAWFLAG_None) |
| void | DrawMargins (MGD::CONTEXT *gc, const TRANS2D_AFFINE *pTransViewDevice=0) |
| ERRVALUE | DrawThisOnly (GRE::DRAWFLAGS drawflags=GRE::DRAWFLAG_None) |
| int | EditColors () |
| void | EnableRedraw () |
| ELEMNUM | FindClosestLayerElement (GRE::LAYER *layer, int component, const DPOINT2D &point, double *distret, GRE::FINDFLAGS findflags) |
| GRE::GROUP * | FindPointGroup (const DPOINT2D &point, GRE::FINDFLAGS findflags, const SPATREF::COORDREFSYS *pPointCRS=NULL) const |
| bool | GetAutoRedrawSolid () const |
| const char * | GetBackgroundColorIniName () const |
| const LRECT2D & | GetCanvasClipRect () const |
| void | GetCanvasExtentsUsed (LRECT2D &extents, bool UseNext=false) const |
| bool | GetClipRegion (GRE::GROUP *group, REGION2D &ClipRegion) |
| const COLOR & | GetColor (COLORUSE coloruse) const |
| MDLGPARENT | GetDlgParent () const |
| UINT32 | GetDrawingAreaHeight () const |
| UINT32 | GetDrawingAreaWidth () const |
| MGD::DEVICE * | GetDrawingDevice (bool UseStereo=false) const |
| MGD::DEVICE * | GetDrawingDeviceMemory (bool UseStereo=false) const |
| MGD::DEVICE * | GetDrawingDeviceScreen () const |
| bool | GetDrawStereo () const |
| bool | GetDrawWireframe3D () const |
| const DRECT2D & | GetFullExtents () const |
| const GEOLOCKSETTINGS & | GetGeoLock () const |
| GRE::GROUP * | GetGeorefGroup () const |
| GRE::GROUP * | GetGroup () const |
| GRE::GROUPVIEW * | GetGroupView (const GRE::GROUP *group) const |
| const VIEWPOS & | GetLastPosn () const |
| GRE::LAYERVIEW * | GetLayerView (const GRE::LAYER *layer) const |
| GRE::LAYOUT * | GetLayout () const |
| double | GetMargin () const |
| const MISTRING & | GetMessage () const |
| void | GetName (MISTRING &name) const |
| bool | GetNeedNotifyDrawElement () const |
| bool | GetNeedsRedraw () const |
| VIEW * | GetNext () const |
| VIEW * | GetNextOfAll () const |
| const VIEWPOS & | GetNextPosn () const |
| INT16 | GetPadPixels () const |
| void | GetPixelSizeMM (DPOINT2D &pixelsize) const |
| double | GetPixelSizeMM () const |
| GRE_PROJACCUR | GetProjAccur () const |
| bool | GetRedrawOnAnyChange () |
| double | GetScale () const |
| ERRVALUE | GetScale (double *xscale, double *yscale) |
| ERRVALUE | GetSizeMeters (DPOINT2D &size) const |
| MISTATUSMANAGER * | GetStatusManager () const |
| const STEREODEVICE & | GetStereoDevice () const |
| const STEREORENDER & | GetStereoRender () const |
| bool | GetStopDrawOnError () const |
| double | GetTimeLastRefresh () const |
| void | GetTransDispToGroup (const GRE::GROUP *group, TRANS2D_AFFINE &DispToGroup) const |
| int | GetTransLayerDisp (const GRE::LAYER *layer, TRANS2D_MAPGEN &trans) const |
| ERRVALUE | GetTransLayerView (const GRE::LAYER *layer, TRANS2D_MAPGEN &trans) const |
| const TRANS2D_AFFINE & | GetTransToDisp () const |
| ERRVALUE | GetTransToMap (TRANS2D_MAPGEN &trans, bool dooutput, const GRE::GROUP *group=0) const |
| VIEWABLE * | GetViewable () const |
| OBJECT::TYPE | GetViewableType () const |
| VIEWFLAGS | GetViewFlags () const |
| int | GetViewNum () const |
| VIEWPOINT3D * | GetViewPoint3D () const |
| void | GetVisibleExtents (DRECT2D &extents, bool UseNext=false) const |
| bool | GetWireframeMode () const |
| const double & | GetZoom () const |
| const ZVIEW * | GetZView () const |
| bool | Has3D () const |
| bool | HasObjects () const |
| bool | HighlightElementsByPoint (const DPOINT2D &pt, bool PointInDisplayCoords, GRE::HIGHLIGHTMODE HighlightMode=GRE::HIGHLIGHTMODE_NotSet, bool ShowDftTables=false) |
| void | InvalidateAllLayers () |
| bool | Is3D () const |
| bool | IsAllowedDiffZoom () const |
| bool | IsBeingDrawn () const |
| bool | IsBeingRestored () const |
| bool | IsGeoLocked () const |
| bool | IsGoogleLocked () const |
| bool | IsGroupVisible (const GRE::GROUP *group) const |
| bool | IsInteractive () const |
| bool | IsLayerVisible (const GRE::LAYER *layer) const |
| bool | IsLegacy () const |
| bool | IsLocator () const |
| bool | IsRedrawDisabled () const |
| void | NotifyChangeViewPoint3D (bool redraw=true, bool IsDragging=false) |
| void | NotifyDrawElementBegin (GRE::LAYER *layer, const RVC::ELEMENT &element) |
| void | NotifyDrawElementEnd (GRE::LAYER *layer, const RVC::ELEMENT &element) |
| void | NotifyExposure (const LRECT2D &rect) |
| void | NotifyLayerRendered (GRE::LAYER *layer) |
| void | NotifyPointerEnter () |
| void | NotifyPointerLeave () |
| void | NotifyPointerMove (const DPOINT2D &point) |
| RENDERBUFFER * | OverlayCreate (bool AddToFront=false) |
| void | OverlayDestroy (RENDERBUFFER *&pRenderBuffer) |
| ERRVALUE | PanToLayerElement (GRE::LAYER *layer, ELEMTYPE ElemType, ELEMNUM ElemNum, GRE::DRAWFLAGS drawflags=GRE::DRAWFLAG_None) |
| void | RemoveDelegateOnPointerEnter (DELEGATE_POINTERENTERLEAVE delegate) |
| void | RemoveDelegateOnPointerLeave (DELEGATE_POINTERENTERLEAVE delegate) |
| void | RemoveDelegateOnPointerMove (DELEGATE_POINTERMOVE delegate) |
| void | ResetCancel () |
| void | RestoreFromBuffers (bool RenderIfNeeded=true) |
| void | RestoreFromMemory (const LRECT2D *rect=0, bool UseScreenBuffer=false) |
| ERRVALUE | SaveSnapshotQuick () |
| ERRVALUE | SaveSnapshotToRaster () |
| void | SetAutoRedrawSolid (bool AutoRedrawSolid) |
| void | SetBeingRestored (bool BeingRestored) |
| int | SetCenter (const DPOINT2D &pt, bool redraw=true) |
| void | SetCenterByLayer (GRE::LAYER *layer, const DPOINT2D &pt, bool redraw=true) |
| void | SetClipNone () |
| void | SetClipRect (const LRECT2D &cliprect) |
| void | SetColor (COLORUSE coloruse, const COLOR &color) |
| void | SetDrawingAreaSize (INT32 width, INT32 height) |
| void | SetDrawingDevice (MGD::DEVICE *gdisp) |
| void | SetDrawStereo (bool DrawStereo) |
| void | SetDrawWireframe3D (bool DrawWireframe) |
| void | SetGeoLock (const GEOLOCKSETTINGS &GeoLockSettings) |
| void | SetGeoLocked (bool GeoLocked=true, bool AutoScale=true) |
| void | SetGoogleLocked (bool Locked) |
| void | SetMargin (double MarginMeters) |
| void | SetNeedNotifyDrawElement (bool NeedNotify=true) |
| void | SetNeedsRedraw () |
| void | SetNextPlace (const VIEWPLACE &NextPlace, bool redraw=true) |
| void | SetNextPosn (const VIEWPOS &NextPosn, bool redraw=true) |
| void | SetPadPixels (int pp) |
| void | SetProjAccur (GRE_PROJACCUR ProjAccur) |
| void | SetRedrawOnAnyChange (bool RedrawOnAnyChange, bool redraw=true) |
| ERRVALUE | SetScale (double NewMapScale, bool redraw=true) |
| ERRVALUE | SetScaleMaxDetail (bool redraw=true) |
| ERRVALUE | SetScaleMaxDetail (GRE::LAYER *ScaleRefLayer, bool redraw=true) |
| void | SetStatusManager (MISTATUSMANAGER *pStatusMgr) |
| void | SetStereoDevice (const STEREODEVICE &StereoDevice) |
| void | SetStereoRender (const STEREORENDER &StereoRender) |
| void | SetStopDrawOnError (bool StopDrawOnError=true) |
| void | SetViewFlags (VIEWFLAGS viewflags, bool redraw=false) |
| bool | SetViewFromGeoLock (const VIEW *refview=0) |
| void | SetViewNum (int ViewNum) |
| void | SetWireframeMode (bool mode, bool redraw=true) |
| int | SetZoom (const DPOINT2D &zoom, bool redraw=true) |
| int | SetZoom (double zoom, bool redraw=true) |
| int | SetZoomFull (bool redraw=true) |
| int | TestCancel () |
| ERRVALUE | TransDispToGroup (GRE::GROUP *group, const DPOINT2D *ipoints, DPOINT2D *opoints, int numpoints) const |
| ERRVALUE | TransDispToLayer (GRE::LAYER *layer, const DPOINT2D *ipoints, DPOINT2D *opoints, int numpoints) |
| void | TransDispToView (const DPOINT2D *ipoints, DPOINT2D *opoints, int numpoints) const |
| ERRVALUE | TransGroupToDisp (GRE::GROUP *group, const DPOINT2D *ipoints, DPOINT2D *opoints, int numpoints) const |
| ERRVALUE | TransGroupToView (GRE::GROUP *group, const DPOINT2D *ipoints, DPOINT2D *opoints, int numpoints) const |
| ERRVALUE | TransLayerToDisp (GRE::LAYER *layer, const DPOINT2D *ipoints, DPOINT2D *opoints, int numpoints) |
| ERRVALUE | TransLayerToView (GRE::LAYER *layer, const DPOINT2D *ipoints, DPOINT2D *opoints, int numpoints) |
| void | TransViewToDisp (const DPOINT2D *ipoints, DPOINT2D *opoints, int numpoints) const |
| ERRVALUE | TransViewToGroup (GRE::GROUP *group, const DPOINT2D *ipoints, DPOINT2D *opoints, int numpoints) const |
| ERRVALUE | TransViewToLayer (GRE::LAYER *layer, const DPOINT2D *ipoints, DPOINT2D *opoints, int numpoints) |
| GRE::CTRL_TREEVIEW * | TreeViewGetPtr () const |
| void | TreeViewSetPtr (GRE::CTRL_TREEVIEW *pTreeView) |
| ERRVALUE | UpdateExtents () |
| void | UpdateLastPosn () |
| void | UpdateMessage (const MISTRING &string) |
| int | UpdatePosition () |
| void | UpdateScriptUI () |
| void | UpdateTypeName () |
| void | UpdateUI () |
| bool | UseSeparateRenderDevices () |
| int | ZoomToGroup (GRE::GROUP *group, bool redraw=true) |
| int | ZoomToGroupRect (GRE::GROUP *group, const DRECT2D &rect, bool redraw=true) |
| int | ZoomToLayer (GRE::LAYER *layer, bool redraw=true) |
| int | ZoomToLayerRect (GRE::LAYER *layer, const DRECT2D &rect, bool redraw=true) |
| ERRVALUE | ZoomToViewableRect (const DRECT2D &rect, bool redraw=true) |
Static Public Member Functions | |
| static void | CursorTrackRestoreAll () |
| static void | CursorTrackSetPosAll (const DPOINT2D &pt, const SPATREF::COORDREFSYS &crs, const GRE::VIEW *viewskip=0) |
| static bool | DlgEditGlobalSettings (MDLGPARENT dlgparent) |
| static VIEW * | FindNextOfGroup (const GRE::GROUP *group, VIEW *view=0) |
| static VIEW * | FindNextOfLayer (const GRE::LAYER *layer, VIEW *view=0) |
| static void | GetDftColor (COLORUSE coloruse, COLOR &color) |
| static const VIEWCOMMON & | GetGlobalOptions () |
| static const STEREODEVICE & | GetStereoDeviceShared2D () |
| static const STEREODEVICE & | GetStereoDeviceShared3D () |
| static bool | GetUpdateAfterDrawLayer () |
| static bool | GetZoomPanWaitForRMB () |
| static void | SetGlobalOptions (const VIEWCOMMON &options) |
| static void | SetStereoDeviceShared2D (const STEREODEVICE &StereoDevice) |
| static void | SetStereoDeviceShared3D (const STEREODEVICE &StereoDevice) |
| static void | SetTrackCursor (bool TrackCursor) |
| static void | SetUpdateAfterDrawLayer (bool UpdateAfterDrawLayer) |
| static void | SML_ClassInstall (SML::CONTEXT *context) |
Protected Types | |
| typedef void | DRAWSTATE |
Protected Member Functions | |
| void | ClearNeedsRedraw () |
| void | DrawBackground () |
| DRAWSTATE * | DrawBegin (GRE::DRAWFLAGS drawflags) |
| void | DrawEnd (GRE::DRAWFLAGS drawflags, DRAWSTATE *state) |
| ERRVALUE | DrawViewable (GRE::DRAWFLAGS drawflags=GRE::DRAWFLAG_None) |
| int | GetViewNumRaw () const |
| void | OverlayUpdatedLayers () |
| void | SetInteractive () |
| void | SetViewPosns (const VIEWPOS &ViewPos) |
Private Member Functions | |
| virtual void | v_CreateFinish () |
| virtual void | v_DataTipSetDelay (INT32 delay) |
| virtual void | v_DataTipSetPixelDelta (int PixelDelta) |
| virtual ERRVALUE | v_Draw () |
| virtual ERRVALUE | v_DrawThisOnly (GRE::DRAWFLAGS drawflags) |
| virtual MDLGPARENT | v_GetDlgParent () const |
| virtual MGD::DEVICE * | v_GetDrawingDeviceMemory (bool UseStereo) const |
| virtual MGD::DEVICE * | v_GetDrawingDeviceScreen () const |
| virtual int | v_GetViewNum () const |
| virtual void | v_OnDrawElementBegin (GRE::LAYER *layer, const RVC::ELEMENT &element) |
| virtual void | v_OnDrawElementEnd (GRE::LAYER *layer, const RVC::ELEMENT &element) |
| virtual void | v_OnDrawGroupBegin (GRE::GROUP *group) |
| virtual void | v_OnDrawGroupEnd (GRE::GROUP *group) |
| virtual void | v_OnDrawLayerBegin (GRE::LAYER *layer) |
| virtual void | v_OnDrawLayerEnd (GRE::LAYER *layer) |
| virtual void | v_OnDrawViewableBegin () |
| virtual void | v_OnDrawViewableEnd () |
| virtual void | v_OnJobsAllDone () |
| virtual void | v_OnJobStarted () |
| virtual void | v_OnLayerRendered (GRE::LAYER *layer) |
| virtual void | v_RestoreFromMemory (const LRECT2D *rect, bool UseScreenBuffer=false) |
| virtual ERRVALUE | v_TestCancel () |
| virtual void | v_UpdateMessage (const MISTRING &string) |
| virtual void | v_UpdateScriptUI () |
| virtual void | v_UpdateUI () |
| typedef fastdelegate::FastDelegate<void(VIEW*) GRE::VIEW::DELEGATE_POINTERENTERLEAVE) |
Delegate type for pointer enter/leave notification.
| typedef fastdelegate::FastDelegate<void(VIEW*, const DPOINT2D&) GRE::VIEW::DELEGATE_POINTERMOVE) |
Delegate type for pointer movement notification.
typedef void GRE::VIEW::DRAWSTATE [protected] |
| enum GRE::VIEW::COLORUSE |
Flags for view creation.
Reimplemented in GRE::VIEW_LEGACY.
| GRE::VIEW::VIEW | ( | ) |
Default constructor.
Performs initialization only, must use one of the Create methods to actually create a usable VIEW.
| virtual GRE::VIEW::~VIEW | ( | ) | [virtual] |
Destructor.
| void GRE::VIEW::AddDelegateOnPointerEnter | ( | DELEGATE_POINTERENTERLEAVE | delegate | ) |
Add delegate to call when pointer enters view.
| delegate | Delegate to call |
| void GRE::VIEW::AddDelegateOnPointerLeave | ( | DELEGATE_POINTERENTERLEAVE | delegate | ) |
Add delegate to call when pointer leaves view.
| delegate | Delegate to call |
| void GRE::VIEW::AddDelegateOnPointerMove | ( | DELEGATE_POINTERMOVE | delegate | ) |
Add delegate to call when pointer moves within view.
Delegate will be passed point in "device canvas" coordinates.
| delegate | Delegate to call |
| void GRE::VIEW::AttachGroupView | ( | GRE::GROUPVIEW * | groupview | ) |
Attach GROUPVIEW instance.
| void GRE::VIEW::AttachLayerView | ( | GRE::LAYERVIEW * | layerview | ) |
Attach LAYERVIEW instance.
| void GRE::VIEW::CancelDrawing | ( | ERRVALUE | err = EUserCancel |
) |
Cancel drawing of this view, usually done within callback.
Will cancel all background jobs for view also.
| err | Error value to set. |
| void GRE::VIEW::ClearMessage | ( | ) |
Clear view's message line.
| void GRE::VIEW::ClearNeedsRedraw | ( | ) | [inline, protected] |
| bool GRE::VIEW::ContainsLayer | ( | const GRE::LAYER * | layer | ) | const |
Determine if view contains specified layer.
| layer | Layer to check |
| double GRE::VIEW::ConvertScreenUnits | ( | GRE::LAYER * | layer, | |
| double | value, | |||
| int | iunits, | |||
| int | ounits | |||
| ) |
Convert between "screen units" using specified layer for scale.
| layer | Layer to use for scale | |
| value | Value to convert | |
| iunits | Input units (SCREENUNIT_...) | |
| ounits | Output units (SCREENUNIT_...) |
| ERRVALUE GRE::VIEW::Create | ( | VIEWABLE * | viewable, | |
| int | iwidth, | |||
| int | iheight, | |||
| CREATEFLAGS | createflags = CREATEFLAG_None | |||
| ) |
Create view.
| static void GRE::VIEW::CursorTrackRestoreAll | ( | ) | [static] |
Restore tracking cursor area on all views (X only).
| static void GRE::VIEW::CursorTrackSetPosAll | ( | const DPOINT2D & | pt, | |
| const SPATREF::COORDREFSYS & | crs, | |||
| const GRE::VIEW * | viewskip = 0 | |||
| ) | [static] |
Set tracking cursor position on all views (X only).
| viewskip | View to skip if instigator |
| DATATIPSELECTION GRE::VIEW::DataTipGetSelection | ( | ) | const [inline] |
Get DataTip selection mode.
| ERRVALUE GRE::VIEW::DataTipGetString | ( | const DPOINT2D & | point, | |
| MISTRING & | string, | |||
| SPATMOD::IMAGE::STAGE_ARRAY & | images, | |||
| FINDFLAGS | findflags, | |||
| int | maxlines = 0, |
|||
| DATATIPSELECTION | selection = DATATIPSELECTION_FromView, |
|||
| bool | bForceHTML = false, |
|||
| MGUI::CTRL_TOOLTIP * | tooltip = 0 | |||
| ) |
Get DataTip string from specified point.
The images array will be filled in if there are any layers which produce image thumbnails for their data tips. The string will have {~IMG} tags controlling where the images get rendered. The MGUI::TOOLTIP class takes care of rendering the images If bForceHTML is true, the resuting text will be converted to an HTML fragment (no html, head or body tag) suitable for inserting into another HTML document. In this case, images will show up as img tags with the source set to 'inline:img#' (where # is the index into the images array)
| point | Point to obtain DataTip for | |
| string | String to fill in, will be cleared first | |
| images | Images returned for image datatips | |
| findflags | FINDFLAG_ViewCoords or FINDFLAG_DisplayCoords | |
| maxlines | Approximate maximum number of lines, 0 for no maximum | |
| bForceHTML | Force the output to be an HTML fragment | |
| tooltip | Tooltip to pass to Display Control Script, OnViewDataTipShowRequest() (will use temporary if not specified) |
| void GRE::VIEW::DataTipSetDelay | ( | INT32 | delay | ) | [inline] |
Set DataTip popup delay.
| delay | DataTip popup delay in milliseconds |
Reimplemented in GRE::VIEW_LEGACY.
| void GRE::VIEW::DataTipSetPixelDelta | ( | int | PixelDelta | ) | [inline] |
Set distance cursor must move to hide DataTip.
| PixelDelta | Movement distance in screen pixels |
Reimplemented in GRE::VIEW_LEGACY.
| void GRE::VIEW::DataTipSetSelection | ( | DATATIPSELECTION | selection | ) | [inline] |
Set DataTip selection mode.
Does not affect currently visible DataTip if any.
| selection | Selection mode to set |
| void GRE::VIEW::DestroyGroupView | ( | GRE::GROUP * | group | ) |
Destroy GROUPVIEW instance for specified group and this view.
| void GRE::VIEW::DestroyLayerView | ( | GRE::LAYER * | layer | ) |
Destroy LAYERVIEW instance for specified layer and this view.
| void GRE::VIEW::Detach | ( | ) | [inline] |
Detach view from viewable.
Intended for use in viewable destructor only, other use may cause crash.
| void GRE::VIEW::DetachGroupView | ( | GRE::GROUPVIEW * | groupview | ) |
Detach GROUPVIEW instance.
| void GRE::VIEW::DetachLayerView | ( | GRE::LAYERVIEW * | layerview | ) |
Detach LAYERVIEW instance.
| void GRE::VIEW::DisableRedraw | ( | ) | [inline] |
Disable redraw for this view.
| static bool GRE::VIEW::DlgEditGlobalSettings | ( | MDLGPARENT | dlgparent | ) | [static] |
Edit global settings via dialog.
| dlgparent | Parent for dialog |
| ERRVALUE GRE::VIEW::Draw | ( | ) |
Draw the view, may result in other views being redrawn also.
| void GRE::VIEW::DrawBackground | ( | ) | [protected] |
Draw background.
| DRAWSTATE* GRE::VIEW::DrawBegin | ( | GRE::DRAWFLAGS | drawflags | ) | [protected] |
Begin drawing - must call DrawEnd in all cases.
Sends notification via callbacks and virtual method.
| void GRE::VIEW::DrawEnd | ( | GRE::DRAWFLAGS | drawflags, | |
| DRAWSTATE * | state | |||
| ) | [protected] |
End drawing - must be called if DrawBegin used in all cases.
Sends notification via callbacks and virtual method.
| state | "State" pointer returned from DrawBegin |
| ERRVALUE GRE::VIEW::DrawGroup | ( | GRE::GROUP * | group, | |
| GRE::DRAWFLAGS | drawflags = GRE::DRAWFLAG_None | |||
| ) |
Draw specified group in view.
| group | Group, must be contained in view |
| ERRVALUE GRE::VIEW::DrawIfAutoUpdate | ( | ) | [inline] |
Draw view if auto-update is on.
| int GRE::VIEW::DrawIfNeeded | ( | ) |
Draw view if changed since last redraw.
| ERRVALUE GRE::VIEW::DrawLayer | ( | GRE::LAYER * | layer, | |
| GRE::DRAWFLAGS | drawflags = GRE::DRAWFLAG_None | |||
| ) |
Draw specified layer in view.
| layer | Layer to draw |
| ERRVALUE GRE::VIEW::DrawLayerElement | ( | GRE::LAYER * | layer, | |
| ELEMTYPE | ElemType, | |||
| ELEMNUM | ElemNum, | |||
| GRE::RENDERTARGET | Target, | |||
| GRE::DRAWFLAGS | drawflags = GRE::DRAWFLAG_None | |||
| ) |
Draw single element from specified layer.
| layer | Layer | |
| ElemType | Element type | |
| ElemNum | Element number | |
| Target | Target buffer(s) to render to |
| ERRVALUE GRE::VIEW::DrawLayerElements | ( | GRE::LAYER * | layer, | |
| ELEMTYPE | ElemType, | |||
| const UNSIGNEDSET * | pElemSet, | |||
| GRE::RENDERTARGET | Target, | |||
| GRE::DRAWFLAGS | drawflags = GRE::DRAWFLAG_None | |||
| ) |
Draw set of elements for specified layer.
| layer | Layer | |
| ElemType | Element type | |
| pElemSet | Set of elements to draw, NULL for all | |
| Target | Target buffer(s) to render to |
| ERRVALUE GRE::VIEW::DrawLayerHighlighted | ( | GRE::LAYER * | layer, | |
| GRE::DRAWFLAGS | drawflags = GRE::DRAWFLAG_None | |||
| ) |
Draw highlighed elements for specified layer in view.
| layer | Layer to draw |
| ERRVALUE GRE::VIEW::DrawLayerOverlay | ( | GRE::LAYER * | layer, | |
| GRE::DRAWFLAGS | drawflags = GRE::DRAWFLAG_None | |||
| ) |
Draw specified layer overlay in view.
| layer | Layer to draw |
| void GRE::VIEW::DrawMargins | ( | MGD::CONTEXT * | gc, | |
| const TRANS2D_AFFINE * | pTransViewDevice = 0 | |||
| ) |
Draw the margin lines.
This function does nothing if not in hardcopy mode.
| gc | Context to draw with |
| ERRVALUE GRE::VIEW::DrawThisOnly | ( | GRE::DRAWFLAGS | drawflags = GRE::DRAWFLAG_None |
) |
Draw view without refreshing other views.
| ERRVALUE GRE::VIEW::DrawViewable | ( | GRE::DRAWFLAGS | drawflags = GRE::DRAWFLAG_None |
) | [protected] |
| int GRE::VIEW::EditColors | ( | ) |
Edit background, highlight, active colors for view.
| void GRE::VIEW::EnableRedraw | ( | ) | [inline] |
Enable redraw of this view.
| ELEMNUM GRE::VIEW::FindClosestLayerElement | ( | GRE::LAYER * | layer, | |
| int | component, | |||
| const DPOINT2D & | point, | |||
| double * | distret, | |||
| GRE::FINDFLAGS | findflags | |||
| ) |
Find closest element to specified point in view.
| layer | Layer to search | |
| component | Layer component index (not the element type) | |
| point | Point to search around | |
| distret | Distance passed/returned, NULL if don't need | |
| findflags | Flags for searching |
| static VIEW* GRE::VIEW::FindNextOfGroup | ( | const GRE::GROUP * | group, | |
| VIEW * | view = 0 | |||
| ) | [static] |
Find next view containing specified group.
| group | Group to find view of | |
| view | View to start search after, 0 to check first view |
| static VIEW* GRE::VIEW::FindNextOfLayer | ( | const GRE::LAYER * | layer, | |
| VIEW * | view = 0 | |||
| ) | [static] |
Find next view containing specified layer.
| layer | Layer to find view of | |
| view | View to start search after, 0 to check first view |
| GRE::GROUP* GRE::VIEW::FindPointGroup | ( | const DPOINT2D & | point, | |
| GRE::FINDFLAGS | findflags, | |||
| const SPATREF::COORDREFSYS * | pPointCRS = NULL | |||
| ) | const |
Find closest group to specified point in view.
| point | Point to search | |
| findflags | Flags for searching | |
| pPointCRS | CoordRefSys for point if FINDFLAG_MapCoords specified |
| bool GRE::VIEW::GetAutoRedrawSolid | ( | ) | const [inline] |
| const char* GRE::VIEW::GetBackgroundColorIniName | ( | ) | const |
Return name of background color for use in INI file.
| const LRECT2D& GRE::VIEW::GetCanvasClipRect | ( | ) | const [inline] |
Get canvas clipping rectangle.
| void GRE::VIEW::GetCanvasExtentsUsed | ( | LRECT2D & | extents, | |
| bool | UseNext = false | |||
| ) | const |
Get portion of canvas extents actually used based on zoom factor.
| extents | Extents in 'canvas' coordinates returned | |
| UseNext | Use 'next' position instead of 'last' position |
| bool GRE::VIEW::GetClipRegion | ( | GRE::GROUP * | group, | |
| REGION2D & | ClipRegion | |||
| ) |
Get clipping region for group in view.
| group | Group, NULL for overall clipping region | |
| ClipRegion | Clipping region in device coordinates returned |
Get color for specified usage.
| coloruse | Color usage |
Get default color for specified usage.
| coloruse | Color usage | |
| color | Color returned |
| MDLGPARENT GRE::VIEW::GetDlgParent | ( | ) | const [inline] |
Get suitable parent for dialog child of view window.
| UINT32 GRE::VIEW::GetDrawingAreaHeight | ( | ) | const [inline] |
Get height (Y extent) of drawable area.
| UINT32 GRE::VIEW::GetDrawingAreaWidth | ( | ) | const [inline] |
Get width (X extent) of drawable area.
| MGD::DEVICE* GRE::VIEW::GetDrawingDevice | ( | bool | UseStereo = false |
) | const |
Get MGD::DEVICE for drawing.
If SetDrawingDevice has been used then the device set will be returned. Otherwise will be same as GetDrawingDeviceMemory().
| UseStereo | Use dual frame buffer stereo device if available and view is set to draw stereo |
| MGD::DEVICE* GRE::VIEW::GetDrawingDeviceMemory | ( | bool | UseStereo = false |
) | const |
Get MGD::DEVICE for drawing to 'memory'.
| UseStereo | Use dual frame buffer stereo device if available and view is set to draw stereo |
| MGD::DEVICE* GRE::VIEW::GetDrawingDeviceScreen | ( | ) | const [inline] |
Get MGD::DEVICE for drawing to 'screen'.
| bool GRE::VIEW::GetDrawStereo | ( | ) | const [inline] |
Determine if want drawing in stereo.
| bool GRE::VIEW::GetDrawWireframe3D | ( | ) | const [inline] |
Determine if only drawing wireframes for 3D layers.
| const DRECT2D& GRE::VIEW::GetFullExtents | ( | ) | const [inline] |
Get full extents of viewable object including margins.
| const GEOLOCKSETTINGS& GRE::VIEW::GetGeoLock | ( | ) | const [inline] |
Get geo-lock settings for view.
| GRE::GROUP* GRE::VIEW::GetGeorefGroup | ( | ) | const |
Get group used suitable for georeference.
| static const VIEWCOMMON& GRE::VIEW::GetGlobalOptions | ( | ) | [inline, static] |
Get global options which apply to all views.
| GRE::GROUP* GRE::VIEW::GetGroup | ( | ) | const |
Get viewable or active group.
If viewable is a layout, the active group will be returned.
| GRE::GROUPVIEW* GRE::VIEW::GetGroupView | ( | const GRE::GROUP * | group | ) | const |
Get GROUPVIEW pointer.
| const VIEWPOS& GRE::VIEW::GetLastPosn | ( | ) | const [inline] |
Get last-drawn position.
| GRE::LAYERVIEW* GRE::VIEW::GetLayerView | ( | const GRE::LAYER * | layer | ) | const |
Get LAYERVIEW pointer.
| GRE::LAYOUT* GRE::VIEW::GetLayout | ( | ) | const |
Get viewable layout.
| double GRE::VIEW::GetMargin | ( | ) | const [inline] |
Get current panning margin.
| const MISTRING& GRE::VIEW::GetMessage | ( | ) | const [inline] |
Get last message shown on status line.
| void GRE::VIEW::GetName | ( | MISTRING & | name | ) | const |
Get name of this view.
| name | Name returned |
| bool GRE::VIEW::GetNeedNotifyDrawElement | ( | ) | const [inline] |
Get whether need to call NotifyDrawElementBegin/End before/after drawing each element.
| bool GRE::VIEW::GetNeedsRedraw | ( | ) | const [inline] |
| VIEW* GRE::VIEW::GetNext | ( | ) | const |
Get next view of same object as this view.
| VIEW* GRE::VIEW::GetNextOfAll | ( | ) | const [inline] |
| const VIEWPOS& GRE::VIEW::GetNextPosn | ( | ) | const [inline] |
| INT16 GRE::VIEW::GetPadPixels | ( | ) | const [inline] |
Get padding value in pixels for scrolling off edge of object extent.
| void GRE::VIEW::GetPixelSizeMM | ( | DPOINT2D & | pixelsize | ) | const |
Get pixel size of rendering device in millimeters.
| double GRE::VIEW::GetPixelSizeMM | ( | ) | const |
Get pixel size of rendering device in millimeters.
| GRE_PROJACCUR GRE::VIEW::GetProjAccur | ( | ) | const [inline] |
Get current projection accuracy.
| bool GRE::VIEW::GetRedrawOnAnyChange | ( | ) | [inline] |
Determine if should redraw views on any change.
| double GRE::VIEW::GetScale | ( | ) | const [inline] |
Get current scale at which view is rendered.
| ERRVALUE GRE::VIEW::GetScale | ( | double * | xscale, | |
| double * | yscale | |||
| ) |
Get current scale at which view is rendered.
| xscale | X scale returned | |
| yscale | Y scale returned |
Get "size" of viewable object in "ground" meters.
| size | Size in meters returned |
| MISTATUSMANAGER* GRE::VIEW::GetStatusManager | ( | ) | const [inline] |
| const STEREODEVICE& GRE::VIEW::GetStereoDevice | ( | ) | const |
Get stereo device parameters for this view.
| static const STEREODEVICE& GRE::VIEW::GetStereoDeviceShared2D | ( | ) | [inline, static] |
Get shared stereo parameters for 2D.
| static const STEREODEVICE& GRE::VIEW::GetStereoDeviceShared3D | ( | ) | [inline, static] |
Get shared stereo parameters for 3D.
| const STEREORENDER& GRE::VIEW::GetStereoRender | ( | ) | const |
Get stereo rendering parameters for this view.
| bool GRE::VIEW::GetStopDrawOnError | ( | ) | const [inline] |
| double GRE::VIEW::GetTimeLastRefresh | ( | ) | const [inline] |
| void GRE::VIEW::GetTransDispToGroup | ( | const GRE::GROUP * | group, | |
| TRANS2D_AFFINE & | DispToGroup | |||
| ) | const |
Get transformation from display to group.
| group | Group | |
| DispToGroup | Transformation returned |
| int GRE::VIEW::GetTransLayerDisp | ( | const GRE::LAYER * | layer, | |
| TRANS2D_MAPGEN & | trans | |||
| ) | const |
Get transformation from layer to display coordinates in TRANS2D_MAPGEN.
| layer | Layer to obtain transformation for | |
| trans | Transformation returned |
| ERRVALUE GRE::VIEW::GetTransLayerView | ( | const GRE::LAYER * | layer, | |
| TRANS2D_MAPGEN & | trans | |||
| ) | const |
Get transformation from layer to view coordinates in TRANS2D_MAPGEN.
| layer | Layer to obtain transformation for | |
| trans | Transformation returned |
| const TRANS2D_AFFINE& GRE::VIEW::GetTransToDisp | ( | ) | const [inline] |
Get transformation from view to display as TRANS2D_AFFINE.
| ERRVALUE GRE::VIEW::GetTransToMap | ( | TRANS2D_MAPGEN & | trans, | |
| bool | dooutput, | |||
| const GRE::GROUP * | group = 0 | |||
| ) | const |
Get tranformation from view to map coordinates in TRANS2D_MAPGEN.
| trans | Transformation parameters returned | |
| dooutput | Use output section of TransParm | |
| group | Reference group if desired, NULL for default |
| static bool GRE::VIEW::GetUpdateAfterDrawLayer | ( | ) | [static] |
Determine if views should be updated to screen after each layer is rendered.
| VIEWABLE* GRE::VIEW::GetViewable | ( | ) | const [inline] |
Get object this view is of.
| OBJECT::TYPE GRE::VIEW::GetViewableType | ( | ) | const |
Get type of object being viewed.
| VIEWFLAGS GRE::VIEW::GetViewFlags | ( | ) | const [inline] |
| int GRE::VIEW::GetViewNum | ( | ) | const |
Get view number for visibility check.
| int GRE::VIEW::GetViewNumRaw | ( | ) | const [inline, protected] |
Get view number.
| VIEWPOINT3D* GRE::VIEW::GetViewPoint3D | ( | ) | const [inline] |
Get 3D viewpoint for this view.
| void GRE::VIEW::GetVisibleExtents | ( | DRECT2D & | extents, | |
| bool | UseNext = false | |||
| ) | const |
Get extents of viewable object which are visible.
| extents | Extents returned | |
| UseNext | Use 'next' position instead of 'last' position |
| bool GRE::VIEW::GetWireframeMode | ( | ) | const |
Determine if in wireframe mode.
| const double& GRE::VIEW::GetZoom | ( | ) | const [inline] |
Get current zoom factor for this view.
| static bool GRE::VIEW::GetZoomPanWaitForRMB | ( | ) | [static] |
Determine if should wait for right mouse-button before zoom/pan.
| const ZVIEW* GRE::VIEW::GetZView | ( | ) | const |
| bool GRE::VIEW::Has3D | ( | ) | const |
Determine if view contains any 3D groups.
| bool GRE::VIEW::HasObjects | ( | ) | const |
Determine if view has any visible objects.
| bool GRE::VIEW::HighlightElementsByPoint | ( | const DPOINT2D & | pt, | |
| bool | PointInDisplayCoords, | |||
| GRE::HIGHLIGHTMODE | HighlightMode = GRE::HIGHLIGHTMODE_NotSet, |
|||
| bool | ShowDftTables = false | |||
| ) |
Highlight elements in view using specified point.
| pt | Point to use for finding elements | |
| PointInDisplayCoords | 'true' if point in "display" coordinates, 'false' if in "view" coordinates. | |
| HighlightMode | Highlight operation | |
| ShowDftTables | Show default table for each layer highlighted element |
| void GRE::VIEW::InvalidateAllLayers | ( | ) |
Invalidate all layers so will force to redraw.
| bool GRE::VIEW::Is3D | ( | ) | const |
Determine if view is of a 3D group.
| bool GRE::VIEW::IsAllowedDiffZoom | ( | ) | const [inline] |
| bool GRE::VIEW::IsBeingDrawn | ( | ) | const [inline] |
| bool GRE::VIEW::IsBeingRestored | ( | ) | const [inline] |
| bool GRE::VIEW::IsGeoLocked | ( | ) | const [inline] |
Determine if view is geolocked.
| bool GRE::VIEW::IsGoogleLocked | ( | ) | const [inline] |
Determine if view is geolocked.
| bool GRE::VIEW::IsGroupVisible | ( | const GRE::GROUP * | group | ) | const |
Determine if group is set to be visible in view.
| bool GRE::VIEW::IsInteractive | ( | ) | const [inline] |
Determine if is "interactive" view.
| bool GRE::VIEW::IsLayerVisible | ( | const GRE::LAYER * | layer | ) | const |
Determine if layer is set to be visible in view.
| layer | Layer to check |
| bool GRE::VIEW::IsLegacy | ( | ) | const [inline] |
| bool GRE::VIEW::IsLocator | ( | ) | const [inline] |
Determine if view is a "locator" window.
| bool GRE::VIEW::IsRedrawDisabled | ( | ) | const [inline] |
Determine if redraw is disabled.
| void GRE::VIEW::NotifyChangeViewPoint3D | ( | bool | redraw = true, |
|
| bool | IsDragging = false | |||
| ) |
Notify view of change to 3D viewpoint.
Will invoke callback on view using ACTION_ChangeViewPoint3d or ACTION_ChangeViewPoint3dDragging.
| void GRE::VIEW::NotifyDrawElementBegin | ( | GRE::LAYER * | layer, | |
| const RVC::ELEMENT & | element | |||
| ) | [inline] |
Send notification before drawing element.
| void GRE::VIEW::NotifyDrawElementEnd | ( | GRE::LAYER * | layer, | |
| const RVC::ELEMENT & | element | |||
| ) | [inline] |
Send notification after drawing element.
| void GRE::VIEW::NotifyExposure | ( | const LRECT2D & | rect | ) |
Send "exposure" notification to callback list.
| rect | Rectangle defining area exposed |
| void GRE::VIEW::NotifyLayerRendered | ( | GRE::LAYER * | layer | ) |
Notify view that layer has been rendered.
Usually called by worker thread.
| void GRE::VIEW::NotifyPointerEnter | ( | ) |
Send notification that pointer has entered view.
| void GRE::VIEW::NotifyPointerLeave | ( | ) |
Send notification that pointer has left view.
| void GRE::VIEW::NotifyPointerMove | ( | const DPOINT2D & | point | ) |
Send notification that pointer has moved within view.
| point | Point in "device canvas" coordinates |
| RENDERBUFFER* GRE::VIEW::OverlayCreate | ( | bool | AddToFront = false |
) |
Create overlay buffer.
Do not use delete on returned pointer, use OverlayDestroy to remove. The overlay device will be automatically created and resized as needed. The RENDERBUFFER::SetRendered method must be used to indicate that the overlay is valid.
| AddToFront | True to add as first overlay, false to add as last |
| void GRE::VIEW::OverlayDestroy | ( | RENDERBUFFER *& | pRenderBuffer | ) |
Destroy overlay buffer.
| pRenderBuffer | Overlay buffer previously obtained via CreateOverlay() |
| void GRE::VIEW::OverlayUpdatedLayers | ( | ) | [protected] |
Overlay updated layers on display.
| ERRVALUE GRE::VIEW::PanToLayerElement | ( | GRE::LAYER * | layer, | |
| ELEMTYPE | ElemType, | |||
| ELEMNUM | ElemNum, | |||
| GRE::DRAWFLAGS | drawflags = GRE::DRAWFLAG_None | |||
| ) |
Pan view so that specified layer element is visible.
| layer | Layer | |
| ElemType | Element type | |
| ElemNum | Element number |
| void GRE::VIEW::RemoveDelegateOnPointerEnter | ( | DELEGATE_POINTERENTERLEAVE | delegate | ) |
Remove delegate called when pointer enters view.
| delegate | Delegate to remove |
| void GRE::VIEW::RemoveDelegateOnPointerLeave | ( | DELEGATE_POINTERENTERLEAVE | delegate | ) |
Remove delegate called when pointer leaves view.
| delegate | Delegate to remove |
| void GRE::VIEW::RemoveDelegateOnPointerMove | ( | DELEGATE_POINTERMOVE | delegate | ) |
Remove delegate called when pointer moves within view.
| delegate | Delegate to remove |
| void GRE::VIEW::ResetCancel | ( | ) | [inline] |
Reset "cancelled" status.
| void GRE::VIEW::RestoreFromBuffers | ( | bool | RenderIfNeeded = true |
) |
Restore view from rendering buffers.
This will re-composite from the various buffers into the common memory device buffer. If no such compositing is needed, use RestoreFromMemory instead as will be faster.
| void GRE::VIEW::RestoreFromMemory | ( | const LRECT2D * | rect = 0, |
|
| bool | UseScreenBuffer = false | |||
| ) |
Restore from off-screen memory.
This does not re-composite from the various layer buffers, use RestoreFromBuffers if such compositing is needed.
| rect | Rectangle to restore, 0 for entire visible extent | |
| UseScreenBuffer | Copy from screen buffer, should be used only if certain buffer is current |
| ERRVALUE GRE::VIEW::SaveSnapshotQuick | ( | ) |
Save "quick snapshot" of current view contents.
| ERRVALUE GRE::VIEW::SaveSnapshotToRaster | ( | ) |
Save "snapshot" of current view contents to raster.
| void GRE::VIEW::SetAutoRedrawSolid | ( | bool | AutoRedrawSolid | ) | [inline] |
| void GRE::VIEW::SetBeingRestored | ( | bool | BeingRestored | ) | [inline] |
| int GRE::VIEW::SetCenter | ( | const DPOINT2D & | pt, | |
| bool | redraw = true | |||
| ) |
Pan view so that specified point in view coordinates is centered.
Panning will not occur if specified point is already in visible extents.
| pt | Point in viewable coordinates to pan to | |
| redraw | Redraw view if necessary |
| void GRE::VIEW::SetCenterByLayer | ( | GRE::LAYER * | layer, | |
| const DPOINT2D & | pt, | |||
| bool | redraw = true | |||
| ) |
Pan view so that specified point in layer coordinates is centered.
| layer | Layer | |
| pt | Point in layer coordinates | |
| redraw | Redraw view |
| void GRE::VIEW::SetClipNone | ( | ) |
Reset clipping to full extent of drawing area.
| void GRE::VIEW::SetClipRect | ( | const LRECT2D & | cliprect | ) |
Set clipping rectangle for view in display coordinates.
| cliprect | Clipping rectangle |
Set color for specified use.
| coloruse | Color use | |
| color | Color to set |
| void GRE::VIEW::SetDrawingDevice | ( | MGD::DEVICE * | gdisp | ) |
Set MGD::DEVICE for drawing.
Should not be used if CreateX() was used to create the view.
| void GRE::VIEW::SetDrawStereo | ( | bool | DrawStereo | ) |
| void GRE::VIEW::SetDrawWireframe3D | ( | bool | DrawWireframe | ) | [inline] |
| void GRE::VIEW::SetGeoLock | ( | const GEOLOCKSETTINGS & | GeoLockSettings | ) | [inline] |
Set geo-locking values.
| void GRE::VIEW::SetGeoLocked | ( | bool | GeoLocked = true, |
|
| bool | AutoScale = true | |||
| ) |
Set whether or not view is geolocked to other views in same process.
| static void GRE::VIEW::SetGlobalOptions | ( | const VIEWCOMMON & | options | ) | [static] |
Set global options applying to all views.
| options | Options to set |
| void GRE::VIEW::SetGoogleLocked | ( | bool | Locked | ) | [inline] |
| void GRE::VIEW::SetInteractive | ( | ) | [inline, protected] |
| void GRE::VIEW::SetMargin | ( | double | MarginMeters | ) | [inline] |
Set additional panning margin.
This allows the user to pan past the "edge" of the viewable object when zoomed. Margins are currently supported for 2D 'group' views only.
| void GRE::VIEW::SetNeedNotifyDrawElement | ( | bool | NeedNotify = true |
) | [inline] |
Set whether need to call NotifyDrawElementBegin/End before/after drawing each element.
Default is that notification is not needed unless this method is called.
| void GRE::VIEW::SetNeedsRedraw | ( | ) | [inline] |
| void GRE::VIEW::SetNextPlace | ( | const VIEWPLACE & | NextPlace, | |
| bool | redraw = true | |||
| ) |
Set next "place" to view and optionally redraw.
| void GRE::VIEW::SetNextPosn | ( | const VIEWPOS & | NextPosn, | |
| bool | redraw = true | |||
| ) | [inline] |
Set next view position.
| void GRE::VIEW::SetPadPixels | ( | int | pp | ) | [inline] |
| void GRE::VIEW::SetProjAccur | ( | GRE_PROJACCUR | ProjAccur | ) | [inline] |
| void GRE::VIEW::SetRedrawOnAnyChange | ( | bool | RedrawOnAnyChange, | |
| bool | redraw = true | |||
| ) |
Set option to redraw view on any change.
| redraw | Redraw if changed and setting turned on |
| ERRVALUE GRE::VIEW::SetScale | ( | double | NewMapScale, | |
| bool | redraw = true | |||
| ) |
Set scale to draw view at.
| ERRVALUE GRE::VIEW::SetScaleMaxDetail | ( | bool | redraw = true |
) | [inline] |
Set scale to draw default reference layer at maximum detail.
| ERRVALUE GRE::VIEW::SetScaleMaxDetail | ( | GRE::LAYER * | ScaleRefLayer, | |
| bool | redraw = true | |||
| ) |
Set scale to draw specified reference layer at maximum detail.
| void GRE::VIEW::SetStatusManager | ( | MISTATUSMANAGER * | pStatusMgr | ) | [inline] |
| void GRE::VIEW::SetStereoDevice | ( | const STEREODEVICE & | StereoDevice | ) |
Set stereo parameters for this view.
If not set will use shared parameters.
| static void GRE::VIEW::SetStereoDeviceShared2D | ( | const STEREODEVICE & | StereoDevice | ) | [static] |
Set shared stereo parameters for 2D views.
| static void GRE::VIEW::SetStereoDeviceShared3D | ( | const STEREODEVICE & | StereoDevice | ) | [static] |
Set shared stereo parameters for 3D views.
| void GRE::VIEW::SetStereoRender | ( | const STEREORENDER & | StereoRender | ) |
Set stereo rendering parameters for this view.
| void GRE::VIEW::SetStopDrawOnError | ( | bool | StopDrawOnError = true |
) | [inline] |
Set whether to stop drawing if error occurs.
| StopDrawOnError | true to stop, false to display error and continue |
| static void GRE::VIEW::SetTrackCursor | ( | bool | TrackCursor | ) | [static] |
Set option for tracking cursor between views.
| static void GRE::VIEW::SetUpdateAfterDrawLayer | ( | bool | UpdateAfterDrawLayer | ) | [static] |
Set option to update views after each layer is rendered.
| void GRE::VIEW::SetViewFlags | ( | VIEWFLAGS | viewflags, | |
| bool | redraw = false | |||
| ) | [inline] |
| bool GRE::VIEW::SetViewFromGeoLock | ( | const VIEW * | refview = 0 |
) |
Set view position/scale if geolocked.
| refview | Reference view, default to first |
| void GRE::VIEW::SetViewNum | ( | int | ViewNum | ) | [inline] |
| void GRE::VIEW::SetViewPosns | ( | const VIEWPOS & | ViewPos | ) | [protected] |
Set view position directly.
Does not set that needs redraw.
| void GRE::VIEW::SetWireframeMode | ( | bool | mode, | |
| bool | redraw = true | |||
| ) |
Set to draw wireframes instead of groups.
| redraw | Redraw now if true |
| int GRE::VIEW::SetZoom | ( | const DPOINT2D & | zoom, | |
| bool | redraw = true | |||
| ) |
Set zoom factor for view.
| redraw | Redraw view |
| int GRE::VIEW::SetZoom | ( | double | zoom, | |
| bool | redraw = true | |||
| ) |
Set zoom factor for view.
| zoom | Zoom factor, 1.0 = full extents | |
| redraw | Redraw view |
| int GRE::VIEW::SetZoomFull | ( | bool | redraw = true |
) | [inline] |
Set zoom to view full extents.
| redraw | Redraw view |
| static void GRE::VIEW::SML_ClassInstall | ( | SML::CONTEXT * | context | ) | [static] |
Reimplemented in GRE::VIEW_LEGACY.
| int GRE::VIEW::TestCancel | ( | ) | [inline] |
Test if user has pressed "Cancel/Skip" button.
| ERRVALUE GRE::VIEW::TransDispToGroup | ( | GRE::GROUP * | group, | |
| const DPOINT2D * | ipoints, | |||
| DPOINT2D * | opoints, | |||
| int | numpoints | |||
| ) | const |
Translate 'display' coordinates to group 'map' coordinates.
| group | Group | |
| ipoints | Source point array | |
| opoints | Target point array | |
| numpoints | Number of points to convert |
| ERRVALUE GRE::VIEW::TransDispToLayer | ( | GRE::LAYER * | layer, | |
| const DPOINT2D * | ipoints, | |||
| DPOINT2D * | opoints, | |||
| int | numpoints | |||
| ) |
Translate 'display' coordinates to 'layer' coordinates.
| layer | Layer to transform to | |
| ipoints | Source point array | |
| opoints | Target point array | |
| numpoints | Number of points to convert |
| void GRE::VIEW::TransDispToView | ( | const DPOINT2D * | ipoints, | |
| DPOINT2D * | opoints, | |||
| int | numpoints | |||
| ) | const |
Translate 'display' coordinates to 'view' coordinates.
'View' coordinates are either 'group' or 'layout' coordinates and are generally considered to be arbitrary.
| ipoints | Source point array | |
| opoints | Target point array | |
| numpoints | Number of points to convert |
| ERRVALUE GRE::VIEW::TransGroupToDisp | ( | GRE::GROUP * | group, | |
| const DPOINT2D * | ipoints, | |||
| DPOINT2D * | opoints, | |||
| int | numpoints | |||
| ) | const |
Translate group 'map' coordinates to 'display' coordinates.
| group | Group | |
| ipoints | Source point array | |
| opoints | Target point array | |
| numpoints | Number of points to convert |
| ERRVALUE GRE::VIEW::TransGroupToView | ( | GRE::GROUP * | group, | |
| const DPOINT2D * | ipoints, | |||
| DPOINT2D * | opoints, | |||
| int | numpoints | |||
| ) | const |
Translate group 'map' coordinates to 'view' coordinates.
'View' coordinates are either 'group' or 'layout' coordinates and are generally considered to be arbitrary.
| group | Group | |
| ipoints | Source point array | |
| opoints | Target point array | |
| numpoints | Number of points to convert |
| ERRVALUE GRE::VIEW::TransLayerToDisp | ( | GRE::LAYER * | layer, | |
| const DPOINT2D * | ipoints, | |||
| DPOINT2D * | opoints, | |||
| int | numpoints | |||
| ) |
Translate 'layer' coordinates to 'display' coordinates.
| ipoints | Source point array | |
| opoints | Target point array | |
| numpoints | Number of points to convert |
| ERRVALUE GRE::VIEW::TransLayerToView | ( | GRE::LAYER * | layer, | |
| const DPOINT2D * | ipoints, | |||
| DPOINT2D * | opoints, | |||
| int | numpoints | |||
| ) |
Translate 'layer' coordinates to 'view' coordinates.
'View' coordinates are either 'group' or 'layout' coordinates and are generally considered to be arbitrary.
| ipoints | Source point array | |
| opoints | Target point array | |
| numpoints | Number of points to convert |
| void GRE::VIEW::TransViewToDisp | ( | const DPOINT2D * | ipoints, | |
| DPOINT2D * | opoints, | |||
| int | numpoints | |||
| ) | const |
Translate 'view' coordinates to 'display' coordinates.
'View' coordinates are either 'group' or 'layout' coordinates and are generally considered to be arbitrary.
| ipoints | Source point array | |
| opoints | Target point array | |
| numpoints | Number of points to convert |
| ERRVALUE GRE::VIEW::TransViewToGroup | ( | GRE::GROUP * | group, | |
| const DPOINT2D * | ipoints, | |||
| DPOINT2D * | opoints, | |||
| int | numpoints | |||
| ) | const |
Translate 'view' coordinates to group 'map' coordinates.
'View' coordinates are either 'group' or 'layout' coordinates and are generally considered to be arbitrary.
| group | Group | |
| ipoints | Source point array | |
| opoints | Target point array | |
| numpoints | Number of points to convert |
| ERRVALUE GRE::VIEW::TransViewToLayer | ( | GRE::LAYER * | layer, | |
| const DPOINT2D * | ipoints, | |||
| DPOINT2D * | opoints, | |||
| int | numpoints | |||
| ) |
Translate 'view' coordinates to 'layer' coordinates.
'View' coordinates are either 'group' or 'layout' coordinates and are generally considered to be arbitrary.
| ipoints | Source point array | |
| opoints | Target point array | |
| numpoints | Number of points to convert |
| GRE::CTRL_TREEVIEW* GRE::VIEW::TreeViewGetPtr | ( | ) | const [inline] |
Get TreeView pointer.
| void GRE::VIEW::TreeViewSetPtr | ( | GRE::CTRL_TREEVIEW * | pTreeView | ) | [inline] |
Set TreeView pointer.
Used by GRE CTRL_TREEVIEW implementation, should not be called directly.
| ERRVALUE GRE::VIEW::UpdateExtents | ( | ) |
Update viewable extents.
| void GRE::VIEW::UpdateLastPosn | ( | ) |
| void GRE::VIEW::UpdateMessage | ( | const MISTRING & | string | ) |
Update text on message line.
| int GRE::VIEW::UpdatePosition | ( | ) |
| void GRE::VIEW::UpdateScriptUI | ( | ) | [inline] |
Update script user interface controls for interactive view.
| void GRE::VIEW::UpdateTypeName | ( | ) |
Update view's "type name" if viewable object's type name may have changed.
| void GRE::VIEW::UpdateUI | ( | ) | [inline] |
Update user interface controls for interactive view.
| bool GRE::VIEW::UseSeparateRenderDevices | ( | ) |
Determine if using separate render devices for each layer/group.
| virtual void GRE::VIEW::v_CreateFinish | ( | ) | [private, virtual] |
Finish view creation.
| virtual void GRE::VIEW::v_DataTipSetDelay | ( | INT32 | delay | ) | [private, virtual] |
Set DataTip popup delay.
| delay | DataTip popup delay in milliseconds |
| virtual void GRE::VIEW::v_DataTipSetPixelDelta | ( | int | PixelDelta | ) | [private, virtual] |
Set distance cursor must move to hide DataTip.
| PixelDelta | Movement distance in screen pixels |
| virtual ERRVALUE GRE::VIEW::v_Draw | ( | ) | [private, virtual] |
| virtual ERRVALUE GRE::VIEW::v_DrawThisOnly | ( | GRE::DRAWFLAGS | drawflags | ) | [private, virtual] |
Draw this view only.
Intended for internal GRE use only. Consult source when override for mandatory sequencing.
| virtual MDLGPARENT GRE::VIEW::v_GetDlgParent | ( | ) | const [private, virtual] |
Get suitable parent for dialog child of view window.
Default implementation returns NULL.
| virtual MGD::DEVICE* GRE::VIEW::v_GetDrawingDeviceMemory | ( | bool | UseStereo | ) | const [private, virtual] |
Get MGD::DEVICE for drawing to 'memory' Default implementation returns NULL.
| UseStereo | Use dual frame buffer stereo device if available and view is set to draw stereo |
| virtual MGD::DEVICE* GRE::VIEW::v_GetDrawingDeviceScreen | ( | ) | const [private, virtual] |
Get MGD::DEVICE for drawing to 'screen' Default implementation returns NULL.
| virtual int GRE::VIEW::v_GetViewNum | ( | ) | const [private, virtual] |
Override to return different view number.
Should return -1 for standard view number.
| virtual void GRE::VIEW::v_OnDrawElementBegin | ( | GRE::LAYER * | layer, | |
| const RVC::ELEMENT & | element | |||
| ) | [private, virtual] |
Called before each "element" in a geometric layer is drawn.
| virtual void GRE::VIEW::v_OnDrawElementEnd | ( | GRE::LAYER * | layer, | |
| const RVC::ELEMENT & | element | |||
| ) | [private, virtual] |
Called after each "element" in a geometric layer is drawn.
| virtual void GRE::VIEW::v_OnDrawGroupBegin | ( | GRE::GROUP * | group | ) | [private, virtual] |
Called before each group in layout is drawn.
| virtual void GRE::VIEW::v_OnDrawGroupEnd | ( | GRE::GROUP * | group | ) | [private, virtual] |
Called after each group in layout is drawn.
| virtual void GRE::VIEW::v_OnDrawLayerBegin | ( | GRE::LAYER * | layer | ) | [private, virtual] |
Called before each layer is drawn.
| virtual void GRE::VIEW::v_OnDrawLayerEnd | ( | GRE::LAYER * | layer | ) | [private, virtual] |
Called after each layer is drawn.
| virtual void GRE::VIEW::v_OnDrawViewableBegin | ( | ) | [private, virtual] |
Called before "viewable" is drawn.
| virtual void GRE::VIEW::v_OnDrawViewableEnd | ( | ) | [private, virtual] |
Called after "viewable" is drawn.
| virtual void GRE::VIEW::v_OnJobsAllDone | ( | ) | [private, virtual] |
Called when background jobs all finished.
| virtual void GRE::VIEW::v_OnJobStarted | ( | ) | [private, virtual] |
Called when background job started.
| virtual void GRE::VIEW::v_OnLayerRendered | ( | GRE::LAYER * | layer | ) | [private, virtual] |
Called when layer has been rendered by background thread.
| virtual void GRE::VIEW::v_RestoreFromMemory | ( | const LRECT2D * | rect, | |
| bool | UseScreenBuffer = false | |||
| ) | [private, virtual] |
Restore from off-screen memory.
Default implementation does nothing.
| rect | Rectangle to restore, NULL for full visible extent | |
| UseScreenBuffer | Copy from screen buffer, should be used only if certain buffer is current |
| virtual ERRVALUE GRE::VIEW::v_TestCancel | ( | ) | [private, virtual] |
| virtual void GRE::VIEW::v_UpdateMessage | ( | const MISTRING & | string | ) | [private, virtual] |
Update displayed message.
| virtual void GRE::VIEW::v_UpdateScriptUI | ( | ) | [private, virtual] |
Update script user interface for interactive view.
Default implementation does nothing.
| virtual void GRE::VIEW::v_UpdateUI | ( | ) | [private, virtual] |
Update user interface for interactive view.
Default implementation does nothing.
| int GRE::VIEW::ZoomToGroup | ( | GRE::GROUP * | group, | |
| bool | redraw = true | |||
| ) |
Zoom to extent of specified group.
| int GRE::VIEW::ZoomToGroupRect | ( | GRE::GROUP * | group, | |
| const DRECT2D & | rect, | |||
| bool | redraw = true | |||
| ) |
Zoom to extent of specified rectangle in CRS used to render group.
| int GRE::VIEW::ZoomToLayer | ( | GRE::LAYER * | layer, | |
| bool | redraw = true | |||
| ) |
Zoom to extent of specified layer.
| int GRE::VIEW::ZoomToLayerRect | ( | GRE::LAYER * | layer, | |
| const DRECT2D & | rect, | |||
| bool | redraw = true | |||
| ) |
Zoom to extent of specified rectangle in layer coordinates.
Zoom to extent of specified rectangle in associated viewable coordinates.
| rect | Rectangle to zoom to | |
| redraw | True to redraw view |
1.6.1