GRE_VIEW Class Reference

#include <gre/view.h>

Inheritance diagram for GRE_VIEW:

Inheritance graph
[legend]
List of all members.

Public Types

enum  COLORUSE {
  COLORUSE_Background, COLORUSE_HighlightElem, COLORUSE_ActiveElem, COLORUSE_DataTipElem,
  COLORUSE_COUNT
}
enum  COORDSOURCE {
  COORDSOURCE_None, COORDSOURCE_Mouse, COORDSOURCE_ViewCenter, COORDSOURCE_Entered,
  COORDSOURCE_GPS, COORDSOURCE_COUNT
}
enum  CREATEFLAGS {
  CREATEFLAG_None = 0x00000000, CREATEFLAG_NoRenderSeparate = 0x00000001, CREATEFLAG_NoCallCreateCB = 0x00000004, CREATEFLAG_Temporary = 0x00000008,
  CREATEFLAG_NoCloseOption = 0x00000100, CREATEFLAG_DestroyOnClose = 0x00000200, CREATEFLAG_NoSelectTool = 0x00000400, CREATEFLAG_NoLegendView = 0x00000800,
  CREATEFLAG_NoStdTools = 0x00001000, CREATEFLAG_NoDftAddIcons = 0x00002000, CREATEFLAG_NoCancelButton = 0x00004000, CREATEFLAG_NoSkipButton = 0x00008000,
  CREATEFLAG_NoRedrawButton = 0x00010000, CREATEFLAG_NoToolBoxTool = 0x00020000, CREATEFLAG_NoStatusLine = 0x00040000, CREATEFLAG_NoIconBar = 0x00080000,
  CREATEFLAG_NoDftDrawIcons = 0x00100000, CREATEFLAG_NoDftViewIcons = 0x00200000, CREATEFLAG_NoScalePosLine = 0x00400000, CREATEFLAG_NoScrollbars = 0x00800000,
  CREATEFLAG_Locator = 0x01000000, CREATEFLAG_3D = 0x02000000, CREATEFLAG_Hardcopy = 0x04000000, CREATEFLAG_StereoLeft = 0x08000000,
  CREATEFLAG_StereoRight = 0x10000000, CREATEFLAG_DialogModal = 0x20000000, CREATEFLAG_AllowGeoLock = 0x40000000
}
enum  DATATIPSELECTION {
  DATATIPSELECTION_FromView = 0, DATATIPSELECTION_None = 1, DATATIPSELECTION_ActiveLayer = 2, DATATIPSELECTION_AllLayers = 3,
  DATATIPSELECTION_AllVisible = 4, DATATIPSELECTION_AutoScale = 5
}

Public Member Functions

