|
CFx SDK Documentation 2026 SP0
|
#include <DbViewRep.h>
Static Public Member Functions | |
| static OdSmartPtr< OdDbViewRep > | createViewRep (OdDbDatabase *db, const OdDbViewInitParams ¶ms, const OdDbViewSymbol *viewSymbol=nullptr) |
Static Public Member Functions inherited from OdRxObject | |
| static OdRxObjectPtr | cast (const OdRxObject *pointer) |
| static OdRxClass * | desc () |
| static void | rxInit () |
| static void | rxUninit () |
Protected Member Functions | |
| virtual OdResult | dwgInFields (OdDbDwgFiler *pFiler) |
| virtual void | dwgOutFields (OdDbDwgFiler *pFiler) const |
| virtual OdResult | dxfInFields (OdDbDxfFiler *pFiler) |
| virtual void | dxfOutFields (OdDbDxfFiler *pFiler) const |
| void | applyPartialUndo (OdDbDwgFiler *undoFiler, OdRxClass *pClass) override |
Protected Member Functions inherited from OdDbObject | |
| OdDbObject () | |
| virtual OdResult | subGetClassID (void *pClsid) const |
| virtual OdDbObjectPtr | subDeepClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary) const |
| virtual OdDbObjectPtr | subWblockClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary) const |
Protected Member Functions inherited from OdGiDrawable | |
| OdGiDrawable () | |
| virtual OdUInt32 | subViewportDrawLogicalFlags (OdGiViewportDraw *vd) const |
| virtual OdUInt32 | subRegenSupportFlags () const |
Friends | |
| class | OdDbImpAssocViewRepActionBody |
| class | OdDbAssocViewRepActionBodyEvaluator |
Additional Inherited Members | |
Protected Attributes inherited from OdDbObject | |
| OdDbObjectImpl * | m_pImpl |
Corresponding C++ library: AcModelDocObj <group OdModelDocObj_Classes>
The key class in the model documentation functionality. Represents every ModelDoc view in the database. An OdDbViewRep instance resides in an associated network and owned by an instance of the OdDbAssocViewRepActionBody class. Call OdDbViewRep::createViewRep() to add a new view representation.
Definition at line 48 of file DbViewRep.h.
| Enumerator | |
|---|---|
| kSourceNotDefined | |
| kInventorSource | |
| kFusionSource | |
| kModelSpaceSource | |
Definition at line 61 of file DbViewRep.h.
Definition at line 79 of file DbViewRep.h.
| Enumerator | |
|---|---|
| kVisibleAndHiddenLines | |
| kVisibleLinesOnly | |
Definition at line 55 of file DbViewRep.h.
| Enumerator | |
|---|---|
| kBase | |
| kAuxiliary | |
| kDetail | |
| kSection | |
| kProjected | |
Definition at line 69 of file DbViewRep.h.
| OdDbViewRep::OdDbViewRep | ( | ) |
|
virtual |
|
overrideprotectedvirtual |
Notification function called each time an Undo operation is performed this object is using partial Undo.
| pUndoFiler | [in] A pointer to the undo filer with the partial undo information. |
| pClassObj | [in] A pointer to the OdRxClass object for the class that will handle the Undo. |
This member function must know which types of fields to scan, and must stop after reading what it it needs.
If the class type specified by pClassObj does not matches the class of this object, this member function must call the parent class's applyPartialUndo() and return whatever it returns.
If it does match the class of this object, this member function must use pUndoFiler to read the undo data, then typically use this object's set() method.
Throws:
Cause eNotThatKindOfClass pClassObj != OdDbObject::desc()
Reimplemented from OdDbObject.
| OdDbViewRepBodyManager * OdDbViewRep::bodyManager | ( | ) |
Generates projected HLR segments and fills them with database entities in the displayed view representation block. It checks whether the view or source model was changed and regenerates graphics only when necessary.
For internal use.
| const OdDbViewRepBodyManager * OdDbViewRep::bodyManager | ( | ) | const |
For internal use.
| bool OdDbViewRep::bodyOverridesLoaded | ( | ) | const |
For internal use.
| void OdDbViewRep::camera | ( | OdGePoint3d & | eye, |
| OdGePoint3d & | target, | ||
| OdGeVector3d & | upVector ) const |
Gets the camera's rotation angle.
| target | [out] Receives the camera's target position. |
| eye | [out] Receives the camera's eye position. |
| up | [out] Receives the camera's up vector. |
| OdGePoint3d OdDbViewRep::center | ( | ) | const |
For internal use.
| void OdDbViewRep::clearBodyManager | ( | ) |
For internal use.
|
static |
Creates a new view representation in the specified database.
| db | [in] Database in which to create the view representation. |
| params | [in] Structure filled with initial params for the new view representation. |
| viewSymbol | [in] Optional. The filled template view symbol entity. When creating a section view representation, this parameter points to an OdDbSectionSymbol entity with section points and optionally other properties defined. When creating a detail view representation, this parameter points to an OdDbDetailSymbol entity with position, size, and optionally other properties defined. |
| OdDbObjectId OdDbViewRep::cutDefinitionId | ( | OdUInt32 | index = 0 | ) | const |
For internal use.
|
protectedvirtual |
Reads the .dwg file data of this object.
| pFiler | [in] Filer object from which data are read. |
This function is called by dwgIn() to allow the object to read its data.
When overriding this function:
1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dwgInFields(pFiler) returned. 4) Call the OdDbDwgFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().
Reimplemented from OdDbObject.
|
protectedvirtual |
Writes the .dwg file data of this object.
| pFiler | [in] Pointer to the filer to which data are written. |
This function is called by dwgIn() to allow the object to write its data.
When overriding this function:
1) Call assertReadEnabled(). 2) Call the parent class's dwgOutFields(pFiler). 3) Call the OdDbDwgFiler(pFiler) methods to write each of the object's data items in the order they were written.
Reimplemented from OdDbObject.
|
protectedvirtual |
Reads the DXF data of this object.
| pFiler | [in] Pointer to the filer from which data are read. |
This function is called by dxfIn() to allow the object to read its data.
When overriding this function:
1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dxfInFields(pFiler) returned. 4) Call the OdDbDxfFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().
Reimplemented from OdDbObject.
|
protectedvirtual |
Writes the DXF data of this object.
| pFiler | [in] Pointer to the filer to which data are to be written. |
This function is called by dxfOut() to allow the object to write its data.
When overriding this function:
1) Call assertReadEnabled(). 2) Call the parent class's dxfOutFields(pFiler). 4) Use pFiler to call the OdDbDxfFiler methods to write each of the object's data items in the order they were written.
Reimplemented from OdDbObject.
| OdDbObjectId OdDbViewRep::entityBackupBlockRef | ( | ) | const |
For internal use.
| bool OdDbViewRep::foreshortened | ( | ) | const |
Gets the flag indicating whether tangent edges should be foreshortened.
| OdRxSketchManager * OdDbViewRep::getSketchManager | ( | ) |
For internal use.
| const class OdRxSketchManager * OdDbViewRep::getSketchManager | ( | ) | const |
For internal use.
| bool OdDbViewRep::inheritSection | ( | ) | const |
Checks whether the view representation inherits sections from parent views.
| bool OdDbViewRep::inheritViewStyle | ( | ) | const |
Gets the flag indicating view style inheritance.
| bool OdDbViewRep::interferenceEdgesVisibility | ( | ) | const |
Gets the flag indicating the visibility of bodies' interference edges.
| OdUInt64 OdDbViewRep::inventorDrawingViewId | ( | ) | const |
For internal use.
| bool OdDbViewRep::isPartialMSView | ( | ) | const |
For internal use.
| bool OdDbViewRep::isScaleFromParent | ( | ) | const |
Gets a value of the flag indicating whether the view representation scale is inherited from the parent view representation.
| bool OdDbViewRep::isShaded | ( | ) | const |
Checks whether the view is shaded.
| OdString OdDbViewRep::label | ( | ) | const |
Gets view label content.
| bool OdDbViewRep::labelVisibility | ( | ) | const |
Gets the label's visibility.
| OdDbObjectId OdDbViewRep::layoutId | ( | ) | const |
Gets the OdDbLayout object where this view representation resides.
| OdResult OdDbViewRep::loadBodyOverrides | ( | ) |
For internal use.
| OdDbViewRepLogical * OdDbViewRep::logical | ( | ) |
For internal use.
| OdDbObjectId OdDbViewRep::lookUpSectionSymbol | ( | ) | const |
Traverses the internal object structure to find an associated view symbol (section or detail).
| OdDbViewRep::ODDB_DECLARE_MEMBERS | ( | OdDbViewRep | ) |
| OdDbObjectId OdDbViewRep::orientationId | ( | ) | const |
For internal use.
| double OdDbViewRep::rotationAngle | ( | ) | const |
Returns the camera's rotation angle.
| double OdDbViewRep::scale | ( | ) | const |
Gets a view scale.
| OdDbObjectId OdDbViewRep::selSetObjId | ( | ) | const |
Gets a set of source entities.
| void OdDbViewRep::setCamera | ( | const OdGePoint3d & | target, |
| const OdGePoint3d & | eye, | ||
| const OdGeVector3d & | up ) |
For internal use.
| void OdDbViewRep::setForeshortened | ( | bool | val | ) |
Sets a new value of the flag indicating whether tangent edges should be foreshortened.
| val | [in] A new value of the flag indicating whether tangent edges should be foreshortened. |
| void OdDbViewRep::setInheritSection | ( | bool | inherit | ) |
Sets the flag indicating whether this view representation should inherit sections from parent views.
| inherit | [in] A new value of the flag to set. |
| void OdDbViewRep::setInheritViewStyle | ( | bool | value | ) |
Turns view style inheritance on or off.
| value | [in] A new value of the flag indicating the view style inheritance. |
| void OdDbViewRep::setInterferenceEdgesVisibility | ( | bool | val | ) |
Turns bodies' interference edge visibility on or off.
| val | [in] A new value of the flag indicating the interference edge visibility. |
| void OdDbViewRep::setIsShaded | ( | bool | doIt | ) |
Turns shaded image visibility on or off.
| doIt | [in] A new shaded image visibility value to set. |
| void OdDbViewRep::setLabelVisibility | ( | bool | vis | ) |
Sets a label's visibility.
| vis | [in] View label (caption) visibility value to set. |
| void OdDbViewRep::setModelSpaceSourceId | ( | OdDbObjectId | id | ) |
For internal use.
| void OdDbViewRep::setScaleFromParent | ( | bool | fromParent | ) |
Sets the flag indicating whether this view representation should inherit the scale from the parent view representation.
| fromParent | [in] A new value of the flag to set. |
| void OdDbViewRep::setSelSetObjId | ( | OdDbObjectId | id | ) |
For internal use.
| void OdDbViewRep::setTangentEdgeVisibility | ( | bool | val | ) |
Sets the tangent edge visibility.
| val | [in] Tangent visibility to set: true to turn on and false to turn off. |
| void OdDbViewRep::setViewOrientType | ( | OdDbViewRep::ViewOrientType | type | ) |
For internal use.
| void OdDbViewRep::setViewStyleType | ( | OdDbViewRep::ViewStyleType | vst | ) |
Sets a new view style type.
| vst | [in] A new style type value to set from the OdDbViewRep::ViewStyleType enum. |
| void OdDbViewRep::setViewType | ( | OdDbViewRep::ViewType | type | ) |
For internal use.
| OdDbObjectId OdDbViewRep::shadedImageViewportId | ( | ) | const |
Gets a viewport entity for the shaded image of this view representation.
| OdDbViewRepStandard::DpiResolutionType OdDbViewRep::shadeResolution | ( | ) | const |
Gets the shaded image resolution DPI.
| OdResult OdDbViewRep::sketchModelSpaceToModelSpaceXform | ( | OdGeMatrix3d & | mat | ) | const |
For internal use.
| OdResult OdDbViewRep::sketchModelSpaceToPaperSpaceXform | ( | OdGeMatrix3d & | mat | ) | const |
For internal use.
| OdResult OdDbViewRep::sketchModelSpaceToViewModelSpaceXform | ( | OdGeMatrix3d & | mat | ) | const |
For internal use.
| OdDbViewRep::SourceType OdDbViewRep::sourceType | ( | ) | const |
Gets the source type of this view representation.
|
overridevirtual |
Called as the first operation as this object is being closed, for database -resident objects only.
When overriding this function:
1) If the OdDbObject's state is incorrect, throw exception.
2) Call parent class's subClose().
3) If other actions are required before close, do them.
The default implementation of this function does nothing. This function can be overridden in custom classes.
Reimplemented from OdDbObject.
| bool OdDbViewRep::tangentEdgeVisibility | ( | ) | const |
Gets the tangent edge visibility.
| OdResult OdDbViewRep::updateViewportScale | ( | double | scale | ) |
Updates the view scale and marks the view representation to be regenerated using a new scale value.
| scale | [in] New scale value. |
| OdGePoint2d OdDbViewRep::viewBasePoint | ( | ) | const |
For internal use.
| OdDbObjectId OdDbViewRep::viewBlockReference | ( | ) | const |
Gets the block reference entity that refers to an anonymous block filled with generated projected geometry of the source model.
| OdDbObjectId OdDbViewRep::viewBorderId | ( | ) | const |
Gets the view border entity representing the view representation in paper space.
| unsigned long OdDbViewRep::viewIndex | ( | ) | const |
Not implemented yet.
| OdResult OdDbViewRep::viewModelSpaceToModelSpaceXform | ( | OdGeMatrix3d & | mat | ) | const |
For internal use.
| OdResult OdDbViewRep::viewModelSpaceToPaperSpaceXform | ( | OdGeMatrix3d & | mat | ) | const |
For internal use.
| OdDbViewRep::ViewOrientType OdDbViewRep::viewOrientType | ( | ) | const |
Gets a view orientation type.
| OdDbObjectId OdDbViewRep::viewportId | ( | ) | const |
Gets a viewport entity representing the view representation in paper space.
| OdDbViewRep::ViewStyleType OdDbViewRep::viewStyleType | ( | ) | const |
Gets a view style type.
| OdDbViewRep::ViewType OdDbViewRep::viewType | ( | ) | const |
Gets a view type.
|
friend |
Definition at line 541 of file DbViewRep.h.
|
friend |
Definition at line 540 of file DbViewRep.h.