C3D Toolkit  Kernel - 118060, Vision - 2.15.0.1825
ItModelDocument Class Referenceabstract

Interface of document of an assembly model or a part model. More...

#include <conv_model_document.h>

+ Inheritance diagram for ItModelDocument:
+ Collaboration diagram for ItModelDocument:

Public Member Functions

virtual bool IsAssembly () const =0
 Is it an assembly?
 
virtual bool IsEmpty () const =0
 There is no data.
 
virtual void SetContent (MbItem *)=0
 Prototype of a new interface function - get the placement the model is defined in. More...
 
virtual MbItemGetContent ()=0
 Prototype of a new interface function - get the filling.
 
virtual ModelAssemblyPtr CreateAssembly (const c3d::ItemsSPtrVector &componentItems, const c3d::string_t &fileName)=0
 Create a document with a new assembly while importing. More...
 
virtual ModelPartPtr CreatePart (const c3d::ItemsSPtrVector &componentItems, const c3d::string_t &fileName)=0
 Create a document with a new part while importing. More...
 
virtual ModelAssemblyPtr GetInstanceAssembly ()=0
 Get an assembly for export. More...
 
virtual ModelPartPtr GetInstancePart ()=0
 Get the detail for export. More...
 
virtual SPtr< IConverterMetadataReceiverGetMetadataReceiver ()
 Get metadata provider. More...
 
virtual c3d::path_string GetMetadataWritePath ()
 Get metadata write path. More...
 
virtual bool FinishImport (IProgressIndicator *indicator)=0
 Complete the import and save the document. More...
 
virtual DEPRECATE_DECLARE map_of_visual_items GetAnnotationItems (eTextForm) const =0
 Get elements of annotation, corresponding items of geometric model. More...
 
virtual DEPRECATE_DECLARE void SetAnnotationItems (const map_of_visual_items &)=0
 Set sizes.
 
virtual DEPRECATE_DECLARE void OpenDocument ()=0
 Open a document.

 
- Public Member Functions inherited from MbRefItem
virtual MbeRefType RefType () const
 Registration type (for copying, duplication).
 
void AddRegistrator (MbRegDuplicate *reg) const
 Add the register.
 
void RemoveRegistrator (MbRegDuplicate *reg) const
 Remove the register.
 
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.
 

Detailed Description

Interface of document of an assembly model or a part model.

Member Function Documentation

◆ SetContent()

virtual void ItModelDocument::SetContent ( MbItem )
pure virtual

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.

Implemented in C3dModelDocument.

◆ CreateAssembly()

virtual ModelAssemblyPtr ItModelDocument::CreateAssembly ( const c3d::ItemsSPtrVector &  componentItems,
const c3d::string_t fileName 
)
pure virtual

Create a document with a new assembly while importing.

Increase the reference counter of the resultant document by 1.

Parameters
[in]componentItems- Items to add into the assembly.
[in]fileName- Assembly name.
Returns
Instance of an assembly if the operation succeeded, nullptr - otherwise.

Implemented in C3dModelDocument.

◆ CreatePart()

virtual ModelPartPtr ItModelDocument::CreatePart ( const c3d::ItemsSPtrVector &  componentItems,
const c3d::string_t fileName 
)
pure virtual

Create a document with a new part while importing.

Increase the reference counter of the resultant document by 1.

Parameters
[in]componentItems- Items to add into the assembly.
[in]fileName- A part name.
Returns
Instance of the part if the operation succeeded, nullptr - otherwise.

Implemented in C3dModelDocument.

◆ GetInstanceAssembly()

virtual ModelAssemblyPtr ItModelDocument::GetInstanceAssembly ( )
pure virtual

Get an assembly for export.

Increase the reference counter of the resultant assembly by 1.

Returns
Instance of an assembly if the operation succeeded, nullptr - otherwise.

Implemented in C3dModelDocument.

◆ GetInstancePart()

virtual ModelPartPtr ItModelDocument::GetInstancePart ( )
pure virtual

Get the detail for export.

Increase the reference counter of the resultant part by 1.

Returns
Instance of the part if the operation succeeded, nullptr - otherwise.

Implemented in C3dModelDocument.

◆ GetMetadataReceiver()

virtual SPtr<IConverterMetadataReceiver> ItModelDocument::GetMetadataReceiver ( )
inlinevirtual

Get metadata provider.

Metadata are used in cases they don't fin in neigher geometric nor attribute-based models.

Returns
Implementation of metadata processor.

Reimplemented in C3dModelDocument.

◆ GetMetadataWritePath()

virtual c3d::path_string ItModelDocument::GetMetadataWritePath ( )
inlinevirtual

Get metadata write path.

Metadata are used in cases they don't fit in neigher geometric nor attribute-based models. This method is alternative for GetMetadataReceiver() for cases when it is more preferred for user application to store metadata into the filesystem rather than transferring them via IConverterMetadataReceiver. The directory must exist, be empty and writable.

Returns
Path for writing metadata into the filesystem.

Reimplemented in C3dModelDocument.

◆ FinishImport()

virtual bool ItModelDocument::FinishImport ( IProgressIndicator indicator)
pure virtual

Complete the import and save the document.

Returns
true if the operation succeeded, false - otherwise.
Parameters
[in]indicatorAn object indicating a process progress.

Implemented in C3dModelDocument.

◆ GetAnnotationItems()

virtual DEPRECATE_DECLARE map_of_visual_items ItModelDocument::GetAnnotationItems ( eTextForm  ) const
pure virtual

Get elements of annotation, corresponding items of geometric model.

Parameters
[in]eTextForm- Text representation form.
Returns
Vector of annotation objects.

Implemented in C3dModelDocument.


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