Public Member Functions | List of all members
IViewDraw Struct Referenceabstract

DgnCore implements this interface to provide the display system for Viewports. More...

#include <IViewDraw.h>

Inheritance diagram for IViewDraw:
IDrawGeom IViewOutput

Public Member Functions

void SetToViewCoords (bool yesNo)
 Set the coordinate system temporarily to DgnCoordSystem::View. More...
 
void SetSymbology (UInt32 lineColorTBGR, UInt32 fillColorTBGR, int lineWidth, UInt32 linePattern)
 Set the active symbology for this IViewDraw. More...
 
void DrawGrid (bool doIsoGrid, bool drawDots, DPoint3dCR gridOrigin, DVec3dCR xVector, DVec3dCR yVector, UInt32 gridsPerRef, Point2dCR repetitions)
 Draw the grid matrix. More...
 
bool DrawSprite (ISprite *sprite, DPoint3dCP location, DPoint3dCP xVec, int transparency)
 Draw a sprite at a specific location. More...
 
void DrawTiledRaster (ITiledRaster *tiledRaster)
 Draw a Tiled Raster. More...
 
void DrawRaster2d (DPoint2d const points[4], int pitch, int numTexelsX, int numTexelsY, int enableAlpha, int format, byte const *texels, double zDepth, DPoint2dCP range)
 Draw a raster image in 2d. More...
 
void DrawRaster (DPoint3d const points[4], int pitch, int numTexelsX, int numTexelsY, int enableAlpha, int format, byte const *texels, DPoint3dCP range)
 Draw a raster image in 3d. More...
 
void DrawPointCloud (IPointCloudDrawParams *drawParams)
 Draw a 3D point cloud. More...
 
void DrawQvElem3d (QvElem *qvElem, int subElemIndex=0)
 Draw a QvElem that was previously creating using ICachedDraw. More...
 
void DrawQvElem2d (QvElem *qvElem, double zDepth, int subElemIndex=0)
 Draw a QvElem that was previously creating using ICachedDraw with the supplied display priority value. More...
 
void PushRenderOverrides (ViewFlags, CookedDisplayStyleCP=0)
 Push a change to the current view flags and/or display style for subsequent draw calls. More...
 
void PopRenderOverrides ()
 Pop a previous change to the view flags and/or display style. More...
 
- Public Member Functions inherited from IDrawGeom
ViewFlagsCP GetDrawViewFlags ()
 Get the current View Flags for this object. More...
 
void SetDrawViewFlags (ViewFlagsCP)
 Sets the current state of the ViewFlags for this context's output. More...
 
void ActivateMatSymb (ElemMatSymbCP matSymb)
 Set an ElemMatSymb to be the "active" ElemMatSymb for this IDrawGeom. More...
 
void ActivateOverrideMatSymb (OvrMatSymbCP ovrMatSymb)
 Set an ElemMatSymb to be the "active override" ElemMatSymb for this IDrawGeom. More...
 
void DrawLineString3d (int numPoints, DPoint3dCP points, DPoint3dCP range)
 Draw a 3D line string. More...
 
void DrawLineString2d (int numPoints, DPoint2dCP points, double zDepth, DPoint2dCP range)
 Draw a 2D line string. More...
 
void DrawPointString3d (int numPoints, DPoint3dCP points, DPoint3dCP range)
 Draw a 3D point string. More...
 
void DrawPointString2d (int numPoints, DPoint2dCP points, double zDepth, DPoint2dCP range)
 Draw a 2D point string. More...
 
void DrawShape3d (int numPoints, DPoint3dCP points, bool filled, DPoint3dCP range)
 Draw a closed 3D shape. More...
 
void DrawShape2d (int numPoints, DPoint2dCP points, bool filled, double zDepth, DPoint2dCP range)
 Draw a 2D shape. More...
 
void DrawArc3d (DEllipse3dCR ellipse, bool isEllipse, bool filled, DPoint3dCP range)
 Draw a 3D elliptical arc or ellipse. More...
 
void DrawArc2d (DEllipse3dCR ellipse, bool isEllipse, bool filled, double zDepth, DPoint2dCP range)
 Draw a 2D elliptical arc or ellipse. More...
 
void DrawBSplineCurve (MSBsplineCurveCR curve, bool filled)
 Draw a BSpline curve. More...
 
void DrawBSplineCurve2d (MSBsplineCurveCR curve, bool filled, double zDepth)
 Draw a BSpline curve as 2d geometry with display priority. More...
 
void DrawCurveVector (CurveVectorCR curves, bool isFilled)
 Draw a curve vector. More...
 
void DrawCurveVector2d (CurveVectorCR curves, bool isFilled, double zDepth)
 Draw a curve vector as 2d geometry with display priority. More...
 
void DrawSolidPrimitive (ISolidPrimitiveCR primitive)
 Draw a light-weight surface or solid primitive. More...
 
void DrawBSplineSurface (MSBsplineSurfaceCR)
 Draw a BSpline surface. More...
 
void DrawPolyface (PolyfaceQueryCR meshData, bool filled=false)
 
