This is the Component Class.
The Dtk_ComponentPtr object is used as element into an assembly tree.
Is typically used as a Part into an Assembly Tree.
.
More...
Public Types | |
enum | ComponentAvailabilityEnum { ComponentMissing = 0, ComponentFound = 1, ComponentInternal = 2, ComponentPhantom = 4, ComponentAdditionnalReference = 8, ComponentAssemblyGeometry = 16, ComponentWithUnavailableReader = 32 } |
enum | ComponentTypeEnum { InstanceComponentType = 0, PrototypeComponentType, CatalogComponentType, VirtualComponentType } |
Public Member Functions | |
void | AddChild (const Dtk_ComponentPtr &inChild) |
Adds a child Dtk_Component to main Component. More... | |
void | AddMetaData (const Dtk_MetaDataPtr &inMetaData) |
Adds a Dtk_MetaDataPtr to the Dtk_DocElement. More... | |
void | AddMetaDataGroup (const Dtk_MetaDataGroupPtr &inMetaDataGroup, Dtk_bool inAddMetadata=DTK_FALSE) |
Adds a Dtk_MetaDataGroupPtr to the Dtk_DocElement. More... | |
DtkErrorStatus | AddOverrideSet (const Dtk_OverrideSetPtr &inOverrideSet) |
Add Override set to a prototype component More... | |
void | AddProperty (const Dtk_PropertiesPtr &inProperty) |
Adds a Dtk_PropertiesPtr to the Dtk_DocElement. More... | |
const ComponentAvailabilityEnum | ComponentAvailability () const |
Give Dtk_Component availability - read only -. More... | |
const ComponentTypeEnum & | ComponentType () const |
Retrieves the Dtk_Component Type - read only -. More... | |
Dtk_NodePtr | CreateAxisSystemNode (Dtk_string inName, const Dtk_ID &inAxisSystemID, const type_detk inSubType=DTK_TYPE_AXIS_SYSTEM) |
Create a AxisSystem Dtk_NodePtr from a AxisSystemPtr. More... | |
Dtk_NodePtr | CreateBodyNode (Dtk_string inName, const Dtk_ID &inBodyID, const Dtk_Int32 inBodyFlag, const type_detk inSubType=DTK_TYPE_BODY) |
Create a Body Dtk_NodePtr from a body ID. More... | |
Dtk_NodePtr | CreateCameraNode (Dtk_string inName, const Dtk_ID &inCameraID) |
Create a Camera Dtk_NodePtr from a Camera. More... | |
Dtk_NodePtr | CreateColorInfosSetNode (Dtk_string inName, const Dtk_ID &inColorInfosSetID) |
Create a ColorInfosSet Dtk_NodePtr from a ColorInfosSetPtr. More... | |
Dtk_NodePtr | CreateConstraintNode (Dtk_string inName, const Dtk_ID &inConstraintID, const type_detk inSubType=DTK_TYPE_CONSTRAINT) |
Create a Constraint Dtk_NodePtr from a Dtk_ConstraintPtr. More... | |
Dtk_NodePtr | CreateDrawingNode (Dtk_string inName, const Dtk_ID &inDrawingID) |
Create a Drawing Dtk_NodePtr from a Dtk_DrawingPtr. More... | |
Dtk_NodePtr | CreateFdtAnnotationSetNode (Dtk_string inName, const Dtk_ID &inAnnotationSetID) |
Create a FdtAnnotationSet Dtk_NodePtr from a Dtk_FdtAnnotationSetPtr ID. More... | |
Dtk_NodePtr | CreateFdtNode (Dtk_string inName, const Dtk_ID &inFdtID, const type_detk inSubType=DTK_TYPE_FDT) |
Create a Fdt Dtk_NodePtr from a Dtk_FdtPtr ID. More... | |
Dtk_NodePtr | CreateKinematicsNode (Dtk_string inName, const Dtk_ID &inKinematicID) |
Create a Kinematic Dtk_NodePtr from a Dtk_KinematicPtr. More... | |
Dtk_NodePtr | CreateLayerInfosSetNode (Dtk_string inName, const Dtk_ID &inLayerInfosSetID) |
Create a LayerInfosSet Dtk_NodePtr from a LayerInfosSetPtr. More... | |
Dtk_NodePtr | CreateMeshNode (Dtk_string inName, const Dtk_ID &inMeshID, const Dtk_Int32 inMeshFlag, const type_detk inSubType=DTK_TYPE_MESH) |
Create a Mesh Dtk_NodePtr from a Mesh ID. More... | |
Dtk_NodePtr | CreateMetaDataNode (Dtk_string inName, const Dtk_ID &inMetaDataID, const type_detk inSubType=DTK_TYPE_METADATA) |
Create a MetaData Dtk_NodePtr from a Dtk_MetaDataPtr. More... | |
Dtk_NodePtr | CreateModelDisplayNode (Dtk_string inName, const Dtk_ID &inDisplayModelID, const type_detk inSubType=DTK_TYPE_NO_SUBTYPE) |
Create a ModelDisplay Dtk_NodePtr from a DisplayModel. More... | |
Dtk_NodePtr | CreateVirtualNode (Dtk_string inName, const type_detk inSubType=DTK_TYPE_NO_SUBTYPE) |
Create a Virtual Dtk_NodePtr. More... | |
Dtk_ErrorStatus | DevalidateNode (const Dtk_NodeID &inNodeID) |
Devalidates Component into MainDoc. More... | |
Dtk_Int32 | DtkDynamicType (const int &inId) |
Retrieves the dynamic entity type. More... | |
virtual void | dump (FILE *file=stdout) |
const Dtk_string & | FullPathName () const |
Retrieves the Dtk_Component FullPathName - read only -. More... | |
Dtk_tab< Dtk_Int32 > | GetActivatedChildrenInCatalog () const |
Return Activated Children Index or empty array if Component isn't a catalog. More... | |
const DtkReaderType & | GetAssociatedModuleType () const |
Retrieves the Dtk_Component AssociatedModuleType - read only -. More... | |
Dtk_ErrorStatus | GetBoundingBox (Dtk_pnt &outMin, Dtk_pnt &outMax) |
Get BoundingBox on Prototype Component if it can be read in original file. More... | |
const Dtk_ComponentPtr | GetChild (const Dtk_Size_t &inPos) const |
Retrieves the ith Dtk_ComponentPtr - read only -. More... | |
Dtk_ErrorStatus | GetConceptionUnitScale (Dtk_Double64 &outUnitScale) const |
Get the Original Units for documents - geometrical data are given in MM (Scale to MM) /! More... | |
Dtk_ErrorStatus | GetConnectorsPointingToThisComponent (Dtk_tab< Dtk_NodeConnectorPtr > &outConnectedEntities) |
Retrieves the connectors pointing on this component. More... | |
Dtk_Int32 | GetCurrentLayer () const |
Current layer for Component. More... | |
Dtk_Int32 | GetDefaultChildInCatalog () const |
Return Default Child Index or -1 if Component isn't a catalog. More... | |
Dtk_ID | GetFatherID (Dtk_Size_t inIndex) const |
Retrieves Dtk_DocElement ith FatherID - read only -. More... | |
Dtk_NodePtr | GetFatherNode (const Dtk_NodePtr &inNode) const |
Retrieves the father Dtk_NodePtr of the given Dtk_NodePtr. More... | |
const Dtk_string & | GetFileVersion () const |
Get File Version. More... | |
const Dtk_GlobalDataSetPtr | GetGlobalDataSet () const |
Retrieve the Dtk_GlobalDataSetPtr attached to the Dtk_Component - get only -. More... | |
Dtk_ID | GetID () const |
Retrieves the Dtk_DocElement ID - read only -. More... | |
Dtk_InfoPtr | GetInfos () const |
Retrieves the Dtk_DocElement Dtk_InfoPtr - read only -. More... | |
Dtk_MaterialPtr | GetMaterial () const |
Retrieves the Dtk_DocElement Dtk_MaterialPtr - read only -. More... | |
Dtk_MetaDataPtr | GetMetaData (const Dtk_Size_t &inPos) const |
Retrieves the ith Dtk_MetaDataPtr - read only -. More... | |
Dtk_MetaDataGroupPtr | GetMetaDataGroup (const Dtk_Size_t &inPos) const |
Retrieves the ith Dtk_MetaDataGrouplPtr - read only -. More... | |
Dtk_NodePtr | GetNodeByID (const Dtk_NodeID &inNodeID) const |
Retrieves a Dtk_NodePtr from the Dtk_Component NodesPool giving his Id. More... | |
Dtk_Size_t | GetNumChildren () const |
Retrieves the number of the Dtk_DocElement children - read only -. More... | |
Dtk_Size_t | GetNumFathers () const |
GetNumFather. More... | |
Dtk_Size_t | GetNumMetaData () const |
Retrieves the number of the Dtk_MetaDataPtr - read only -. More... | |
Dtk_Size_t | GetNumMetaDataGroup () const |
Retrieves the number of the Dtk_MetaDataGroupPtr - read only -. More... | |
Dtk_Size_t | GetNumNodes () const |
Give number of Nodes in the Component (useful if you want to handle progress bar). More... | |
Dtk_Size_t | GetNumOverrideSets () const |
Give number of Override sets in a prototype component More... | |
DtkErrorStatus | GetOverrideSets (Dtk_tab< Dtk_OverrideSetPtr > &outOverrideSet) const |
Give array of Override sets in a prototype component More... | |
Dtk_PreviewPtr | GetPreview () const |
Retrieves the Dtk_DocElement Dtk_PreviewPtr - read only -. More... | |
void | GetReadID (Dtk_ID &outReadID) const |
void | GetSelectableLayers (Dtk_tab< Dtk_Int32 > &outSelectableLayers) const |
Selectable layer for Component. More... | |
DtkErrorStatus | GetSiblingName (Dtk_string &outSiblingName) const |
SiblingName for Component. More... | |
virtual Dtk_Size_t | GetSize () const |
void | GetVisibleLayers (Dtk_tab< Dtk_Int32 > &outVisibleLayers) const |
Visible layer for Component. More... | |
const Dtk_string & | InstanceName () const |
Retrieves the Dtk_Component InstanceName - read only -. More... | |
Dtk_bool | IsAdditionnalReference () const |
Return DTK_TRUE if Dtk_Component is Additionnal Reference. More... | |
Dtk_bool | IsAssembly () const |
Return DTK_TRUE if Dtk_Component is an assembly. More... | |
Dtk_string & | Name () |
const Dtk_string & | Name () const |
Retrieves the Dtk_DocElement Name - read only -. More... | |
const Dtk_string & | OriginalPathName () const |
Retrieves the Dtk_Component OriginalPathName (read in file) - read only -. More... | |
void | ReleasePreview () |
Dtk_ErrorStatus | ReplaceChildComponent (const Dtk_Size_t &inPos, const Dtk_ComponentPtr &inNewChild) |
Replaces a child Dtk_ComponentPtr by another one. Also updates father lists. More... | |
SetAsDeprecated ("2022.1", "Use Dtk_Component::GetConceptionUnitScale(Dtk_Double64 &outUnitScale) method instead.") Dtk_Double64 GetConceptionUnitScale() const | |
Get the Original Units for documents. More... | |
Dtk_ErrorStatus | SetComponentAvailability (const ComponentAvailabilityEnum &inComponentAvailability) |
void | SetConceptionUnitScale (Dtk_Double64 inUnitScale) |
void | SetCurrentLayer (Dtk_Int32 inCurrentLayer) |
void | SetFileVersion (const Dtk_string &inFileVersion) |
void | SetInfos (const Dtk_InfoPtr &inInfos) |
void | SetMaterial (Dtk_MaterialPtr inMaterial) |
void | SetPreview (Dtk_PreviewPtr inPreview) |
void | SetReadID (const Dtk_ID &inNewID) |
void | SetSelectableLayers (const Dtk_tab< Dtk_Int32 > &inSelectableLayers) |
void | SetSelectionDataSet (const Dtk_SelectionDataSetPtr &inSelectionDataSet) |
Attach SelectionDataSet infos to the Dtk_Component - through the Dtk_GlobalDataSetPtr -. More... | |
DtkErrorStatus | SetSiblingName (const Dtk_string &inSiblingName) |
void | SetVisibleLayers (const Dtk_tab< Dtk_Int32 > &inVisibleLayers) |
const Dtk_transfo & | TransformationMatrix () const |
Retrieves the Dtk_Component TransformationMatrix - read only -. More... | |
Static Public Member Functions | |
static Dtk_string | ComponentAvailabilityEnumToString (const ComponentAvailabilityEnum &inEnum) |
static Dtk_string | ComponentTypeEnumToString (const ComponentTypeEnum &inEnum) |
static Dtk_Int32 | ComponentTypeStringToInt (const Dtk_string &name) |
static Dtk_Component * | DtkDynamicCast (Dtk_Object *s) |
Performs a dynamic cast - doesn't need RTTI -. More... | |
Protected Types | |
enum | { _typeID = DTK_TYPE_DOC_ELEMENT } |
enum | { _typeID = DTK_TYPE_COMPONENT } |
Protected Member Functions | |
void | _AddChild (const Dtk_DocElementPtr &inChild) |
Adds a child Dtk_DocElement to main Element. More... | |
void | _Copy (const Dtk_Node &s) |
void | _copy (const Dtk_Object &s) |
const Dtk_DocElementPtr | _GetChild (const Dtk_Size_t &inPos) const |
Retrieves the ith Dtk_DocElement - read only -. More... | |
void | _init () |
void | _ReleaseNodes () |
void | _ReleaseVolatileData () |
Dtk_ErrorStatus | _ReplaceChild (const Dtk_Size_t &inPos, const Dtk_DocElementPtr &inNewChild) |
Replaces a child by another one. Also update father lists. More... | |
void | _reset () |
Protected Attributes | |
Dtk_Handle * | _Private |
unsigned long | count_ |
Friends | |
class | Dtk_API |
class | Dtk_MainDoc |
class | Dtk_SmartPtr< Dtk_Component > |
This is the Component Class.
The Dtk_ComponentPtr object is used as element into an assembly tree.
Is typically used as a Part into an Assembly Tree.
.
|
protectedinherited |
Adds a child Dtk_DocElement to main Element.
inChild | The Dtk_DocElement to be added as a child. |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Retrieves the ith Dtk_DocElement - read only -.
inPos | Child element index. |
|
protectedinherited |
|
protected |
|
protected |
|
protectedinherited |
Replaces a child by another one. Also update father lists.
inPos | Old Child element index. |
inNewChild | The Dtk_DocElement replacing the old one |
Internal use only
|
protectedinherited |
void Dtk_Component::AddChild | ( | const Dtk_ComponentPtr & | inChild | ) |
Adds a child Dtk_Component to main Component.
inChild | The Dtk_Component to be added as a child. |
|
inherited |
Adds a Dtk_MetaDataPtr to the Dtk_DocElement.
inMetaData | The Dtk_MetaDataPtr to be added. |
|
inherited |
Adds a Dtk_MetaDataGroupPtr to the Dtk_DocElement.
inMetaDataGroup | The Dtk_MetaDataGroupPtr to be added. |
inAddMetadata | If we also add the metadata of the group to the Dtk_DocElement |
DtkErrorStatus Dtk_Component::AddOverrideSet | ( | const Dtk_OverrideSetPtr & | inOverrideSet | ) |
Add Override set to a prototype component
|
inherited |
Adds a Dtk_PropertiesPtr to the Dtk_DocElement.
inProperty | The Dtk_PropertiesPtr to be added. |
const ComponentAvailabilityEnum Dtk_Component::ComponentAvailability | ( | ) | const |
Give Dtk_Component availability - read only -.
|
static |
const ComponentTypeEnum& Dtk_Component::ComponentType | ( | ) | const |
Retrieves the Dtk_Component Type - read only -.
|
static |
|
static |
Dtk_NodePtr Dtk_Component::CreateAxisSystemNode | ( | Dtk_string | inName, |
const Dtk_ID & | inAxisSystemID, | ||
const type_detk | inSubType = DTK_TYPE_AXIS_SYSTEM |
||
) |
Create a AxisSystem Dtk_NodePtr from a AxisSystemPtr.
inName | Node name. |
inAxisSystemID | AxisPlacementPtr ID. |
Dtk_NodePtr Dtk_Component::CreateBodyNode | ( | Dtk_string | inName, |
const Dtk_ID & | inBodyID, | ||
const Dtk_Int32 | inBodyFlag, | ||
const type_detk | inSubType = DTK_TYPE_BODY |
||
) |
Create a Body Dtk_NodePtr from a body ID.
inName | Node name. |
inBodyID | Body Id. |
inBodyFlag | Body Info : Wire,Solid, MeshSurface and/or Surface. |
Dtk_NodePtr Dtk_Component::CreateCameraNode | ( | Dtk_string | inName, |
const Dtk_ID & | inCameraID | ||
) |
Create a Camera Dtk_NodePtr from a Camera.
inName | Node name. |
inCameraID | Camera ID. |
Dtk_NodePtr Dtk_Component::CreateColorInfosSetNode | ( | Dtk_string | inName, |
const Dtk_ID & | inColorInfosSetID | ||
) |
Create a ColorInfosSet Dtk_NodePtr from a ColorInfosSetPtr.
inName | Node name. |
inColorInfosSetID | ColorInfosSetPtr ID. |
Dtk_NodePtr Dtk_Component::CreateConstraintNode | ( | Dtk_string | inName, |
const Dtk_ID & | inConstraintID, | ||
const type_detk | inSubType = DTK_TYPE_CONSTRAINT |
||
) |
Create a Constraint Dtk_NodePtr from a Dtk_ConstraintPtr.
inName | Node name. |
inConstraintID | Dtk_ConstraintPtr ID. |
Dtk_NodePtr Dtk_Component::CreateDrawingNode | ( | Dtk_string | inName, |
const Dtk_ID & | inDrawingID | ||
) |
Create a Drawing Dtk_NodePtr from a Dtk_DrawingPtr.
inName | Node name. |
inDrawingID | Dtk_DrawingPtr ID. |
Dtk_NodePtr Dtk_Component::CreateFdtAnnotationSetNode | ( | Dtk_string | inName, |
const Dtk_ID & | inAnnotationSetID | ||
) |
Create a FdtAnnotationSet Dtk_NodePtr from a Dtk_FdtAnnotationSetPtr ID.
inName | Node name. |
inAnnotationSetID | Dtk_FdtAnnotationSetPtr ID. |
Dtk_NodePtr Dtk_Component::CreateFdtNode | ( | Dtk_string | inName, |
const Dtk_ID & | inFdtID, | ||
const type_detk | inSubType = DTK_TYPE_FDT |
||
) |
Create a Fdt Dtk_NodePtr from a Dtk_FdtPtr ID.
inName | Node name. |
inFdtID | Dtk_FdtPtr ID. |
Dtk_NodePtr Dtk_Component::CreateKinematicsNode | ( | Dtk_string | inName, |
const Dtk_ID & | inKinematicID | ||
) |
Create a Kinematic Dtk_NodePtr from a Dtk_KinematicPtr.
inName | Node name. |
inKinematicData | Dtk_KinematicPtr data. |
Dtk_NodePtr Dtk_Component::CreateLayerInfosSetNode | ( | Dtk_string | inName, |
const Dtk_ID & | inLayerInfosSetID | ||
) |
Create a LayerInfosSet Dtk_NodePtr from a LayerInfosSetPtr.
inName | Node name. |
inLayerInfosSetID | LayerInfosSetPtr ID. |
Dtk_NodePtr Dtk_Component::CreateMeshNode | ( | Dtk_string | inName, |
const Dtk_ID & | inMeshID, | ||
const Dtk_Int32 | inMeshFlag, | ||
const type_detk | inSubType = DTK_TYPE_MESH |
||
) |
Create a Mesh Dtk_NodePtr from a Mesh ID.
inName | Node name. |
inMeshID | Mesh Id. |
Dtk_NodePtr Dtk_Component::CreateMetaDataNode | ( | Dtk_string | inName, |
const Dtk_ID & | inMetaDataID, | ||
const type_detk | inSubType = DTK_TYPE_METADATA |
||
) |
Create a MetaData Dtk_NodePtr from a Dtk_MetaDataPtr.
inName | Node name. |
inMetaDataID | Dtk_MetaDataPtr ID. |
Dtk_NodePtr Dtk_Component::CreateModelDisplayNode | ( | Dtk_string | inName, |
const Dtk_ID & | inDisplayModelID, | ||
const type_detk | inSubType = DTK_TYPE_NO_SUBTYPE |
||
) |
Create a ModelDisplay Dtk_NodePtr from a DisplayModel.
inName | Node name. |
inModelDisplayID | DisplayModel ID. |
Dtk_NodePtr Dtk_Component::CreateVirtualNode | ( | Dtk_string | inName, |
const type_detk | inSubType = DTK_TYPE_NO_SUBTYPE |
||
) |
Create a Virtual Dtk_NodePtr.
inName | Node name. |
Dtk_ErrorStatus Dtk_Component::DevalidateNode | ( | const Dtk_NodeID & | inNodeID | ) |
Devalidates Component into MainDoc.
inNodeID | The NodeID to devalidate. |
|
static |
Performs a dynamic cast - doesn't need RTTI -.
|
virtual |
Retrieves the dynamic entity type.
Reimplemented from Dtk_DocElement.
|
virtualinherited |
const Dtk_string& Dtk_Component::FullPathName | ( | ) | const |
Retrieves the Dtk_Component FullPathName - read only -.
Return Activated Children Index or empty array if Component isn't a catalog.
const DtkReaderType& Dtk_Component::GetAssociatedModuleType | ( | ) | const |
Retrieves the Dtk_Component AssociatedModuleType - read only -.
Dtk_ErrorStatus Dtk_Component::GetBoundingBox | ( | Dtk_pnt & | outMin, |
Dtk_pnt & | outMax | ||
) |
Get BoundingBox on Prototype Component if it can be read in original file.
[out] | outMin | Resulting minimum coordinates |
[out] | outMax | Resulting maximum coordinates |
const Dtk_ComponentPtr Dtk_Component::GetChild | ( | const Dtk_Size_t & | inPos | ) | const |
Retrieves the ith Dtk_ComponentPtr - read only -.
inPos | Child component index. |
Dtk_ErrorStatus Dtk_Component::GetConceptionUnitScale | ( | Dtk_Double64 & | outUnitScale | ) | const |
Get the Original Units for documents - geometrical data are given in MM (Scale to MM) /!
[out] | outUnitScale | : Unit Scale (1.0 for MM) /! |
Dtk_ErrorStatus Dtk_Component::GetConnectorsPointingToThisComponent | ( | Dtk_tab< Dtk_NodeConnectorPtr > & | outConnectedEntities | ) |
Retrieves the connectors pointing on this component.
Dtk_Int32 Dtk_Component::GetCurrentLayer | ( | ) | const |
Current layer for Component.
Dtk_Int32 Dtk_Component::GetDefaultChildInCatalog | ( | ) | const |
Return Default Child Index or -1 if Component isn't a catalog.
|
inherited |
Retrieves Dtk_DocElement ith FatherID - read only -.
Dtk_NodePtr Dtk_Component::GetFatherNode | ( | const Dtk_NodePtr & | inNode | ) | const |
Retrieves the father Dtk_NodePtr of the given Dtk_NodePtr.
inNode | The Dtk_NodePtr from which we want the father. |
const Dtk_string& Dtk_Component::GetFileVersion | ( | ) | const |
Get File Version.
const Dtk_GlobalDataSetPtr Dtk_Component::GetGlobalDataSet | ( | ) | const |
Retrieve the Dtk_GlobalDataSetPtr attached to the Dtk_Component - get only -.
|
inherited |
Retrieves the Dtk_DocElement ID - read only -.
|
inherited |
Retrieves the Dtk_DocElement Dtk_InfoPtr - read only -.
|
inherited |
Retrieves the Dtk_DocElement Dtk_MaterialPtr - read only -.
|
inherited |
Retrieves the ith Dtk_MetaDataPtr - read only -.
inPos | Metadata index. |
|
inherited |
Retrieves the ith Dtk_MetaDataGrouplPtr - read only -.
inPos | Group index. |
Dtk_NodePtr Dtk_Component::GetNodeByID | ( | const Dtk_NodeID & | inNodeID | ) | const |
Retrieves a Dtk_NodePtr from the Dtk_Component NodesPool giving his Id.
inNodeID | Wanted Dtk_NodePtr Id. |
|
inherited |
Retrieves the number of the Dtk_DocElement children - read only -.
|
inherited |
GetNumFather.
|
inherited |
Retrieves the number of the Dtk_MetaDataPtr - read only -.
|
inherited |
Retrieves the number of the Dtk_MetaDataGroupPtr - read only -.
Dtk_Size_t Dtk_Component::GetNumNodes | ( | ) | const |
Give number of Nodes in the Component (useful if you want to handle progress bar).
Dtk_Size_t Dtk_Component::GetNumOverrideSets | ( | ) | const |
Give number of Override sets in a prototype component
DtkErrorStatus Dtk_Component::GetOverrideSets | ( | Dtk_tab< Dtk_OverrideSetPtr > & | outOverrideSet | ) | const |
Give array of Override sets in a prototype component
|
inherited |
Retrieves the Dtk_DocElement Dtk_PreviewPtr - read only -.
|
inherited |
Selectable layer for Component.
DtkErrorStatus Dtk_Component::GetSiblingName | ( | Dtk_string & | outSiblingName | ) | const |
SiblingName for Component.
|
virtualinherited |
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_mesh_face, Dtk_mesh, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, Dtk_Point, Dtk_Entity, and Dtk_Info.
Visible layer for Component.
const Dtk_string& Dtk_Component::InstanceName | ( | ) | const |
Retrieves the Dtk_Component InstanceName - read only -.
Dtk_bool Dtk_Component::IsAdditionnalReference | ( | ) | const |
Return DTK_TRUE if Dtk_Component is Additionnal Reference.
Dtk_bool Dtk_Component::IsAssembly | ( | ) | const |
Return DTK_TRUE if Dtk_Component is an assembly.
|
inherited |
|
inherited |
Retrieves the Dtk_DocElement Name - read only -.
const Dtk_string& Dtk_Component::OriginalPathName | ( | ) | const |
Retrieves the Dtk_Component OriginalPathName (read in file) - read only -.
|
inherited |
Dtk_ErrorStatus Dtk_Component::ReplaceChildComponent | ( | const Dtk_Size_t & | inPos, |
const Dtk_ComponentPtr & | inNewChild | ||
) |
Replaces a child Dtk_ComponentPtr by another one. Also updates father lists.
inPos | Old Child Dtk_ComponentPtr element index. |
inNewChild | The Dtk_ComponentPtr replacing the old one |
Internal use only
Dtk_Component::SetAsDeprecated | ( | "2022.1" | , |
"Use Dtk_Component::GetConceptionUnitScale(Dtk_Double64 &outUnitScale) method instead." | |||
) | const |
Get the Original Units for documents.
Dtk_ErrorStatus Dtk_Component::SetComponentAvailability | ( | const ComponentAvailabilityEnum & | inComponentAvailability | ) |
void Dtk_Component::SetConceptionUnitScale | ( | Dtk_Double64 | inUnitScale | ) |
void Dtk_Component::SetCurrentLayer | ( | Dtk_Int32 | inCurrentLayer | ) |
void Dtk_Component::SetFileVersion | ( | const Dtk_string & | inFileVersion | ) |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
void Dtk_Component::SetSelectionDataSet | ( | const Dtk_SelectionDataSetPtr & | inSelectionDataSet | ) |
Attach SelectionDataSet infos to the Dtk_Component - through the Dtk_GlobalDataSetPtr -.
DtkErrorStatus Dtk_Component::SetSiblingName | ( | const Dtk_string & | inSiblingName | ) |
const Dtk_transfo& Dtk_Component::TransformationMatrix | ( | ) | const |
Retrieves the Dtk_Component TransformationMatrix - read only -.
|
friend |
|
friend |
|
friend |
|
protected |
|
protectedinherited |