Public Types | Public Member Functions | Static Public Member Functions | List of all members
DropGeometry Struct Referenceabstract

DropGeometry is suplied to DisplayHandler::Drop to allow the handler to produce a simplified representation that isn't necessarily just dumb graphics. More...

#include <DropGraphics.h>

Inheritance diagram for DropGeometry:
RefCountedBase RefCounted< IRefCounted > IRefCounted

Public Types

enum  Options {
  OPTION_None = (0), OPTION_Text = (1<<0), OPTION_Dimensions = (1<<1), OPTION_Mlines = (1<<2),
  OPTION_Complex = (1<<3), OPTION_LinearSegments = (1<<4), OPTION_SharedCells = (1<<5), OPTION_Solids = (1<<6),
  OPTION_AppData = (1<<7)
}
 
enum  Dimensions { DIMENSION_Geometry = 0, DIMENSION_Segments = 1 }
 
enum  SharedCells { SHAREDCELL_Geometry = 0, SHAREDCELL_NormalCell = 1, SHAREDCELL_NormalCellOneLevel = 2 }
 
enum  Solids { SOLID_Surfaces = 0, SOLID_Wireframe = 1 }
 

Public Member Functions

DGNPLATFORM_EXPORT void SetOptions (Options options)
 Set type/geometry specific drop options. More...
 
DGNPLATFORM_EXPORT Options GetOptions () const
 Get the current type/geometry specific drop options. More...
 
DGNPLATFORM_EXPORT void SetDimensionOptions (Dimensions option)
 Set dimension drop behavior. More...
 
DGNPLATFORM_EXPORT Dimensions GetDimensionOptions () const
 Get dimension drop behavior. More...
 
DGNPLATFORM_EXPORT void SetSharedCellOptions (SharedCells option)
 Set shared cell instance drop behavior. More...
 
DGNPLATFORM_EXPORT SharedCells GetSharedCellOptions () const
 Get shared cell instance drop behavior. More...
 
DGNPLATFORM_EXPORT void SetSolidsOptions (Solids option)
 Set solid/surface drop behavior. More...
 
DGNPLATFORM_EXPORT Solids GetSolidsOptions () const
 Get solid/surface drop behavior. More...
 
- Public Member Functions inherited from RefCounted< IRefCounted >
void * operator new (size_t size)
 
void operator delete (void *rawMemory, size_t size)
 
UInt32 AddRef () const
 
UInt32 Release () const
 
 RefCounted ()
 
 RefCounted (RefCounted const &rhs)
 
RefCountedoperator= (RefCounted const &rhs)
 
UInt32 GetRefCount () const
 

Static Public Member Functions

static DGNPLATFORM_EXPORT
DropGeometryPtr 
Create ()
 Create an instance of DropGeometry for setting geometry options. More...
 

Additional Inherited Members

- Protected Member Functions inherited from RefCounted< IRefCounted >
virtual ~RefCounted ()
 
- Protected Member Functions inherited from IRefCounted
virtual ~IRefCounted ()
 
void * operator new (size_t size)
 
void operator delete (void *rawMemory, size_t size)
 

Detailed Description

DropGeometry is suplied to DisplayHandler::Drop to allow the handler to produce a simplified representation that isn't necessarily just dumb graphics.

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

Member Enumeration Documentation

enum Dimensions
Enumerator
DIMENSION_Geometry 

Drop dimension to geometry.

DIMENSION_Segments 

Drop multi-segment dimensions to individual dimensions.

enum Options
Enumerator
OPTION_None 

No type/geometry specific drop options.

OPTION_Text 

To drop text to geometry.

OPTION_Dimensions 

To drop dimensions. (DIMENSION_Geometry)

OPTION_Mlines 

To drop multi-lines to geometry.

OPTION_Complex 

To drop complex elements. (ex. normal cells, complex shapes, complex chains, grouped holes, text nodes)

OPTION_LinearSegments 

To drop shapes/linestrings to individual segments.

OPTION_SharedCells 

To drop shared cells. (SHAREDCELL_NormalCell)

OPTION_Solids 

To drop solids/surfaces. (SOLID_Wireframe)

OPTION_AppData 

To drop application elements to geometry.

Enumerator
SHAREDCELL_Geometry 

Drop a shared cell instance to geometry.

SHAREDCELL_NormalCell 

Drop a shared cell instance to a normal cell expanding nested instances.

SHAREDCELL_NormalCellOneLevel 

Drop a shared cell instance to a normal cell preserving nested instances.

enum Solids
Enumerator
SOLID_Surfaces 

Drop solids/surfaces to individual surfaces per-face.

SOLID_Wireframe 

Drop solids/surfaces to edge/face-iso curves.

Member Function Documentation

static DGNPLATFORM_EXPORT DropGeometryPtr Create ( )
static

Create an instance of DropGeometry for setting geometry options.

Returns
A reference counted pointer to a DropGeometry instance.
DGNPLATFORM_EXPORT Dimensions GetDimensionOptions ( ) const

Get dimension drop behavior.

DGNPLATFORM_EXPORT Options GetOptions ( ) const

Get the current type/geometry specific drop options.

DGNPLATFORM_EXPORT SharedCells GetSharedCellOptions ( ) const

Get shared cell instance drop behavior.

DGNPLATFORM_EXPORT Solids GetSolidsOptions ( ) const

Get solid/surface drop behavior.

DGNPLATFORM_EXPORT void SetDimensionOptions ( Dimensions  option)

Set dimension drop behavior.

DGNPLATFORM_EXPORT void SetOptions ( Options  options)

Set type/geometry specific drop options.

DGNPLATFORM_EXPORT void SetSharedCellOptions ( SharedCells  option)

Set shared cell instance drop behavior.

DGNPLATFORM_EXPORT void SetSolidsOptions ( Solids  option)

Set solid/surface drop behavior.


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

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