StatusInt DrawBody (ISolidKernelEntityCR, IFaceMaterialAttachmentsCP attachments=0, double pixelSize=0.0)
 Draw a BRep surface/solid entity from the solids kernel. More...
 
void DrawTextString (TextStringCR text, double *zDepth=0)
 Draw a series of Glyphs. More...
 
void DrawTorus (DPoint3dCR center, DVec3dCR vectorX, DVec3dCR vectorY, double majorRadius, double minorRadius, double sweepAngle, bool capped)
 Creates torus ISolidPrimitive from inputs and calls DrawSolidPrimitive. More...
 
void DrawCone (DPoint3dCR centerA, DPoint3dCR centerB, double radiusA, double radiusB, bool capped)
 Creates cone ISolidPrimitive from inputs and calls DrawSolidPrimitive. More...
 
void DrawSphere (DPoint3dCR center, RotMatrixCR axes, double radius)
 Creates sphere ISolidPrimitive from inputs and calls DrawSolidPrimitive. More...
 
void DrawBox (DVec3dCR primary, DVec3dCR secondary, DPoint3dCR basePoint, DPoint3dCR topPoint, double baseWidth, double baseLength, double topWidth, double topLength, bool capped)
 Creates box ISolidPrimitive from inputs and calls DrawSolidPrimitive. More...
 

Detailed Description

DgnCore implements this interface to provide the display system for Viewports.

Member Function Documentation

void DrawGrid ( bool  doIsoGrid,
bool  drawDots,
DPoint3dCR  gridOrigin,
DVec3dCR  xVector,
DVec3dCR  yVector,
UInt32  gridsPerRef,
Point2dCR  repetitions 
)

Draw the grid matrix.

Parameters
[in]doIsoGridDraw the isometric grid points (if applicable).
[in]drawDotsDraw grid dots.
[in]gridOriginPoint for the origin of the grid matrix.
[in]xVectorDirection of grid X.
[in]yVectorDirection of grid y.
[in]gridsPerRefDraw reference lines.
[in]repetitionsX,y values for number or repetitions.
void DrawPointCloud ( IPointCloudDrawParams drawParams)

Draw a 3D point cloud.

Parameters
[in]drawParamsObject containing draw parameters.
void DrawQvElem2d ( QvElem *  qvElem,
double  zDepth,
int  subElemIndex = 0 
)

Draw a QvElem that was previously creating using ICachedDraw with the supplied display priority value.

void DrawQvElem3d ( QvElem *  qvElem,
int  subElemIndex = 0 
)

Draw a QvElem that was previously creating using ICachedDraw.

void DrawRaster ( DPoint3d const  points[4],
int  pitch,
int  numTexelsX,
int  numTexelsY,
int  enableAlpha,
int  format,
byte const *  texels,
DPoint3dCP  range 
)

Draw a raster image in 3d.

void DrawRaster2d ( DPoint2d const  points[4],
int  pitch,
int  numTexelsX,
int  numTexelsY,
int  enableAlpha,
int  format,
byte const *  texels,
double  zDepth,
DPoint2dCP  range 
)

Draw a raster image in 2d.

bool DrawSprite ( ISprite sprite,
DPoint3dCP  location,
DPoint3dCP  xVec,
int  transparency 
)

Draw a sprite at a specific location.

Parameters
[in]spriteThe sprite definition.
[in]locationThe location where the origin of the sprite should be drawn (in DgnCoordSystem::View coordinates.)
[in]xVecA vector that points in the direction (in DgnCoordSystem::View coordinates) that the x vector of the sprite definition should be oriented. This allows for rotating sprites. If NULL, sprite is draw unrotated.
[in]transparencySprite is drawn with this transparency (0=opaque, 255=invisible).
Note
this method is only valid from View Decorators.
void DrawTiledRaster ( ITiledRaster *  tiledRaster)

Draw a Tiled Raster.

Parameters
[in]tiledRasterThe Tiled Raster to draw.
void PopRenderOverrides ( )

Pop a previous change to the view flags and/or display style.

void PushRenderOverrides ( ViewFlags  ,
CookedDisplayStyleCP  = 0 
)

Push a change to the current view flags and/or display style for subsequent draw calls.

void SetSymbology ( UInt32  lineColorTBGR,
UInt32  fillColorTBGR,
int  lineWidth,
UInt32  linePattern 
)

Set the active symbology for this IViewDraw.

All subsequent draw methods will use the new active symbology.

Parameters
[in]lineColorTBGRTBGR line color.
[in]fillColorTBGRTBGR color for filled regions.
[in]lineWidthThe line width in pixels.
[in]linePatternThe 32 bit on/off pattern for lines.
void SetToViewCoords ( bool  yesNo)

Set the coordinate system temporarily to DgnCoordSystem::View.

This removes the root coordinate system, including all camera definitions. It is ONLY valid or useful for drawing "overlay" graphics while drawing View Decorations.

Parameters
[in]yesNoIf true, set to DgnCoordSystem::View. If false, restore to DgnCoordSystem::Root.
Note
calls to this method should be paired with true then false values for yesNo.

The documentation for this struct was generated from the following file:

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.