Static Public Member Functions | List of all members
ElementGraphicsOutput Struct Reference

Provides an implementation of a ViewContext and IViewDraw suitable for collecting a "picture" of an element's graphics. More...

#include <ElementGraphics.h>

Static Public Member Functions

static void Process (ElementHandleCR eh, IElementGraphicsProcessorR processor, DgnModelRefP rootParent=0)
 Visit the supplied element and send it's Draw output to the supplied processor. More...
 
static void Process (IElementGraphicsProcessorR processor, DgnModelP dgnModel=0)
 Call _OutputGraphics on the supplied processor and send whatever it draws to it's process methods. More...
 

Detailed Description

Provides an implementation of a ViewContext and IViewDraw suitable for collecting a "picture" of an element's graphics.

The element handler's Draw method is called and the output is sent to the supplied IElementGraphicsProcessor.

Remarks
Required library : DgnPlatform<ApiNumber>.lib i.e. DgnPlatform5.lib

Member Function Documentation

static void Process ( ElementHandleCR  eh,
IElementGraphicsProcessorR  processor,
DgnModelRefP  rootParent = 0 
)
static

Visit the supplied element and send it's Draw output to the supplied processor.

Parameters
[in]ehThe element to output the graphics of.
[in]processorThe object to send the Draw output to.
[in]rootParentOptional parent model. If non-null attachment transform from element to parent will be pushed.
static void Process ( IElementGraphicsProcessorR  processor,
DgnModelP  dgnModel = 0 
)
static

Call _OutputGraphics on the supplied processor and send whatever it draws to it's process methods.

Parameters
[in]processorThe object to send the Draw output to.
[in]dgnModelOptional model to set as path root.
Note
Processor is expected to explictly set path root or attach a viewport in _OutputGraphics if it does not supply a dgnModel.

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

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