void AddDftViewIcons (UINT32 flags=0)
void AddDrawIcons ()
Widget AddIconRowItems (const BUTTONITEM *items, const char *icongroup=0, void *cbdata=0, void *userdata=0)
void AddMacroScriptIcons ()
void AddMacroScriptMenuItems ()
ERRVALUE AddMenuItemsOptions (const MENUITEM *newitems)
void AddToolIcons (bool addscripts=true)
void AttachGroupView (GRE::GROUPVIEW *groupview)
void AttachLayerView (GRE::LAYERVIEW *layerview)
void CancelDrawing (int err=EUserCancel)
void ClearMessage () const
void ClearPreviousViewList ()
bool ContainsLayer (const GRE_LAYER *layer) const
double ConvertScreenUnits (GRE_LAYER *layer, double value, int iunits, int ounits)
ERRVALUE Create (GRE_VIEWABLE *viewable, int iwidth, int iheight, CREATEFLAGS createflags=CREATEFLAG_None)
Widget CreateMenuBar (Widget form)
Widget CreateMenuBar (Widget form, MENUBARITEM *menubar)
ERRVALUE CreateX (GRE_VIEWABLE *viewable, Widget pwidget, Arg *arglist, int argcount, int iwidth, int iheight, const char *sizefield=0, CREATEFLAGS createflags=CREATEFLAG_None, const SAVESETTINGS *pSettings=0)
DATATIPSELECTION DataTipGetSelection () const
ERRVALUE DataTipGetString (const DPOINT2D &point, MISTRING &string, GRE_FIND_FLAGS findflags, int maxlines=0, DATATIPSELECTION selection=DATATIPSELECTION_FromView)
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 DisableHotKeys ()
void DisableRedraw ()
ERRVALUE Draw ()
ERRVALUE DrawDirect (GRE::DRAWFLAGS drawflags=GRE::DRAWFLAG_None)
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, INT32 ElemNum, GRE::RENDERTARGET Target, GRE::DRAWFLAGS drawflags=GRE::DRAWFLAG_None)
ERRVALUE DrawLayerElements (GRE_LAYER *layer, ELEMTYPE ElemType, const UINT8 *ElemSet, GRE::RENDERTARGET Target, GRE::DRAWFLAGS drawflags=GRE::DRAWFLAG_None)
ERRVALUE DrawLayerHighlighted (GRE_LAYER *layer, GRE::DRAWFLAGS drawflags=GRE::DRAWFLAG_None)
void DrawMargins (MGD::CONTEXT *gc)
int EditColors ()
void EditCustomization ()
void EnableHotKeys ()
void EnableRedraw ()
INT32 FindClosestLayerElement (GRE_LAYER *layer, int component, const DPOINT2D &point, double *distret, GRE_FIND_FLAGS findflags)
GRE_GROUPFindPointGroup (const DPOINT2D &point, GRE_FIND_FLAGS findflags, const SPATREF::COORDREFSYS *pPointCRS=NULL) const
DEPRECATED const COLORGetActiveColor () const
GRE_TOOLGetActiveTool () const
bool GetAutoRedrawSolid () const
DEPRECATED const COLORGetBackgroundColor () const
const char * GetBackgroundColorIniName () const
void GetCanvasExtentsUsed (LRECT2D &extents, bool UseNext=false) const
bool GetClipRegion (GRE_GROUP *group, REGION2D &ClipRegion)
const COLORGetColor (COLORUSE coloruse) const
MDLGPARENT GetDlgParent () const
Widget GetDrawingArea () const
Widget GetDrawingAreaForm () const
UINT32 GetDrawingAreaHeight () const
UINT32 GetDrawingAreaWidth () const
DEPRECATED MGD::CONTEXTGetDrawingContextScreen () const
MGD::DEVICEGetDrawingDevice () const
MGD::DEVICEGetDrawingDeviceMemory () const
MGD::DEVICE_XGetDrawingDeviceScreen () const
MGD::DEVICE_X32GetDrawingDeviceViewInView () const
Pixmap GetDrawingPixmap () const
bool GetDrawWireframe3D () const
Widget GetForm () const
const DRECT2DGetFullExtents () const
const GRE_GEOLOCKSETTINGSGetGeoLock () const
GRE::GROUPVIEWGetGroupView (const GRE_GROUP *group) const
DEPRECATED const COLORGetHighlightColor () const
const BUTTONITEMGetIconItemAdd (SIMPLE_ARRAY< BUTTONITEM > &items) const
const BUTTONITEMGetIconItemDraw (SIMPLE_ARRAY< BUTTONITEM > &items, UINT32 flags=0) const
const BUTTONITEMGetIconItemTool (SIMPLE_ARRAY< BUTTONITEM > &items) const
const BUTTONITEMGetIconItemView (SIMPLE_ARRAY< BUTTONITEM > &items, UINT32 flags=MDISPICONVIEW_ViewDefault) const
Widget GetIconView (UINT32 flag) const
const VIEWPOSNGetLastPosn () const
GRE::LAYERVIEWGetLayerView (const GRE_LAYER *layer) const
double GetMargin () const
const MENUITEMGetMenuItemGPS ()
const MENUITEMGetMenuItemHotKeys ()
const MENUITEMGetMenuItemLegendView ()
const MENUITEMGetMenuItemOptions (SIMPLE_ARRAY< MENUITEM > &items)
const MENUITEMGetMenuItemTool (SIMPLE_ARRAY< MENUITEM > &items) const
const MENUITEMGetMenuItemView (SIMPLE_ARRAY< MENUITEM > &items)
Widget GetMenuWidget (const char *menupath) const
void GetName (MISTRING &name) const
bool GetNeedsRedraw () const
GRE_VIEWGetNext () const
GRE_VIEWGetNextOfAll () const
const VIEWPOSNGetNextPosn () const
GRE_VIEWABLEGetObject () const
GRE_OBJTYPE GetObjectType () const
INT16 GetPadPixels () const
void GetPixelSizeMM (DPOINT2D &pixelsize) const
double GetPixelSizeMM () const
GRE_PROJACCUR GetProjAccur () const
double GetScale ()
ERRVALUE GetScale (double *xscale, double *yscale)
ERRVALUE GetSizeMeters (DPOINT2D &size) const
MSTATUSCONTEXT GetStatusContext () const
MSTATUSHANDLE GetStatusHandle () const
bool GetThinLineWidthHinting () const
Widget GetToolBar () 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
TRANS2D_AFFINE GetTransToDisp () const
void GetTransToDisp (MAT3X3 ViewToDisp, MAT3X3 DispToView) const
ERRVALUE GetTransToMap (TRANS2D_MAPGEN &trans, bool dooutput, const GRE_GROUP *group=0) const
bool GetUseAntialiasing () const
VIEWFLAGS GetViewFlags () const
int GetViewNum () const
GRE_VIEWPOINT3DGetViewPoint3D () const
void GetVisibleExtents (DRECT2D &extents, bool UseNext=false) const
bool GetWireframeMode () const
const double & GetZoom () const
const double & GetZoomUsed () const
 GRE_VIEW ()
