Layer drawing context. More...
#include <gre/layerdc.h>

Public Member Functions | |
| LAYERDC (GRE::LAYERSECTION *pLayerSection, RENDERTARGET content, GRE::DRAWFLAGS drawflags=GRE::DRAWFLAG_None) | |
| LAYERDC (GRE::VIEW *view, MGD::DEVICE *pDevice, const TRANS2D_MAPGEN &ObjectToDevice, GRE::DRAWFLAGS drawflags=GRE::DRAWFLAG_None) | |
| LAYERDC (LAYER *layer, GRE::VIEW *view, MGD::DEVICE *pDevice=0, GRE::DRAWFLAGS drawflags=GRE::DRAWFLAG_None, const TRANS2D_MAPGEN *pTransObjectToDevice=0) | |
| virtual | ~LAYERDC () |
| void | CalcPointDisplacedDualZ (DPOINT3D &ptDevice, DPOINT2D &ptDisplacedL, DPOINT2D &ptDisplacedR) const |
| void | CalcPointDisplacedLeftZ (DPOINT3D &ptDevice, DPOINT2D &ptDisplaced) const |
| void | CalcPointDisplacedRightZ (DPOINT3D &ptDevice, DPOINT2D &ptDisplaced) const |
| bool | CanDrawLayer () const |
| bool | CheckColorHighlight (COLOR &color, const RVC::ELEMENT &element, const UNSIGNEDSET *pHighlightSet=0) const |
| bool | CheckColorLock (MGD::COLORLOCK &colorlock, ELEMTYPE ElemType, ELEMNUM ElemNum, const UNSIGNEDSET *pHighlightSet=0) |
| bool | CheckColorLock (MGD::COLORLOCK &colorlock, const RVC::ELEMENT &element, const UNSIGNEDSET *pHighlightSet=0) |
| bool | CheckColorLock (MGD::COLORLOCK &colorlock) |
| bool | CheckColorOverride (COLOR &color, const RVC::ELEMENT &element, const UNSIGNEDSET *pHighlightSet=0) const |
| bool | CheckColorOverride (COLOR &color) const |
| void | ClearAllDrawnSets () |
| DEPRECATED_MSG ("Use DrawLineObject2D") int DrawLineClipped2D(const POLYLINE &lineObject) const | |
| int | DrawLine (const RVC::ELEMENT &element, const POLYLINE &lineObject, LINESTYLE &LineStyle, RVC::STYLE *pObjStyle=0, DRAWFLAGS drawflags=DRAWFLAG_None, int StyleScriptSeg=-1) |
| DEPRECATED int | DrawLineClipped3D (const POLYLINE &lineObject, bool DensifyOnSurface=true) const |
| int | DrawLineDevice2D (const POLYLINE &lineDevice) const |
| int | DrawLineObject (const POLYLINE &lineObject, LINESTYLE &LineStyle, RVC::STYLE *pObjStyle=0) |
| int | DrawLineObject2D (const POLYLINE &lineObject) const |
| int | DrawLineObject3D (const POLYLINE &lineObject, bool DensifyOnSurface=true) const |
| int | DrawLines (const RVC::ELEMENT &element, const POLYLINELIST &linesObject, LINESTYLE &LineStyle, RVC::STYLE *pObjStyle=0, DRAWFLAGS drawflags=DRAWFLAG_None, int StyleScriptSeg=-1) |
| bool | DrawManagedPointSymbols (const RVC::ELEMENT &element) |
| int | DrawPoint (const RVC::ELEMENT &element, const DPOINT3D &ptObject, POINTSTYLE &PointStyle, RVC::STYLE *pObjStyle=0, DRAWFLAGS drawflags=DRAWFLAG_None, int StyleScriptSeg=-1) |
| void | DrawPointDevice2D (DPOINT3D &ptDevice) |
| int | DrawPointObject (const DPOINT3D &ptObject, POINTSTYLE &PointStyle, RVC::STYLE *pObjStyle=0, const RVC::STYLEPATTERN_BASE *pPatternPoint=0) |
| bool | DrawPointObject2D (const DPOINT3D &ptObject) |
| int | DrawPoints (const RVC::ELEMENT &element, const POLYLINE &ptsObject, POINTSTYLE &PointStyle, RVC::STYLE *pObjStyle=0, DRAWFLAGS drawflags=DRAWFLAG_None, int StyleScriptSeg=-1) |
| int | DrawPolygons (const RVC::ELEMENT &element, const REGION2D &rgnObject, POLYSTYLE &PolyStyle, RVC::STYLE *pObjStyle=0, DRAWFLAGS drawflags=DRAWFLAG_None, int StyleScriptSeg=-1) |
| int | DrawRegionDevice2D (const REGION2D &rgnDevice, POLYSTYLE &PolyStyle, RVC::STYLE *pObjStyle=0) |
| int | DrawRegionObject (const REGION2D &rgnObject, POLYSTYLE &PolyStyle, RVC::STYLE *pObjStyle=0) |
| int | DrawRegionObject2D (const REGION2D &rgnObject) const |
| int | DrawRegionObject3D (const REGION2D &rgnObject) const |
| int | DrawSegment3D (const DPOINT3D &ptObject1, const DPOINT3D &ptObject2) const |
| int | DrawSegmentDevice2D (double p1x, double p1y, double p2x, double p2y) const |
| int | DrawSegmentDevice2D (const DPOINT3D &ptDevice1, const DPOINT3D &ptDevice2) const |
| int | DrawSubRegion (const RVC::ELEMENT &element, const SUBREGION2D &srObject, POLYSTYLE &PolyStyle, RVC::STYLE *pObjStyle=0, DRAWFLAGS drawflags=DRAWFLAG_None, int StyleScriptSeg=-1) |
| int | DrawSubRegionDevice2D (const SUBREGION2D &srDevice) |
| int | DrawSubRegionDevice2D (const SUBREGION2D &srDevice, POLYSTYLE &style, RVC::STYLE *pObjStyle=0) |
| int | DrawSubRegionObject (const SUBREGION2D &srObject, POLYSTYLE &style, RVC::STYLE *pObjStyle=0) |
| int | DrawSubRegionObject3D (const SUBREGION2D &srObject) const |
| ERRVALUE | DrawWireframeFlat (const REGION2D &rgnObject) const |
| bool | Fill3dFlatPolygon (const DPOINT3D *ptsObject, INT32 numPoints) const |
| bool | Fill3dTriangle (const DPOINT3D *tp[3]) const |
| int | FillSubRegionDevice2D (const SUBREGION2D &srDevice) |
| double | Get3dDepthScale () const |
| GRE::SCENE3D & | Get3dScene () |
| const GRE::SCENE3D & | Get3dScene () const |
| STEREOVIEW | Get3dStereoView () const |
| double | Get3dSurfaceIncrement () const |
| double | Get3dZScale () const |
| const REGION2D & | GetClipRegion () const |
| double | GetDesignScale () const |
| const LRECT2D & | GetDeviceRectUsed () const |
| GRE::DRAWFLAGS | GetDrawFlags () const |
| MGD::CONTEXT * | GetDrawingContext () const |
| MGD::DEVICE * | GetDrawingDevice () const |
| double | GetDrawingScale () const |
| UNSIGNEDSET * | GetElemDrawnSet (ELEMTYPE ElemType=ELEMTYPE_All) const |
| LAYER * | GetLayer () const |
| GRE::LAYERSECTION * | GetLayerSection () |
| const GRE::LAYERSECTION * | GetLayerSection () const |
| GRE::LAYERVIEW * | GetLayerView () |
| const GRE::LAYERVIEW * | GetLayerView () const |
| bool | GetNoDrawActive () const |
| const DRECT2D & | GetObjectClipRect () const |
| const DPOINT2D & | GetPixelSizeMM () const |
| GRE::RENDERTARGET | GetRenderTarget () const |
| double | GetRotationAngle () const |
| double | GetRotationCos () const |
| double | GetRotationSin () const |
| bool | GetStereoInterlaceStartRight () const |
| const STEREOSHIFT & | GetStereoShift () const |
| LAYER_SURFACE * | GetSurfaceLayer () const |
| ERRVALUE | GetSurfaceZ (const DPOINT2D &spoint, double &z, bool DoSearch) const |
| ERRVALUE | GetSurfaceZ (DPOINT3D *ptsObject, INT32 NumPoints) const |
| ERRVALUE | GetSurfaceZ (POLYLINE &plObject) const |
| const TRANS2D_MAPGEN & | GetTransLayerDevice () const |
| const TRANS2D_MAPGEN & | GetTransLayerSurface () const |
| GRE::VIEW * | GetView () const |
| bool | HasSurfaceLayer () const |
| ERRVALUE | ImageDraw2D (SPATMOD::IMAGE::STAGE *pStageInput, const LRECT2D *SectionRect=0, bool bForceAlphaBlend=false) const |
| ERRVALUE | ImageInsertResampleFilter (SPATMOD::IMAGE::STAGE_AUTOPTR &PtrStage, SPATMOD::IMAGE::RESAMPLEMETHOD ResampleMethod=SPATMOD::IMAGE::RESAMPLEMETHOD_Nearest) const |
| ERRVALUE | ImageInsertResampleFilterStereo2D (SPATMOD::IMAGE::STAGE_AUTOPTR &PtrStage, SPATMOD::IMAGE::STAGE_AUTOPTR &PtrStageTerrain, SPATMOD::IMAGE::RESAMPLEMETHOD ResampleMethod=SPATMOD::IMAGE::RESAMPLEMETHOD_Nearest) const |
| ERRVALUE | ImageInsertZoomFilter (SPATMOD::IMAGE::STAGE_AUTOPTR &PtrStage, double *pZoomUsed=0) const |
| bool | Is3D () const |
| bool | IsHidden () const |
| bool | IsManagingPointSymbols () const |
| bool | IsStereo () const |
| bool | IsSurfaceUsed () const |
| void | NotifyDrawElementBegin (ELEMTYPE ElemType, ELEMNUM ElemNum) const |
| void | NotifyDrawElementBegin (const RVC::ELEMENT &element) const |
| void | NotifyDrawElementEnd (ELEMTYPE ElemType, ELEMNUM ElemNum) const |
| void | NotifyDrawElementEnd (const RVC::ELEMENT &element) const |
| void | Set3dElemScaled (bool IsScaled) |
| void | Set3dStereoView (STEREOVIEW StereoView) |
| void | SetDrawFlags (GRE::DRAWFLAGS drawflags) |
| void | SetDrawingDevice (MGD::DEVICE *pDevice) |
| void | SetRenderTarget (RENDERTARGET RenderTarget) |
| bool | SetStereoLeft () |
| bool | SetStereoRight () |
| void | SetStyleBorder (const POLYSTYLE &BorderStyle, RVC::STYLE *pObjStyle=0) |
| void | SetStyleFill (POLYSTYLE &FillStyle, RVC::STYLE *pObjStyle=0) |
| bool | SetStyleLine (LINESTYLE &LineStyle, RVC::STYLE *pObjStyle=0, bool TestMultiPass=false) |
| void | SetStylePoint (POINTSTYLE &PointStyle, RVC::STYLE *pObjStyle=0, const RVC::STYLEPATTERN_BASE *pPatternPoint=0) |
| void | SetStyleScriptContext (GRE::SCRIPTCONTEXT_STYLE *pStyleSC) |
| ERRVALUE | SetupStereo () |
| int | TransPoint3D (DPOINT3D &pt3d) const |
| ERRVALUE | TransToDevice (POLYLINE &polyline) const |
Layer drawing context.
Contains information needed to actually draw layer on a particular view.
| GRE::LAYERDC::LAYERDC | ( | LAYER * | layer, | |
| GRE::VIEW * | view, | |||
| MGD::DEVICE * | pDevice = 0, |
|||
| GRE::DRAWFLAGS | drawflags = GRE::DRAWFLAG_None, |
|||
| const TRANS2D_MAPGEN * | pTransObjectToDevice = 0 | |||
| ) |
Construct using layer, view and drawing device.
If transformation is provided, a private LAYERVIEW instance will be created with the specified transformation. Typically this is done only in internal GRE implementations.
| layer | Layer, must not be NULL | |
| view | View, should not be NULL | |
| pTransObjectToDevice | Optional object/device transformation |
| GRE::LAYERDC::LAYERDC | ( | GRE::VIEW * | view, | |
| MGD::DEVICE * | pDevice, | |||
| const TRANS2D_MAPGEN & | ObjectToDevice, | |||
| GRE::DRAWFLAGS | drawflags = GRE::DRAWFLAG_None | |||
| ) |
Construct using view, drawing device and transformation.
Does not need a layer, but you need to calculate the transformation and pass it in.
| view | View, cannot be NULL | |
| pDevice | Drawing device, cannot be NULL |
| GRE::LAYERDC::LAYERDC | ( | GRE::LAYERSECTION * | pLayerSection, | |
| RENDERTARGET | content, | |||
| GRE::DRAWFLAGS | drawflags = GRE::DRAWFLAG_None | |||
| ) |
| pLayerSection | Pointer to layer section, must remain valid until LAYERDC is destroyed | |
| content | Rendering target content |
| virtual GRE::LAYERDC::~LAYERDC | ( | ) | [virtual] |
Destructor.
| void GRE::LAYERDC::CalcPointDisplacedDualZ | ( | DPOINT3D & | ptDevice, | |
| DPOINT2D & | ptDisplacedL, | |||
| DPOINT2D & | ptDisplacedR | |||
| ) | const |
Calculate dual displaced points from non-displaced for overhead stereo view.
| ptDevice | Point in device coordinates, Z value will be set from surface if needed | |
| ptDisplacedL | Left displaced point in device coordinates returned | |
| ptDisplacedR | Right displaced point in device coordinates returned |
Calculate left view displaced point from non-displaced for overhead stereo view.
| ptDevice | Point in device coordinates, Z value will be set from surface if needed | |
| ptDisplaced | Displaced point in device coordinates |
Calculate right view displaced point from non-displaced for overhead stereo view.
| ptDevice | Point in device coordinates, Z value will be set from surface if needed | |
| ptDisplaced | Displaced point in device coordinates |
| bool GRE::LAYERDC::CanDrawLayer | ( | ) | const |
Determine if possible to draw layer.
| bool GRE::LAYERDC::CheckColorHighlight | ( | COLOR & | color, | |
| const RVC::ELEMENT & | element, | |||
| const UNSIGNEDSET * | pHighlightSet = 0 | |||
| ) | const |
Check if element is active/highlighted and get color if so.
| color | Color, will be updated if method returns true | |
| element | Element type/number | |
| pHighlightSet | Highlight set, if 0 will get from layer |
| bool GRE::LAYERDC::CheckColorLock | ( | MGD::COLORLOCK & | colorlock, | |
| ELEMTYPE | ElemType, | |||
| ELEMNUM | ElemNum, | |||
| const UNSIGNEDSET * | pHighlightSet = 0 | |||
| ) | [inline] |
Check if requires a color lock, set color and lock if so.
| colorlock | Color lock passed/returned | |
| ElemType | Element type | |
| ElemNum | Element number | |
| pHighlightSet | Highlight set, if 0 will get from layer |
| bool GRE::LAYERDC::CheckColorLock | ( | MGD::COLORLOCK & | colorlock, | |
| const RVC::ELEMENT & | element, | |||
| const UNSIGNEDSET * | pHighlightSet = 0 | |||
| ) |
Check if requires a color lock for specific element, set color and lock if so.
| colorlock | Color lock passed/returned | |
| element | Element type/number | |
| pHighlightSet | Highlight set, if 0 will get from layer |
| bool GRE::LAYERDC::CheckColorLock | ( | MGD::COLORLOCK & | colorlock | ) |
Check if drawing flags require a color lock, set color and lock if so.
| colorlock | Color lock passed/returned |
| bool GRE::LAYERDC::CheckColorOverride | ( | COLOR & | color, | |
| const RVC::ELEMENT & | element, | |||
| const UNSIGNEDSET * | pHighlightSet = 0 | |||
| ) | const |
| color | Override color returned | |
| element | Element type/number | |
| pHighlightSet | Highlight set, if 0 will get from layer |
| bool GRE::LAYERDC::CheckColorOverride | ( | COLOR & | color | ) | const |
Check if need to override color based on drawing flags.
| color | Override color returned |
| void GRE::LAYERDC::ClearAllDrawnSets | ( | ) |
Clear all element "drawn" sets.
| GRE::LAYERDC::DEPRECATED_MSG | ( | "Use DrawLineObject2D" | ) | const [inline] |
< Line in layer object coordinates
| int GRE::LAYERDC::DrawLine | ( | const RVC::ELEMENT & | element, | |
| const POLYLINE & | lineObject, | |||
| LINESTYLE & | LineStyle, | |||
| RVC::STYLE * | pObjStyle = 0, |
|||
| DRAWFLAGS | drawflags = DRAWFLAG_None, |
|||
| int | StyleScriptSeg = -1 | |||
| ) |
| element | Element type/number | |
| lineObject | Line in layer object coordinates | |
| LineStyle | Line style, may be altered if necessary | |
| pObjStyle | Style object if needed for pattern | |
| drawflags | Additional drawing flags | |
| StyleScriptSeg | Script segment if styling by script, < 0 if not doing so |
| DEPRECATED int GRE::LAYERDC::DrawLineClipped3D | ( | const POLYLINE & | lineObject, | |
| bool | DensifyOnSurface = true | |||
| ) | const |
Translate, clip and draw line in 3D.
| lineObject | Line in layer object coordinates | |
| DensifyOnSurface | Densify to follow terrain surface if any |
| int GRE::LAYERDC::DrawLineDevice2D | ( | const POLYLINE & | lineDevice | ) | const |
Draw line already in "device" coordinates for 2D using currently set style.
| lineDevice | Line in "device" coordinates |
| int GRE::LAYERDC::DrawLineObject | ( | const POLYLINE & | lineObject, | |
| LINESTYLE & | LineStyle, | |||
| RVC::STYLE * | pObjStyle = 0 | |||
| ) |
Draw line in layer object coordinates for 2D or 3D.
| lineObject | Line in layer object coordinates | |
| LineStyle | Line style, may be altered if necessary | |
| pObjStyle | Style object if needed for pattern |
| int GRE::LAYERDC::DrawLineObject2D | ( | const POLYLINE & | lineObject | ) | const |
Draw line in layer object coordinates for 2D using currently set style.
| lineObject | Line in layer object coordinates |
| int GRE::LAYERDC::DrawLineObject3D | ( | const POLYLINE & | lineObject, | |
| bool | DensifyOnSurface = true | |||
| ) | const |
Draw line in layer object coordinates for 3D using currently set style.
| lineObject | Line in layer object coordinates | |
| DensifyOnSurface | Densify to follow terrain surface if any |
| int GRE::LAYERDC::DrawLines | ( | const RVC::ELEMENT & | element, | |
| const POLYLINELIST & | linesObject, | |||
| LINESTYLE & | LineStyle, | |||
| RVC::STYLE * | pObjStyle = 0, |
|||
| DRAWFLAGS | drawflags = DRAWFLAG_None, |
|||
| int | StyleScriptSeg = -1 | |||
| ) |
| element | Element type/number | |
| linesObject | Lines in layer object coordinates | |
| LineStyle | Line style, may be altered if necessary | |
| pObjStyle | Style object if needed for pattern | |
| drawflags | Additional drawing flags | |
| StyleScriptSeg | Script segment if styling by script, < 0 if not doing so |
| bool GRE::LAYERDC::DrawManagedPointSymbols | ( | const RVC::ELEMENT & | element | ) |
Draw "managed point" symbols associated with specified element.
| element | Element type/number |
| int GRE::LAYERDC::DrawPoint | ( | const RVC::ELEMENT & | element, | |
| const DPOINT3D & | ptObject, | |||
| POINTSTYLE & | PointStyle, | |||
| RVC::STYLE * | pObjStyle = 0, |
|||
| DRAWFLAGS | drawflags = DRAWFLAG_None, |
|||
| int | StyleScriptSeg = -1 | |||
| ) |
Translate and draw single point.
| element | Element type/number | |
| ptObject | Point in layer object coordinates | |
| PointStyle | Point style, may be altered if necessary | |
| pObjStyle | Style object if needed for pattern | |
| drawflags | Additional drawing flags | |
| StyleScriptSeg | Script segment if styling by script, < 0 if not doing so |
| void GRE::LAYERDC::DrawPointDevice2D | ( | DPOINT3D & | ptDevice | ) |
Draw single point in 2D without translating or clipping, using previously set style.
| ptDevice | Point in device coordinates, Z value will be set from surface if needed |
| int GRE::LAYERDC::DrawPointObject | ( | const DPOINT3D & | ptObject, | |
| POINTSTYLE & | PointStyle, | |||
| RVC::STYLE * | pObjStyle = 0, |
|||
| const RVC::STYLEPATTERN_BASE * | pPatternPoint = 0 | |||
| ) |
Draw single point in layer object coordinates for 2D or 3D.
| ptObject | Point in layer object coordinates | |
| PointStyle | Point style | |
| pObjStyle | Style object if needed for reading pattern | |
| pPatternPoint | Optional pattern |
| bool GRE::LAYERDC::DrawPointObject2D | ( | const DPOINT3D & | ptObject | ) |
Translate and draw single point in 2D, using previously set style.
| ptObject | Point in layer object coordinates |
| int GRE::LAYERDC::DrawPoints | ( | const RVC::ELEMENT & | element, | |
| const POLYLINE & | ptsObject, | |||
| POINTSTYLE & | PointStyle, | |||
| RVC::STYLE * | pObjStyle = 0, |
|||
| DRAWFLAGS | drawflags = DRAWFLAG_None, |
|||
| int | StyleScriptSeg = -1 | |||
| ) |
Translate and draw multiple points.
| element | Element type/number | |
| ptsObject | Points in layer object coordinates | |
| PointStyle | Point style, may be altered if necessary | |
| pObjStyle | Style object if needed for pattern | |
| drawflags | Additional drawing flags | |
| StyleScriptSeg | Script segment if styling by script, < 0 if not doing so |
| int GRE::LAYERDC::DrawPolygons | ( | const RVC::ELEMENT & | element, | |
| const REGION2D & | rgnObject, | |||
| POLYSTYLE & | PolyStyle, | |||
| RVC::STYLE * | pObjStyle = 0, |
|||
| DRAWFLAGS | drawflags = DRAWFLAG_None, |
|||
| int | StyleScriptSeg = -1 | |||
| ) |
Draw/fill polygons from region in layer object coordinates for 2D or 3D.
| element | Element type/number | |
| rgnObject | Region in layer object coordinates | |
| PolyStyle | Polygon style, may be altered if necessary | |
| pObjStyle | Style object if needed for pattern | |
| drawflags | Additional drawing flags | |
| StyleScriptSeg | Script segment if styling by script, < 0 if not doing so |
| int GRE::LAYERDC::DrawRegionDevice2D | ( | const REGION2D & | rgnDevice, | |
| POLYSTYLE & | PolyStyle, | |||
| RVC::STYLE * | pObjStyle = 0 | |||
| ) |
Draw/fill region already in device coordinates for 2D.
| rgnDevice | Region in device coordinates | |
| PolyStyle | Polygon style, may be altered if necessary | |
| pObjStyle | Style object if needed for pattern |
| int GRE::LAYERDC::DrawRegionObject | ( | const REGION2D & | rgnObject, | |
| POLYSTYLE & | PolyStyle, | |||
| RVC::STYLE * | pObjStyle = 0 | |||
| ) |
Draw/fill region in layer object coordinates for 2D or 3D.
| rgnObject | Region in layer object coordinates | |
| PolyStyle | Polygon style, may be altered if necessary | |
| pObjStyle | Style object if needed for pattern |
| int GRE::LAYERDC::DrawRegionObject2D | ( | const REGION2D & | rgnObject | ) | const |
Draw region outline from layer object coordinates for 2D using currently set style.
| rgnObject | Region in layer object coordinates |
| int GRE::LAYERDC::DrawRegionObject3D | ( | const REGION2D & | rgnObject | ) | const |
Draw region outline from layer object coordinates for 3D using currently set style.
| rgnObject | Region in layer object coordinates |
Clip and draw segment in 3D.
| ptObject1 | First point in layer object coordinates | |
| ptObject2 | Second point in layer object coordinates |
| int GRE::LAYERDC::DrawSegmentDevice2D | ( | double | p1x, | |
| double | p1y, | |||
| double | p2x, | |||
| double | p2y | |||
| ) | const [inline] |
Draw segment in device coordinates for 2D using currently set style.
| int GRE::LAYERDC::DrawSegmentDevice2D | ( | const DPOINT3D & | ptDevice1, | |
| const DPOINT3D & | ptDevice2 | |||
| ) | const |
Draw segment in device coordinates for 2D using currently set style.
| ptDevice1 | First point in layer object coordinates | |
| ptDevice2 | Second point in layer object coordinates |
| int GRE::LAYERDC::DrawSubRegion | ( | const RVC::ELEMENT & | element, | |
| const SUBREGION2D & | srObject, | |||
| POLYSTYLE & | PolyStyle, | |||
| RVC::STYLE * | pObjStyle = 0, |
|||
| DRAWFLAGS | drawflags = DRAWFLAG_None, |
|||
| int | StyleScriptSeg = -1 | |||
| ) |
Draw/fill subregion in layer object coordinates for 2D or 3D.
| element | Element type/number | |
| srObject | Subregion in layer object coordinates | |
| PolyStyle | Polygon style, may be altered if necessary | |
| pObjStyle | Style object if needed for pattern | |
| drawflags | Additional drawing flags | |
| StyleScriptSeg | Script segment if styling by script, < 0 if not doing so |
| int GRE::LAYERDC::DrawSubRegionDevice2D | ( | const SUBREGION2D & | srDevice | ) |
Draw subregion outline in device coordinates for 2D using currently set style.
| srDevice | Subregion in device coordinates |
| int GRE::LAYERDC::DrawSubRegionDevice2D | ( | const SUBREGION2D & | srDevice, | |
| POLYSTYLE & | style, | |||
| RVC::STYLE * | pObjStyle = 0 | |||
| ) |
Draw/fill subregion already in device coordinates for 2D.
| srDevice | Subregion in device coordinates | |
| style | Style for fill and/or border | |
| pObjStyle | Style object if needed for pattern |
| int GRE::LAYERDC::DrawSubRegionObject | ( | const SUBREGION2D & | srObject, | |
| POLYSTYLE & | style, | |||
| RVC::STYLE * | pObjStyle = 0 | |||
| ) |
Draw/fill subregion in layer object coordinates for 2D.
| srObject | Subregion in layer object coordinates | |
| style | Style for fill and/or border | |
| pObjStyle | Style object if needed for pattern |
| int GRE::LAYERDC::DrawSubRegionObject3D | ( | const SUBREGION2D & | srObject | ) | const |
Draw subregion outline in 3D using currently set style.
| srObject | Subregion in layer object coordinates |
Draw "flat" wireframe of specified region.
| rgnObject | Region in layer object coordinates |
Fill 3D flat polygon.
| ptsObject | Polygon vertices in layer object coordinates | |
| numPoints | Number of vertices |
| bool GRE::LAYERDC::Fill3dTriangle | ( | const DPOINT3D * | tp[3] | ) | const |
Fill 3D triangle.
| tp | Pointers to triangle vertices with layer object coordinates |
| int GRE::LAYERDC::FillSubRegionDevice2D | ( | const SUBREGION2D & | srDevice | ) |
Fill subregion in device coordinates for 2D using currently set style.
| srDevice | Subregion in device coordinates |
| double GRE::LAYERDC::Get3dDepthScale | ( | ) | const [inline] |
Get depth scaling, multiplied by depth to get drawing scale.
| GRE::SCENE3D& GRE::LAYERDC::Get3dScene | ( | ) | [inline] |
Get 3D scene containing 3D transformations.
| const GRE::SCENE3D& GRE::LAYERDC::Get3dScene | ( | ) | const [inline] |
Get 3D scene containing 3D transformations.
| STEREOVIEW GRE::LAYERDC::Get3dStereoView | ( | ) | const [inline] |
Get 3D stereo view setting.
| double GRE::LAYERDC::Get3dSurfaceIncrement | ( | ) | const [inline] |
Get increment in layer relative to once cell in surface layer.
| double GRE::LAYERDC::Get3dZScale | ( | ) | const [inline] |
Get 3D Z scaling.
| const REGION2D& GRE::LAYERDC::GetClipRegion | ( | ) | const [inline] |
Get clipping region in device coordinates.
| double GRE::LAYERDC::GetDesignScale | ( | ) | const [inline] |
Get design scale.
| const LRECT2D& GRE::LAYERDC::GetDeviceRectUsed | ( | ) | const [inline] |
Get device rectangle to be used for rendering.
| GRE::DRAWFLAGS GRE::LAYERDC::GetDrawFlags | ( | ) | const [inline] |
Get drawing flags.
| MGD::CONTEXT* GRE::LAYERDC::GetDrawingContext | ( | ) | const [inline] |
Get drawing device context.
| MGD::DEVICE* GRE::LAYERDC::GetDrawingDevice | ( | ) | const |
Get drawing device.
| double GRE::LAYERDC::GetDrawingScale | ( | ) | const [inline] |
Get scale at which layer is currently being drawn.
| UNSIGNEDSET* GRE::LAYERDC::GetElemDrawnSet | ( | ELEMTYPE | ElemType = ELEMTYPE_All |
) | const |
Get pointer to 'drawn set' based on specified element type and current target device.
| LAYER* GRE::LAYERDC::GetLayer | ( | ) | const [inline] |
Get layer.
| GRE::LAYERSECTION* GRE::LAYERDC::GetLayerSection | ( | ) | [inline] |
Get LAYERSECTION (non-const).
| const GRE::LAYERSECTION* GRE::LAYERDC::GetLayerSection | ( | ) | const [inline] |
Get LAYERSECTION (const).
| GRE::LAYERVIEW* GRE::LAYERDC::GetLayerView | ( | ) | [inline] |
Get LAYERVIEW (non-const).
| const GRE::LAYERVIEW* GRE::LAYERDC::GetLayerView | ( | ) | const [inline] |
Get LAYERVIEW (const).
| bool GRE::LAYERDC::GetNoDrawActive | ( | ) | const [inline] |
Determine whether to not draw "active" element.
| const DRECT2D& GRE::LAYERDC::GetObjectClipRect | ( | ) | const [inline] |
Get the clip rectangle in object coordinates.
| const DPOINT2D& GRE::LAYERDC::GetPixelSizeMM | ( | ) | const [inline] |
Get pixel size in millimeters.
| GRE::RENDERTARGET GRE::LAYERDC::GetRenderTarget | ( | ) | const [inline] |
Get target based on current drawing device.
| double GRE::LAYERDC::GetRotationAngle | ( | ) | const [inline] |
Get rotation angle.
| double GRE::LAYERDC::GetRotationCos | ( | ) | const [inline] |
Get rotation cosine.
| double GRE::LAYERDC::GetRotationSin | ( | ) | const [inline] |
Get rotation sine.
| bool GRE::LAYERDC::GetStereoInterlaceStartRight | ( | ) | const [inline] |
Determine if first row(column) of device is for right eye in interlaced stereo rendering.
| const STEREOSHIFT& GRE::LAYERDC::GetStereoShift | ( | ) | const [inline] |
Get terrain shift values for stereo rendering.
| LAYER_SURFACE* GRE::LAYERDC::GetSurfaceLayer | ( | ) | const [inline] |
Get surface layer for 3D draping.
Get surface Z coordinate for point.
| spoint | Point in surface object coordinates | |
| z | Z value returned | |
| DoSearch | Search around point if actual cell is null |
Get surface Z coordinates for array of points.
| ptsObject | Array of points with X/Y coordinates in layer associated with context | |
| NumPoints | Number of points |
Get surface Z coordinates for POLYLINE.
| plObject | 3D polyline in layer object coordinates |
| const TRANS2D_MAPGEN& GRE::LAYERDC::GetTransLayerDevice | ( | ) | const |
Get transformation from 'layer' to 'device' coordinates.
| const TRANS2D_MAPGEN& GRE::LAYERDC::GetTransLayerSurface | ( | ) | const [inline] |
Get transformation from 'layer' to 'surface' coordinates.
| GRE::VIEW* GRE::LAYERDC::GetView | ( | ) | const [inline] |
| bool GRE::LAYERDC::HasSurfaceLayer | ( | ) | const [inline] |
Determine if has surface layer.
| ERRVALUE GRE::LAYERDC::ImageDraw2D | ( | SPATMOD::IMAGE::STAGE * | pStageInput, | |
| const LRECT2D * | SectionRect = 0, |
|||
| bool | bForceAlphaBlend = false | |||
| ) | const |
Draw image in 2D.
| SectionRect | Section area to process | |
| bForceAlphaBlend | Force context for perform alpha blending |
| ERRVALUE GRE::LAYERDC::ImageInsertResampleFilter | ( | SPATMOD::IMAGE::STAGE_AUTOPTR & | PtrStage, | |
| SPATMOD::IMAGE::RESAMPLEMETHOD | ResampleMethod = SPATMOD::IMAGE::RESAMPLEMETHOD_Nearest | |||
| ) | const |
Insert image filter for resampling to display.
| PtrStage | Image stage to insert into | |
| ResampleMethod | Resampling method |
| ERRVALUE GRE::LAYERDC::ImageInsertResampleFilterStereo2D | ( | SPATMOD::IMAGE::STAGE_AUTOPTR & | PtrStage, | |
| SPATMOD::IMAGE::STAGE_AUTOPTR & | PtrStageTerrain, | |||
| SPATMOD::IMAGE::RESAMPLEMETHOD | ResampleMethod = SPATMOD::IMAGE::RESAMPLEMETHOD_Nearest | |||
| ) | const |
Insert image filter for resampling to display.
| PtrStage | Image stage to insert into | |
| PtrStageTerrain | Stage pointer for terrain, will be returned detached | |
| ResampleMethod | Resampling method |
| ERRVALUE GRE::LAYERDC::ImageInsertZoomFilter | ( | SPATMOD::IMAGE::STAGE_AUTOPTR & | PtrStage, | |
| double * | pZoomUsed = 0 | |||
| ) | const |
Insert image filter for zooming to display.
| PtrStage | Image stage to insert into | |
| pZoomUsed | Pointer to zoom value used returned, NULL if don't need |
| bool GRE::LAYERDC::Is3D | ( | ) | const [inline] |
Determine if drawing in 2D or 3D.
| bool GRE::LAYERDC::IsHidden | ( | ) | const [inline] |
Determine if layer is 'hidden' due to scale or other visibility setting.
| bool GRE::LAYERDC::IsManagingPointSymbols | ( | ) | const [inline] |
Determine if is managing point symbols.
| bool GRE::LAYERDC::IsStereo | ( | ) | const [inline] |
Determine if drawing "stereo" view.
| bool GRE::LAYERDC::IsSurfaceUsed | ( | ) | const [inline] |
Determine if surface (layer or flat) is being used.
Send notification before drawing element.
| void GRE::LAYERDC::NotifyDrawElementBegin | ( | const RVC::ELEMENT & | element | ) | const [inline] |
Send notification before drawing element.
Send notification after drawing element.
| void GRE::LAYERDC::NotifyDrawElementEnd | ( | const RVC::ELEMENT & | element | ) | const [inline] |
Send notification after drawing element.
| void GRE::LAYERDC::Set3dElemScaled | ( | bool | IsScaled | ) | [inline] |
Set whether current element is scaled when rendered in 3D.
| void GRE::LAYERDC::Set3dStereoView | ( | STEREOVIEW | StereoView | ) |
| void GRE::LAYERDC::SetDrawFlags | ( | GRE::DRAWFLAGS | drawflags | ) |
Set drawing flags.
| void GRE::LAYERDC::SetDrawingDevice | ( | MGD::DEVICE * | pDevice | ) |
Set drawing device.
| void GRE::LAYERDC::SetRenderTarget | ( | RENDERTARGET | RenderTarget | ) | [inline] |
Set render target.
| bool GRE::LAYERDC::SetStereoLeft | ( | ) |
Set for drawing left stereo view.
| bool GRE::LAYERDC::SetStereoRight | ( | ) |
Set for drawing right stereo view.
| void GRE::LAYERDC::SetStyleBorder | ( | const POLYSTYLE & | BorderStyle, | |
| RVC::STYLE * | pObjStyle = 0 | |||
| ) |
Set style for border, reading pattern if necessary.
| BorderStyle | Border style | |
| pObjStyle | Style object if needed for pattern |
| void GRE::LAYERDC::SetStyleFill | ( | POLYSTYLE & | FillStyle, | |
| RVC::STYLE * | pObjStyle = 0 | |||
| ) |
Set style for filling, reading pattern if necessary.
| FillStyle | Fill style | |
| pObjStyle | Style object if needed for pattern |
| bool GRE::LAYERDC::SetStyleLine | ( | LINESTYLE & | LineStyle, | |
| RVC::STYLE * | pObjStyle = 0, |
|||
| bool | TestMultiPass = false | |||
| ) |
Set style for line, reading pattern if necessary, with option to check for multipass.
| LineStyle | Line style | |
| pObjStyle | Style object if needed for pattern | |
| TestMultiPass | Perform multipass test before setting style |
| void GRE::LAYERDC::SetStylePoint | ( | POINTSTYLE & | PointStyle, | |
| RVC::STYLE * | pObjStyle = 0, |
|||
| const RVC::STYLEPATTERN_BASE * | pPatternPoint = 0 | |||
| ) |
| PointStyle | Point style | |
| pObjStyle | Style object if needed for reading pattern | |
| pPatternPoint | Optional pattern |
| void GRE::LAYERDC::SetStyleScriptContext | ( | GRE::SCRIPTCONTEXT_STYLE * | pStyleSC | ) | [inline] |
Set "style" script context.
| ERRVALUE GRE::LAYERDC::SetupStereo | ( | ) |
Determine if rendering stereo and setup if needed.
| int GRE::LAYERDC::TransPoint3D | ( | DPOINT3D & | pt3d | ) | const |
Translate 3D point from layer/object to display coordinates.
| pt3d | Point initially in layer/object coordinates, returned in display coordinates with canonical depth |
Translate POLYLINE to device coordinates.
Will perform terrain drape and stereo displacement if needed.
| polyline | Line initially in layer object coordinates |
1.6.1