C3D Toolkit  Kernel - 118069, Vision - 2.16.7.1844
ItModelPart Class Referenceabstract

Interface of a part. More...

#include <conv_model_document.h>

+ Inheritance diagram for ItModelPart:
+ Collaboration diagram for ItModelPart:

Public Member Functions

virtual c3d::path_string PureFileName () const =0
 Get the file name of a part without the path and extension for export. More...
 
virtual ModelInstancePtr PrepareInstance ()=0
 Get an empty interface of the insertion for creation of subassembly or a part while importing. More...
 
virtual ModelInstancePtr NextInstance (bool includeInvisible)=0
 Get the interface of the next insertion for creation of a subassembly or a part while exporting. More...
 
virtual bool GetPlacement (MbPlacement3D &) const
 Get the placement, which all the items of the component use for transformation.
 
virtual void GetItems (c3d::ItemsSPtrVector &items, MbeGettingItemType itemType, bool includeInvisible) const =0
 Get objects from the part while exporting. More...
 
virtual void AddItems (const c3d::ItemsSPtrVector &items)=0
 Add objects to a part while importing. More...
 
virtual DEPRECATE_DECLARE AnnotationSptrVector GetAnnotationItems (eTextForm, bool) const
 Get elements of annotation from the detail. More...
 
virtual DEPRECATE_DECLARE void SetAnnotationItems (const AnnotationSptrVector &)=0
 Set elements of annotation in the part. More...
 
virtual void AddMappedItem (MbItem &, MbPlacement3D const &, c3d::AttrSPtrVector const &)
 Add object with a placement to the assembly root while importing. More...
 
virtual SPtr< MbInstance > NextMappedItem () const
 Get the next item with placement. More...
 
virtual c3d::ItemSPtr NextAxesGrid () const
 Get the next conxtruction axes grid. More...
 
virtual void AddAxesGrid (c3d::ItemSPtr const &)
 Get the next conxtruction axes grid. More...
 
virtual c3d::ItemSPtr NextAxisSpatial () const
 Get the next spatial axis. More...
 
virtual void AddAxisSpatial (c3d::ItemSPtr const &)
 Get the next spatial axis. More...
 
virtual SPtr< MbAssistingItem > NextCoordinateSystem () const
 Get the next coordinate system. More...
 
virtual void AddCoordinateSystem (SPtr< MbAssistingItem > const &)
 Add a coordinate system. More...
 
virtual c3d::ItemSPtr NextBoundaryItem () const
 Get the next item that is the boundary of an area or volume. More...
 
virtual void AddBoundaryItem (c3d::ItemSPtr const &)
 Add an item that is the boundary of an area or volume. More...
 
- Public Member Functions inherited from ItModelInstanceProperties
virtual bool SetAttributes (const c3d::AttrSPtrVector &)=0
 Set attributes.
 
virtual c3d::AttrSPtrVector GetAttributes () const =0
 Get attributes.
 
virtual DEPRECATE_DECLARE void GetRequirements (AnnotationSptrVector &, eTextForm) const =0
 Technical requirements. Get technical requirements.
 
virtual DEPRECATE_DECLARE void SetRequirements (const AnnotationSptrVector &)=0
 Set technical requirements.
 
- 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 a part.

The object should be created in the CreatePart method of the implementations of the ItModelDocument and ItModelInstance interfaces. Own Items of the detail should be arguments of the constructor.

Member Function Documentation

◆ PureFileName()

virtual c3d::path_string ItModelPart::PureFileName ( ) const
pure virtual

Get the file name of a part without the path and extension for export.

Returns
A part file name.

◆ PrepareInstance()

virtual ModelInstancePtr ItModelPart::PrepareInstance ( )
pure virtual

Get an empty interface of the insertion for creation of subassembly or a part while importing.

Increase the reference counter by 1.

Returns
Interface of the instance if the operation succeeded and nullptr otherwise.

◆ NextInstance()

virtual ModelInstancePtr ItModelPart::NextInstance ( bool  includeInvisible)
pure virtual