bool Has3D () const
bool HasObjects () const
bool HighlightElementsByPoint (const DPOINT2D &pt, bool PointInDisplayCoords, GRE::HIGHLIGHTMODE HighlightMode=GRE::HIGHLIGHTMODE_NotSet)
bool Is3D () const
bool IsAllowedDiffZoom () const
bool IsBeingDrawn () const
bool IsBeingRestored () const
bool IsGeoLocked () const
bool IsGroupVisible (const GRE_GROUP *group) const
bool IsLayerVisible (const GRE_LAYER *layer) const
bool IsLocator () const
bool IsRedrawDisabled () const
void LegendEnableRedraw (bool enable)
UINT8 LegendGetShowMode () const
void LegendHideAllLegends ()
void LegendRedraw (bool updatesizes=false)
void LegendSetShowLayerTypeIcon (bool ShowLayerType)
void LegendSetShowMode (UINT8 ShowMode)
void LegendSetVisiblityIndicator (UINT8 VisInd)
void LegendShowAllLegends ()
void NotifyDrawElementBegin (GRE_LAYER *layer, const RVC::ELEMENT &element)
void NotifyDrawElementEnd (GRE_LAYER *layer, const RVC::ELEMENT &element)
void NotifyExposure (const LRECT2D &rect)
RENDERBUFFEROverlayCreate (bool AddToFront=false)
void OverlayDestroy (RENDERBUFFER *&pRenderBuffer)
ERRVALUE PanToLayerElement (GRE_LAYER *layer, ELEMTYPE ElemType, INT32 ElemNum, GRE::DRAWFLAGS drawflags=GRE::DRAWFLAG_None)
void ResetCancel ()
ERRVALUE Restore (const LRECT2D *rect=0, bool CopyMemory=true)
void RestoreFromBuffers ()
ERRVALUE RestoreFromMemory (bool CopyMemory=false)
ERRVALUE SaveSnapshotToRaster () const
void ScalePosClearCoord (COORDSOURCE CoordSource=COORDSOURCE_None)
void ScalePosDisplayCoord (COORDSOURCE CoordSource, const DPOINT2D &point, const SPATREF::COORDREFSYS &PointCRS)
const SPATREF::COORDREFSYSScalePosGetCoordRefSys (int idx) const
void ScalePosGetCoordString (int idx, const DPOINT2D &point, MISTRING &string) const
DEGTOSTRFLAGS ScalePosGetLatLonFormat (int idx) const
bool ScalePosIsPosVisible (int idx) const
void ScalePosSetCoordRefSys (int idx, const SPATREF::COORDREFSYS &CoordRefSys)
void ScalePosSetCoordSource (COORDSOURCE CoordSource)
void ScalePosSetLatLonFormat (int idx, DEGTOSTRFLAGS LatLonFormat)
void ScalePosSetPosVisible (int idx, bool visible)
void ScalePosSetVisible (bool visible)
DEPRECATED void SetActiveColor (const COLOR &color)
void SetAutoRedrawSolid (bool AutoRedrawSolid)
DEPRECATED void SetBackgroundColor (const COLOR &color)
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 SetDrawingArea (Widget da)
void SetDrawingAreaSize (INT32 width, INT32 height)
void SetDrawingDevice (MGD::DEVICE *gdisp)
void SetDrawWireframe3D (bool DrawWireframe)
void SetEditCustomFunc (void(*EditCustomFunc)(GRE_VIEW *))
void SetGeoLock (const GRE_GEOLOCKSETTINGS &GeoLockSettings)
void SetGeoLocked (bool GeoLocked=true, bool AutoScale=true)
DEPRECATED void SetHighlightColor (const COLOR &color)
void SetInputFocusTo ()
void SetMargin (double MarginMeters)
void SetMessageVisible (bool visible)
void SetNeedsRedraw ()
void SetNextPosn (const VIEWPOSN &NextPosn, bool redraw=true)
void SetOutputCellSize (double xs, double ys)
void SetOutputCellSize (double s)
void SetPadPixels (int pp)
void SetPreviousView ()
void SetPreviousZoom ()
void SetProjAccur (GRE_PROJACCUR ProjAccur)
int SetScale (double NewMapScale, bool redraw=true)
int SetScaleOneToOne (GRE_LAYER *ScaleRefLayer, bool redraw=true)
int SetScaleOneToOne (bool redraw=true, bool OneToOne=true)
void SetStatusBar (GRE_MFC_STATUSBAR &StatusBar)
void SetStatusHandle (MSTATUSHANDLE StatusHandle)
void SetStopDrawOnError (bool StopDrawOnError=true)
void SetThinLineWidthHinting (bool Hint)
void SetUseAntialiasing (bool Antialias)
void SetViewFlags (VIEWFLAGS viewflags, bool redraw=false)
bool SetViewFromGeoLock (const GRE_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 ()
void ToolAttach (GRE_TOOL *tool)
GRE_TOOLToolFindByName (const char *toolname) const
GRE_TOOLToolGetActive () const
bool ToolIsActive (const char *toolname) const
bool ToolIsActive (GRE_TOOL *tool) const
void ToolResume ()
int ToolSet (const char *toolname)
void ToolSet (GRE_TOOL *tool)
void ToolSetDefault ()
int ToolSuspend ()
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)
ERRVALUE UpdateExtents ()
void UpdateLastPosn ()
void UpdateMessage (const MISTRING &string) const
int UpdatePosition ()
void UpdateScriptUI ()
void UpdateSize ()
void UpdateTypeName ()
bool UseSeparateRenderDevices () const
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)
virtual ~GRE_VIEW ()

