CFx SDK Documentation
2020SP3
|
#include <GsBaseModel.h>
Classes | |
struct | SectioningSettings |
Public Types | |
enum | AdditionMode { kAddDrawable = 0, kUneraseDrawable } |
typedef std::pair< OdGsViewImpl *, OdUInt32 > | ViewRef |
typedef std::pair< const OdGsBaseModule *, OdUInt32 > | ModuleRef |
Public Types inherited from OdGsModel | |
enum | InvalidationHint { kInvalidateIsolines = 0, kInvalidateViewportCache = 1, kInvalidateAll = 2, kInvalidateMaterials = 3, kInvalidateLinetypes = 4 } |
enum | RenderType { kMinRenderType = -3, kUserBg1 = -3, kUserBg2 = -2, kUserBg3 = -1, kMain = 0, kSprite, kDirect, kHighlight, kHighlightSelection, kDirectTopmost, kContrast, kCount, kUserFg1 = kCount, kUserFg2, kUserFg3, kMaxRenderType, kNumRenderTypes = kMaxRenderType - kMinRenderType } |
Public Attributes | |
unsigned | m_nMfCached |
unsigned | m_nMfReused |
OdArray< ViewRef, OdMemoryAllocator< ViewRef > > | m_views |
OdArray< ModuleRef, OdMemoryAllocator< ModuleRef > > | m_modules |
Protected Types | |
enum | GsModelFlags { kCheckFaded = (1 << 0), kEnableLinetypes = (1 << 1), kModelSelectable = (1 << 2), kLightsInBlocks = (1 << 3), kSkipViewClip = (1 << 4), kIdentityXform = (1 << 5) } |
Protected Member Functions | |
void | addNode (OdGsNode *pNode) |
void | addViewRef (OdGsViewImpl *pView) |
void | removeViewRef (OdGsViewImpl *pView) |
void | setInvalidVp (unsigned int viewportId, bool val) |
virtual void | clearChangedLayersList () |
OdGsBaseModel () | |
~OdGsBaseModel () | |
void | onModifiedNode (OdGsNode *pCache, OdGiDrawable *pDrawable, OdGiDrawable *pParent) |
void | onModifiedDrawable (OdGiDrawable *pDrawable, OdGiDrawable *pParent) |
void | onPropertyModifiedImpl (OdGsBaseModelReactor::ModelProperty nProp, bool &bReturnValue) |
virtual bool | onPropertyModified (OdGsBaseModelReactor::ModelProperty nProp) |
Friends | |
class | CFxGsExtension |
class | OdGsNode |
class | OdGsViewImpl |
class | OdGsBaseVectorizer |
class | OdGsBaseVectorizeDevice |
GS_TOOLKIT_EXPORT OdGiDrawablePtr | fxOpenDrawable (OdGsBaseModel *, OdDbStub *) |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
This class is the base class for custom GsBaseModel objects which coordinate custom caching support for Teigha vectorization applications.
Corresponding C++ library: TD_Gs <group OdGs_Classes>
Definition at line 117 of file GsBaseModel.h.
typedef std::pair<const OdGsBaseModule*, OdUInt32> OdGsBaseModel::ModuleRef |
Definition at line 167 of file GsBaseModel.h.
typedef std::pair<OdGsViewImpl*, OdUInt32> OdGsBaseModel::ViewRef |
Definition at line 165 of file GsBaseModel.h.
Enumerator | |
---|---|
kAddDrawable | |
kUneraseDrawable |
Definition at line 294 of file GsBaseModel.h.
|
protected |
Enumerator | |
---|---|
kCheckFaded | |
kEnableLinetypes | |
kModelSelectable | |
kLightsInBlocks | |
kSkipViewClip | |
kIdentityXform |
Definition at line 147 of file GsBaseModel.h.
|
protected |
|
protected |
AdditionMode OdGsBaseModel::additionMode | ( | ) | const |
|
virtual |
Adds a model reactor for this Model object.
pReactor | [in] Model reactor |
Implements OdGsModel.
Adds the specified Node object to this BaseModel object.
pNode | [in] Pointer to the Node to be added. |
|
protected |
|
virtual |
Returns the OdDbBackground object ID if the background was set to this Model object.
Implements OdGsModel.
|
inline |
Definition at line 158 of file GsBaseModel.h.
|
protectedvirtual |
Removes the associations between the specified Node object and this BaseModel object.
pNode | [in] Pointer to the Node object. |
|
virtual |
Removes all Node objects from this BaseModel object.
void OdGsBaseModel::detachAllFromDb | ( | const OdDbBaseDatabase * | pDb | ) |
|
inline |
Definition at line 398 of file GsBaseModel.h.
|
inline |
Definition at line 169 of file GsBaseModel.h.
|
virtual |
|
virtual |
Returns the OdGsNode object associated with the specified Drawable.
pDrawable | [in] Pointer to the Drawable object. |
|
inline |
Definition at line 387 of file GsBaseModel.h.
|
virtual |
Highlights the specified entity in this Model object.
path | [in] Path to the entity for highlighting. |
bDoIt | [in] Flag that indicates whether highlighting is enabled (true value) or disabled (false value). |
pView | [in] Pointer to the view where the specified entity should be highlighted. |
Implements OdGsModel.
|
virtual |
|
inline |
Definition at line 189 of file GsBaseModel.h.
|
virtual |
Invalidates the specified cached data contained in this Model object.
hint | [in] Invalidation hint. |
Value kInvalidateIsolines 0 kInvalidateViewportCache 1 kInvalidateAll 2 kInvalidateMaterials 3 kInvalidateLinetypes 4
Implements OdGsModel.
void OdGsBaseModel::invalidate | ( | OdGsViewImpl & | view, |
OdUInt32 | mask | ||
) |
view | [in] BaseVectorizeView object for which data are to be invalidated. |
mask | [in] Mask. |
|
virtual |
|
virtual |
void OdGsBaseModel::invalidateRegenDrawBlocks | ( | OdGsViewImpl & | view, |
const OdDbStub * | layoutId | ||
) |
void OdGsBaseModel::invalidateSectionableBlocks | ( | ) |
|
virtual |
Invalidates cached data that visible on the device.
pView | [in] Pointer to the OdGsDevice object for which data is to be invalidated. |
Implements OdGsModel.
|
inline |
For internal needs. Do not use!
Definition at line 182 of file GsBaseModel.h.
|
inline |
Definition at line 479 of file GsBaseModel.h.
|
virtual |
Returns true if lights in blocks are enabled or returns false in the other case.
Implements OdGsModel.
|
virtual |
Returns true if the linetype display is enabled or returns false in the other case.
Implements OdGsModel.
|
virtual |
Returns true if the sectioning is active in the views displaying this Model object. Returns false in the other case.
Implements OdGsModel.
|
virtual |
Checks whether this Model object is selected. If the returning value is true, the Model object is selectable. If the returning value is false, the Model object is not selectable.
Implements OdGsModel.
|
inline |
Definition at line 431 of file GsBaseModel.h.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inline |
Definition at line 367 of file GsBaseModel.h.
|
virtual |
|
inline |
Returns the size of the ViewProperties array for this BaseModel object.
Definition at line 451 of file GsBaseModel.h.
|
virtual |
Notification function called whenever a drawable object is added to this Model object.
pAdded | [in] Pointer to the added Drawable object. |
parentID | [in] Object ID of the parent of the added Drawable object. |
Implements OdGsModel.
|
virtual |
Notification function called whenever a drawable object is added to this Model object.
pAdded | [in] Pointer to the added Drawable object. |
pParent | [in] Pointer to the parent of the added Drawable object. |
Implements OdGsModel.
|
virtual |
|
virtual |
Notification function called whenever a drawable object is erased from this Model object.
pErased | [in] Pointer to the erased Drawable object. |
parentID | [in] Object ID of the parent of the erased Drawable object. |
Implements OdGsModel.
|
virtual |
Notification function called whenever a drawable object is erased from this Model object.
pErased | [in] Pointer to the erased Drawable object. |
pParent | [in] Pointer to the parent of the erased Drawable object. |
Implements OdGsModel.
|
virtual |
|
virtual |
Notification function called whenever a drawable object is modified in this Model object.
pModified | [in] Pointer to the modified Drawable object. |
parentID | [in] Object ID of the parent of the modified Drawable object. |
Implements OdGsModel.
|
virtual |
Notification function called whenever a drawable object is modified in this Model object.
pModified | [in] Pointer to the modified Drawable object. |
pParent | [in] Pointer to the parent of the modified Drawable object. |
Implements OdGsModel.
|
protected |
|
virtual |
|
protected |
|
protectedvirtual |
|
protected |
|
virtual |
Notification function called whenever a drawable object is unerased in this Model object.
pUnerased | [in] Pointer to the unerased Drawable object. |
parentID | [in] Object ID of the parent of the unerased Drawable object. |
Reimplemented from OdGsModel.
|
virtual |
Notification function called whenever a drawable object is unerased in this Model object.
pUnerased | [in] Pointer to the unerased Drawable object. |
pParent | [in] Pointer to the parent of the unerased Drawable object. |
Reimplemented from OdGsModel.
|
inline |
Opens the specified object.
objectID | [in] Object ID of the Drawable object to be opened. |
Definition at line 438 of file GsBaseModel.h.
OdGiOpenDrawableFn OdGsBaseModel::openDrawableFn | ( | ) | const |
bool OdGsBaseModel::postprocessModelLoading | ( | OdGsFiler * | pFiler | ) |
|
virtual |
OdGsBaseVectorizeDevice* OdGsBaseModel::refDevice | ( | ) | const |
|
inline |
Definition at line 172 of file GsBaseModel.h.
|
inline |
Definition at line 467 of file GsBaseModel.h.
|
virtual |
|
virtual |
Removes the specified model reactor from this Model object.
pReactor | [in] Pointer to the model reactor that should be removed |
Implements OdGsModel.
|
protected |
|
inline |
Definition at line 426 of file GsBaseModel.h.
|
inlinevirtual |
Returns the render type of this Model object.
Implements OdGsModel.
Definition at line 474 of file GsBaseModel.h.
|
virtual |
|
virtual |
void OdGsBaseModel::setAdditionMode | ( | AdditionMode | mode | ) |
|
virtual |
Sets the background of this Model object.
backgroundId | [in] OdDbBackground object ID. |
Implements OdGsModel.
|
inline |
Definition at line 159 of file GsBaseModel.h.
|
virtual |
Enables or disables lights in blocks.
bEnable | [in] Boolean flag which enables (true value) or disables (false value) lights in blocks. |
Implements OdGsModel.
|
virtual |
|
virtual |
Enables the currently specified sectioning in the views displaying this Model object.
bEnable | [in] Boolean flag which indicates whether sectioning should be enabled |
Implements OdGsModel.
|
inlineprotected |
For internal needs. Do not use!
Definition at line 217 of file GsBaseModel.h.
|
virtual |
Specifies the function called for drawable object open by this Model object.
openDrawableFn | [in] Function to be called. |
Implements OdGsModel.
|
virtual |
Sets the specified rendering mode override for this Model object.
mode | [in] Render mode override. |
Implements OdGsModel.
|
virtual |
Sets the render type for this Model object.
renderType | [in] Render type. |
Implements OdGsModel.
|
virtual |
Sets the active sectioning for this Model object. After specifying the sectioning, it should be enabled by the setEnableSectioning() method.
points | [in] Array of co-planar points specifying a sectioning region |
upVector | [in] Vector that specifies the orientation of the plane that contains points |
Implements OdGsModel.
|
virtual |
Sets the active sectioning for this Model object. The sectioning is capped vertically using the specified top and bottom heights. After specifying the sectioning, it should be enabled by the setEnableSectioning() method.
points | [in] Array of co-planar points specifying a sectioning region |
upVector | [in] Vector that specifies the orientation of the plane that contains points |
dTop | [in] Specifies the top capping height of the sectioning |
dBottom | [in] Specifies the bottom capping height of the sectioning |
Implements OdGsModel.
|
virtual |
Sets the visual style for the objects on the clipped side of the sectioning.
visualStyleId | [in] Visual style object ID. Null by default. |
Implements OdGsModel.
|
virtual |
Enables or disables the ability to select this Model object. If the input value is true, the Model object is selectable. If the input value is false, the Model object is unselectable.
bEnable | [in] Boolean flag which indicates whether this Model object is selectable |
Implements OdGsModel.
|
virtual |
Transforms this Model object by applying the specified transformation matrix to the model contents.
OdGeMatrix3d | [in] Transformation matrix. |
Implements OdGsModel.
|
virtual |
Enables this model's geometry to ignore the view's front and back clipping planes (if any) and viewport 3d clipping (if set). If the method's input value is false, the view's clipping planes and viewport 3d clipping are allowed by this Model object.
bEnable | [in] Boolean flag which indicates that the model ignores the view's clipping planes and viewport 3d clipping (true value). |
Implements OdGsModel.
|
virtual |
Sets the visual style for this Model object. This method is used to direct views to display the model in the specified visual style. By default, models are displayed in the visual style assigned to the view.
visualStyle | [in] Visual style object |
Implements OdGsModel.
|
virtual |
Sets the visual style for this Model object. This method is used to direct views to display the model in the specified visual style. By default, models are displayed in the visual style assigned to the view.
visualStyleId | [in] Visual style object ID used by objects in this model |
Implements OdGsModel.
|
virtual |
Obtains the current transformation matrix of this Model object.
Implements OdGsModel.
|
virtual |
Updates the ViewProps structure for the specified Viewport.
viewport | [in] Viewport. |
Returns the view properties that have changed for the specified Viewport
viewportId | [in] Viewport ID. |
Definition at line 462 of file GsBaseModel.h.
Returns a reference to the the ViewProp structure for the specified Viewport.
viewportId | [in] Viewport ID. |
Definition at line 456 of file GsBaseModel.h.
|
virtual |
Returns the visual style of this Model object.
Implements OdGsModel.
|
virtual |
Returns the visual style of this Model object.
visualStyle | [out] Visual style |
Implements OdGsModel.
|
inline |
Definition at line 484 of file GsBaseModel.h.
|
friend |
Definition at line 120 of file GsBaseModel.h.
|
friend |
|
friend |
Definition at line 130 of file GsBaseModel.h.
|
friend |
Definition at line 129 of file GsBaseModel.h.
|
friend |
Definition at line 127 of file GsBaseModel.h.
|
friend |
Definition at line 128 of file GsBaseModel.h.
|
protected |
Definition at line 125 of file GsBaseModel.h.
|
protected |
Definition at line 252 of file GsBaseModel.h.
|
protected |
Definition at line 156 of file GsBaseModel.h.
|
protected |
Definition at line 243 of file GsBaseModel.h.
|
protected |
Definition at line 232 of file GsBaseModel.h.
|
protected |
Definition at line 251 of file GsBaseModel.h.
|
protected |
Definition at line 233 of file GsBaseModel.h.
OdArray<ModuleRef, OdMemoryAllocator<ModuleRef> > OdGsBaseModel::m_modules |
Definition at line 168 of file GsBaseModel.h.
|
protected |
Definition at line 227 of file GsBaseModel.h.
unsigned OdGsBaseModel::m_nMfCached |
Definition at line 143 of file GsBaseModel.h.
unsigned OdGsBaseModel::m_nMfReused |
Definition at line 144 of file GsBaseModel.h.
|
protected |
Definition at line 124 of file GsBaseModel.h.
|
protected |
Definition at line 228 of file GsBaseModel.h.
|
protected |
Definition at line 238 of file GsBaseModel.h.
|
protected |
Definition at line 241 of file GsBaseModel.h.
|
protected |
Definition at line 234 of file GsBaseModel.h.
|
protected |
Definition at line 230 of file GsBaseModel.h.
|
protected |
Definition at line 236 of file GsBaseModel.h.
|
protected |
Definition at line 245 of file GsBaseModel.h.
Definition at line 226 of file GsBaseModel.h.
OdArray<ViewRef, OdMemoryAllocator<ViewRef> > OdGsBaseModel::m_views |
Definition at line 166 of file GsBaseModel.h.
|
protected |
Definition at line 231 of file GsBaseModel.h.