C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
Implementation of model document which has regular structure. More...
#include <conv_model_document.h>
Public Member Functions | |
C3dModelDocument (SPtr< C3DPmiToItem > pmiToContent=SPtr< C3DPmiToItem >()) | |
Conscructor. | |
virtual | ~C3dModelDocument () |
Descructor. | |
virtual bool | IsAssembly () const |
Is it an assembly? | |
virtual bool | IsEmpty () const |
Is it neither an assembly nor a part? | |
virtual void | SetContent (MbItem *) |
Prototype of a new interface function - get the placement the model is defined in. More... | |
virtual MbItem * | GetContent () |
Prototype of a new interface function - get the filling. | |
virtual ModelAssemblyPtr | CreateAssembly (const c3d::ItemsSPtrVector &componentItems, const c3d::string_t &fileName) |
Create a document with a new assembly while importing. More... | |
virtual ModelPartPtr | CreatePart (const c3d::ItemsSPtrVector &componentItems, const c3d::string_t &fileName) |
Create a document with a new part while importing. More... | |
virtual ModelAssemblyPtr | GetInstanceAssembly () |
Get an assembly for export. More... | |
virtual ModelPartPtr | GetInstancePart () |
Get the detail for export. More... | |
virtual bool | FinishImport (IProgressIndicator *) |
Complete the import and save the document. More... | |
virtual map_of_visual_items | GetAnnotationItems (eTextForm) const |
Get elements of annotation, corresponding items of geometric model. More... | |
virtual void | SetAnnotationItems (const map_of_visual_items &vi) |
Set sizes. | |
virtual void | OpenDocument () |
Open a document. | |
SPtr< C3DPmiToItem > | PmiInContent () const |
If PMI is included into model item. | |
void | RegisterAnnotation (c3d::ItemSPtr component, const AnnotationSptrVector &annotation, const AnnotationSptrVector &requirements) |
Register annotation object. | |
void | ResetInstanceIterators () |
Reset instances itrerators. | |
Public Member Functions inherited from MbRefItem | |
virtual MbeRefType | RefType () const |
Registration type (for copying, duplication). | |
refcount_t | GetUseCount () const |
Get count of references (get count of owners of an object). | |
refcount_t | AddRef () const |
Increase count of references by one. | |
refcount_t | DecRef () const |
Decrease count of references by one. | |
refcount_t | Release () const |
Decrease count of references by one and if count of references became zero, then remove itself. | |
Additional Inherited Members | |
Protected Member Functions inherited from MbRefItem | |
MbRefItem () | |
Constructor without parameters. | |
Implementation of model document which has regular structure.
Prototype of a new interface function - get the placement the model is defined in.
Prototype of a new interface function - set a model to fill.
Implements ItModelDocument.
|
virtual |
Create a document with a new assembly while importing.
Increase the reference counter of the resultant document by 1.
[in] | fileName | - Assembly name. |
[in] | solids | - Solids to add into the assembly. |
Implements ItModelDocument.
|
virtual |
Create a document with a new part while importing.
Increase the reference counter of the resultant document by 1.
[in] | solids | - Solids to add into a part. |
[in] | fileName | - A part name. |
Implements ItModelDocument.
|
virtual |
Get an assembly for export.
Increase the reference counter of the resultant assembly by 1.
Implements ItModelDocument.
|
virtual |
Get the detail for export.
Increase the reference counter of the resultant part by 1.
Implements ItModelDocument.
|
virtual |
Complete the import and save the document.
[in] | indicator | An object indicating a process progress. |
Implements ItModelDocument.
|
virtual |
Get elements of annotation, corresponding items of geometric model.
[in] | eTextForm | - Text representation form. |
Implements ItModelDocument.