Static Public Member Functions

bool EditGlobalSettings (MDLGPARENT dlgparent)
GRE_VIEWFindNextOfGroup (const GRE_GROUP *group, GRE_VIEW *view=0)
GRE_VIEWFindNextOfLayer (const GRE_LAYER *layer, GRE_VIEW *view=0)
bool GetDrawLayerOnUnhide ()
int GetGlobalAutoRedrawDelay ()
const GLOBALOPTIONSGetGlobalOptions ()
bool GetRedrawOnAnyChange ()
UINT8 GetStereoMode ()
double GetStereoMonitorSeparation ()
double GetStereoOpticalSeparation ()
const STEREOPARMGetStereoParm ()
bool GetUpdateAfterDrawLayer ()
bool GetZoomPanWaitForRMB ()
void SetEnableTransparency (bool EnableTransparency)
void SetGlobalAutoRedrawDelay (int AutoRedrawDelay)
void SetGlobalOptions (const GLOBALOPTIONS &options)
void SetGlobalZoomPanWaitForRMB (bool ZoomPanWaitForRMB)
void SetRedrawOnAnyChange (bool RedrawOnAnyChange)
void SetTrackCursor (bool TrackCursor)
void SetUpdateAfterDrawLayer (bool UpdateAfterDrawLayer)
void SMLClassInstall (SMLCONTEXT *context)

Private Member Functions

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 ()

Member Enumeration Documentation

enum GRE_VIEW::COLORUSE
 

Enumeration values:
COLORUSE_Background 
COLORUSE_HighlightElem 
COLORUSE_ActiveElem 
COLORUSE_DataTipElem 
COLORUSE_COUNT 

Definition at line 645 of file view.h.

enum GRE_VIEW::COORDSOURCE
 