Get the interface of the next insertion for creation of a subassembly or a part while exporting.

Returns
Interface of the insertion if the operation succeeded and nullptr otherwise.

◆ GetItems()

virtual void ItModelPart::GetItems ( c3d::ItemsSPtrVector &  items,
MbeGettingItemType  itemType,
bool  includeInvisible 
) const
pure virtual

Get objects from the part while exporting.

Parameters
[out]items- Array to fill (consists of objects of classes MbSolid, MbWireFrame, MbPointFrame).
[in]itemType- Type of objects the array should be filled with.
[in]includeInvisible- If true, all the solids are returned, including invisible ones, if false - only visible ones.

◆ AddItems()

virtual void ItModelPart::AddItems ( const c3d::ItemsSPtrVector &  items)
pure virtual

Add objects to a part while importing.

Parameters
[in]items- Objects to be added to the model (curves and points).

◆ GetAnnotationItems()

virtual DEPRECATE_DECLARE AnnotationSptrVector ItModelPart::GetAnnotationItems ( eTextForm  ,
bool   
) const
inlinevirtual

Get elements of annotation from the detail.

Parameters
[in]eTextForm- Text representation form.
[in]includeInvisible- If true, all the annotation objects are returned, including invisible ones, if false - only visible ones.
Returns
Vector of annotation objects.

◆ SetAnnotationItems()

virtual DEPRECATE_DECLARE void ItModelPart::SetAnnotationItems ( const AnnotationSptrVector &  )
pure virtual

Set elements of annotation in the part.

Parameters
[in]sourceDim- Elements of annotation.

◆ AddMappedItem()

virtual void ItModelPart::AddMappedItem ( MbItem &  ,
MbPlacement3D const &  ,
c3d::AttrSPtrVector const &   
)
inlinevirtual

Add object with a placement to the assembly root while importing.

Parameters
[in]item- Object to add to the model.
[in]placement- Placement.

◆ NextMappedItem()

virtual SPtr<MbInstance> ItModelPart::NextMappedItem ( ) const
inlinevirtual

Get the next item with placement.

Returns
Item with placement and nullptr otherwise.

◆ NextAxesGrid()

virtual c3d::ItemSPtr ItModelPart::NextAxesGrid ( ) const
inlinevirtual

Get the next conxtruction axes grid.

Returns
Next construction axes grid or null in case of depletion.

◆ AddAxesGrid()

virtual void ItModelPart::AddAxesGrid ( c3d::ItemSPtr const &  )
inlinevirtual

Get the next conxtruction axes grid.

Parameters
[in]groupNext construction axes grid or null in case of depletion.

◆ NextAxisSpatial()

virtual c3d::ItemSPtr ItModelPart::NextAxisSpatial ( ) const
inlinevirtual

Get the next spatial axis.

Returns
Next spatial axis or null in case of depletion.

◆ AddAxisSpatial()

virtual void ItModelPart::AddAxisSpatial ( c3d::ItemSPtr const &  )
inlinevirtual

Get the next spatial axis.

Parameters
[in]groupNext spatial axis.

◆ NextCoordinateSystem()

virtual SPtr<MbAssistingItem> ItModelPart::NextCoordinateSystem ( ) const
inlinevirtual

Get the next coordinate system.

Returns
Next coordinate system or null in case of depletion.

◆ AddCoordinateSystem()

virtual void ItModelPart::AddCoordinateSystem ( SPtr< MbAssistingItem > const &  )
inlinevirtual

Add a coordinate system.

Parameters
[in]groupCoordinate system.

◆ NextBoundaryItem()

virtual c3d::ItemSPtr ItModelPart::NextBoundaryItem ( ) const
inlinevirtual

Get the next item that is the boundary of an area or volume.

Returns
Next item that is the boundary of an area or volume or null in case of depletion.

◆ AddBoundaryItem()

virtual void ItModelPart::AddBoundaryItem ( c3d::ItemSPtr const &  )
inlinevirtual

Add an item that is the boundary of an area or volume.

Parameters
[in]groupNext item that is the boundary of an area or volume.

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