Enumeration values:
COORDSOURCE_None 
COORDSOURCE_Mouse 
COORDSOURCE_ViewCenter 
COORDSOURCE_Entered 
COORDSOURCE_GPS 
COORDSOURCE_COUNT 

Definition at line 636 of file view.h.

enum GRE_VIEW::CREATEFLAGS
 

Flags for view creation.

Enumeration values:
CREATEFLAG_None 
CREATEFLAG_NoRenderSeparate  Don't render to separate memory buffers.
CREATEFLAG_NoCallCreateCB  Don't call callback list when object created.
CREATEFLAG_Temporary  Object is temporary.
CREATEFLAG_NoCloseOption  Don't include "Close" option on view menu.
CREATEFLAG_DestroyOnClose  Destroy view when View/Close selected.
CREATEFLAG_NoSelectTool  Don't add "Select" tool.
CREATEFLAG_NoLegendView  Don't create LegendView.
CREATEFLAG_NoStdTools  Don't add any standard tools.
CREATEFLAG_NoDftAddIcons  Don't put default "add" icon(s) on toolbar.
CREATEFLAG_NoCancelButton  Don't put "Cancel" button at bottom of window.
CREATEFLAG_NoSkipButton  Don't put "Skip" button at bottom of window.
CREATEFLAG_NoRedrawButton  Don't put "Redraw" button at bottom of window.
CREATEFLAG_NoToolBoxTool  Don't add "ToolBox" tool.
CREATEFLAG_NoStatusLine  Don't create "status" line.
CREATEFLAG_NoIconBar  Don't create iconbar.
CREATEFLAG_NoDftDrawIcons  Don't create default "draw" icons when creating window.
CREATEFLAG_NoDftViewIcons  Don't create default "view" icons when creating window.
CREATEFLAG_NoScalePosLine  Don't create zoom/scale/position line at bottom of view window.
CREATEFLAG_NoScrollbars  Don't create scroll bars.
CREATEFLAG_Locator  Create locator view.
CREATEFLAG_3D  View is 3D.
CREATEFLAG_Hardcopy  Create "hardcopy" view.
CREATEFLAG_StereoLeft  Create "left" stereo view.
CREATEFLAG_StereoRight  Create "right" stereo view.
CREATEFLAG_DialogModal  View is contained in modal dialog.
CREATEFLAG_AllowGeoLock  Allow GeoLocking.

Definition at line 606 of file view.h.

enum GRE_VIEW::DATATIPSELECTION
 

Enumeration values:
DATATIPSELECTION_FromView  Use selection set by view.
DATATIPSELECTION_None  No DataTips.
DATATIPSELECTION_ActiveLayer  Select for active layer only.
DATATIPSELECTION_AllLayers  Select for all layers.
DATATIPSELECTION_AllVisible  Select for all 'visible' layers.
DATATIPSELECTION_AutoScale  Auto select based on layer scale ranges.

Definition at line 653 of file view.h.


Constructor & Destructor Documentation

GRE_VIEW::GRE_VIEW  ) 
 

Default constructor.

Performs initialization only, must use one of the Create methods to actually create a usable GRE_VIEW.

virtual GRE_VIEW::~GRE_VIEW  )  [virtual]
 

Destructor.


Member Function Documentation

void GRE_VIEW::AddDftViewIcons UINT32  flags = 0  ) 
 

Add default "view" icons (previous, zoom in, zoom out, zoom 1X, etc).

Parameters:
flags  MDISPICONVIEW_... flags for desired icons

void GRE_VIEW::AddDrawIcons  ) 
 

Add default "drawing" icons (redraw, skip, stop).

Widget GRE_VIEW::AddIconRowItems const BUTTONITEM items,
const char *  icongroup = 0,
void *  cbdata = 0,
void *  userdata = 0
 

Add icon buttons to icon row.

Parameters:
items  Items to add
icongroup  Icon group
cbdata  Button item callback data if NULL in item
userdata  Button item userdata if NULL in item

void GRE_VIEW::AddMacroScriptIcons  ) 
 

Add icon pushbuttons to toolbar for MacroScripts.

void GRE_VIEW::AddMacroScriptMenuItems  ) 
 

Add menu items for MacroScripts.

ERRVALUE GRE_VIEW::AddMenuItemsOptions const MENUITEM newitems  ) 
 

Add additional items to "Options" menu (must be added before menubar created).

Parameters:
newitems  Array of items to add, terminated by null item

void GRE_VIEW::AddToolIcons bool  addscripts = true  ) 
 

Add icon togglebuttons to toolbar for all defined tools.

Parameters:
addscripts  Add ToolScripts and MacroScripts to toolbar

void GRE_VIEW::AttachGroupView GRE::GROUPVIEW groupview  ) 
 

Attach GROUPVIEW instance.

void GRE_VIEW::AttachLayerView GRE::LAYERVIEW layerview  ) 
 

Attach LAYERVIEW instance.

void GRE_VIEW::CancelDrawing int  err = EUserCancel  )  [inline]
 

Cancel drawing of this view, usually done within callback.

Parameters:
err  Error value to set.

Definition at line 950 of file view.h.

void GRE_VIEW::ClearMessage  )  const
 

Clear view's message line.

void GRE_VIEW::ClearPreviousViewList  )  [inline]
 

Clear previous view list.

Definition at line 959 of file view.h.

bool GRE_VIEW::ContainsLayer const GRE_LAYER layer  )  const
 

Determine if view contains specified layer.

Parameters:
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.

Returns:
converted value.
Parameters:
layer  Layer to use for scale
value  Value to convert
iunits  Input units (SCREENUNIT_...)
ounits  Output units (SCREENUNIT_...)

ERRVALUE GRE_VIEW::Create GRE_VIEWABLE viewable,
int  iwidth,
int  iheight,
CREATEFLAGS  createflags = CREATEFLAG_None
 

Default constructor.

Widget GRE_VIEW::CreateMenuBar Widget  form  ) 
 

Create menubar with default set of items.

Returns:
RowColumn widget for menubar.
Parameters:
form  Form to contain menubar

Widget GRE_VIEW::CreateMenuBar Widget  form,
MENUBARITEM menubar
 

Create menubar with specified set of items.

Returns:
RowColumn widget for menubar.
Parameters:
form  Form to contain menubar
menubar  Menu bar items

ERRVALUE GRE_VIEW::CreateX GRE_VIEWABLE viewable,
Widget  pwidget,
Arg *  arglist,
int  argcount,
int  iwidth,
int  iheight,
const char *  sizefield = 0,
CREATEFLAGS  createflags = CREATEFLAG_None,
const SAVESETTINGS pSettings = 0
 

Parameters:
sizefield  Field from .ini for retrieving window size

DATATIPSELECTION GRE_VIEW::DataTipGetSelection  )  const [inline]
 

Get DataTip selection mode.

Definition at line 1016 of file view.h.

ERRVALUE GRE_VIEW::DataTipGetString const DPOINT2D point,
MISTRING string,
GRE_FIND_FLAGS  findflags,
int  maxlines = 0,
DATATIPSELECTION  selection = DATATIPSELECTION_FromView
 

Get DataTip string from specified point.

Parameters:
point  Point to obtain DataTip for
string  String to fill in, will be cleared first
findflags  GRE_FIND_ViewCoords or GRE_FIND_DisplayCoords
maxlines  Approximate maximum number of lines, 0 for no maximum

void GRE_VIEW::DataTipSetDelay INT32  delay  ) 
 

Set DataTip popup delay.

Parameters:
delay  DataTip popup delay in milliseconds

void GRE_VIEW::DataTipSetPixelDelta int  PixelDelta  ) 
 

Set distance cursor must move to hide DataTip.

Parameters:
PixelDelta  Movement distance in screen pixels

void GRE_VIEW::DataTipSetSelection DATATIPSELECTION  selection  )  [inline]
 

Set DataTip selection mode.

Does not affect currently visible DataTip if any.

Parameters:
selection  Selection mode to set

Definition at line 1040 of file view.h.

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.

Definition at line 1056 of file view.h.

void GRE_VIEW::DetachGroupView GRE::GROUPVIEW groupview  ) 
 

Detach GROUPVIEW instance.

void GRE_VIEW::DetachLayerView GRE::LAYERVIEW layerview  ) 
 

Detach LAYERVIEW instance.

void GRE_VIEW::DisableHotKeys  )  [inline]
 

Disable standard hotkeys for this view.

Definition at line 1070 of file view.h.

void GRE_VIEW::DisableRedraw  )  [inline]
 

Disable redraw for this view.

Definition at line 1074 of file view.h.

ERRVALUE GRE_VIEW::Draw  )