 |
DATAKIT API
V2025.4
|
|
Go to the documentation of this file. 1 #ifndef __UTIL_DTK_DOCUMENT_HPP__
2 #define __UTIL_DTK_DOCUMENT_HPP__
294 case FdtType:
return L
"FdtType";
305 default:
return L
"Unknown";
311 if( type == L
"NullType" )
313 else if( type == L
"BodyType" )
315 else if( type == L
"MeshType" )
317 else if( type == L
"AnnotationSetType" )
319 else if( type == L
"FdtType" )
321 else if( type == L
"DrawingType" )
323 else if( type == L
"KinematicsType" )
325 else if( type == L
"AxisSystemType" )
327 else if (type == L
"LayerInfosSetType")
329 else if (type == L
"ColorInfosSetType")
331 else if( type == L
"MetaDataType" )
333 else if( type == L
"VirtualType" )
335 else if (type == L
"ModelDisplayType")
337 else if (type == L
"CameraType")
339 else if (type == L
"ConstraintType")
587 default:
return L
"Unknown";
600 default:
return L
"Unknown";
610 if( name == L
"CatalogComponentType" )
612 else if( name == L
"VirtualComponentType" )
614 else if( name == L
"InstanceComponentType" )
616 else if( name == L
"PrototypeComponentType" )
641 const Dtk_Int32& inAdditionnalReferenceFlag,
653 void _CheckGlobalDataSet();
654 void _CheckFdtDataSet();
764 const Dtk_ID& inKinematicID);
830 SetAsDeprecated(
"2022.1",
"Use Dtk_Component::GetConceptionUnitScale(Dtk_Double64 &outUnitScale) method instead.")
910 friend class Dtk_MainDocWrapper;
984 const int inAdditionnalReferenceFlag = 0,
1132 case VerticallyAligned:
return L
"VerticallyAligned";
1133 case HorizontallyAligned:
return L
"HorizontallyAligned";
1134 case StackedLeft:
return L
"StackedLeft";
1135 case StackedRight:
return L
"StackedRight";
1136 case StackedAbove:
return L
"StackedAbove";
1137 case StackedBelow:
return L
"StackedBelow";
1138 case PositionallyFixed:
return L
"PositionallyFixed";
1139 case OrientationallyFixed:
return L
"OrientationallyFixed";
1140 case ForceHidden:
return L
"ForceHidden";
1141 case ForceVisible:
return L
"ForceVisible";
1142 case ForceClipped:
return L
"ForceClipped";
1143 case KeepOnlyFdt:
return L
"KeepOnlyFdt";
1145 case AssociatedGeometry:
return L
"AssociatedGeometry";
1146 case AssociatedFeature:
return L
"AssociatedFeature";
1147 case SubPMI:
return L
"SubPMI";
1148 case DefaultAnnotationLink:
return L
"DefaultAnnotationLink";
1149 case HighlightedGeometry:
return L
"HighlightedGeometry";
1150 case Support:
return L
"Support";
1151 case AssociatedAxisSystem:
return L
"AssociatedAxisSystem";
1152 case AssociatedXDirection:
return L
"AssociatedXDirection";
1153 case AssociatedYDirection:
return L
"AssociatedYDirection";
1154 case AssociatedZDirection:
return L
"AssociatedZDirection";
1155 case AssociatedCenterPoint:
return L
"AssociatedCenterPoint";
1157 case Context:
return L
"Context";
1159 case FirstRefBlockSituation_Common:
return L
"FirstRefBlockSituation_Common";
1160 case FirstRefBlockSituation_1:
return L
"FirstRefBlockSituation_1";
1161 case FirstRefBlockSituation_2:
return L
"FirstRefBlockSituation_2";
1162 case FirstRefBlockSituation_3:
return L
"FirstRefBlockSituation_3";
1164 case SecondRefBlockSituation_Common:
return L
"SecondRefBlockSituation_Common";
1165 case SecondRefBlockSituation_1:
return L
"SecondRefBlockSituation_1";
1166 case SecondRefBlockSituation_2:
return L
"SecondRefBlockSituation_2";
1167 case SecondRefBlockSituation_3:
return L
"SecondRefBlockSituation_3";
1169 case ThirdRefBlockSituation_Common:
return L
"ThirdRefBlockSituation_Common";
1170 case ThirdRefBlockSituation_1:
return L
"ThirdRefBlockSituation_1";
1171 case ThirdRefBlockSituation_2:
return L
"ThirdRefBlockSituation_2";
1172 case ThirdRefBlockSituation_3:
return L
"ThirdRefBlockSituation_3";
1174 default:
return L
"Unknown";
1181 UnknownCategory = 0,
1194 case PlacementCategory:
return L
"PlacementCategory";
1195 case GeneralAssociationCategory:
return L
"GeneralAssociationCategory";
1196 case VisibilityCategory:
return L
"VisibilityCategory";
1197 case FirstRefBlockSituationCategory:
return L
"FirstRefBlockSituationCategory";
1198 case SecondRefBlockSituationCategory:
return L
"SecondRefBlockSituationCategory";
1199 case ThirdRefBlockSituationCategory:
return L
"ThirdRefBlockSituationCategory";
1200 default:
return L
"UnknownCategory";
1211 inline SubEntity(
const Dtk_ID inSubEntityID,
const type_detk inSubEntityType ) : _SubEntityID(inSubEntityID), _SubEntityType(inSubEntityType){}
1212 inline SubEntity(
const SubEntity& inTobeCopied ) : _SubEntityID(inTobeCopied._SubEntityID), _SubEntityType(inTobeCopied._SubEntityType){}
void SetNodeId(const Dtk_ID &inNodeId)
Sets the Node id.
FullType(const NodeDataTypeEnum inPrimaryType, const type_detk inSubType)
Definition: dtk_maindoc.hpp:278
@ AnnotationSetType
Definition: dtk_maindoc.hpp:250
Generic Feature All metric data in feature classes are given in MM All angular data are given in degr...
Definition: str_feat_dtk.hpp:6859
ReasonLinkEnum
Reason - Type of the Dtk_NodeConnector -. It's used to filter connectors to same elements.
Definition: dtk_maindoc.hpp:1075
Dtk_NodePtr CreateCameraNode(Dtk_string inName, const Dtk_ID &inCameraID)
Create a Camera Dtk_NodePtr from a Camera.
void SetPointingEntityType(const Dtk_Node::FullType inPointingEntityType)
Sets the pointing entity Type.
@ KeepOnlyFdt
Definition: dtk_maindoc.hpp:1089
@ CaddsReaderModule
Definition: dtk_maindoc.hpp:45
Dtk_ComponentPtr GetComponentByID(const Dtk_ComponentID &inComponentID) const
Retrieves a Dtk_ComponentPtr giving its ID.
@ RnXmlReaderModule
Definition: dtk_maindoc.hpp:59
Dtk_Int32 DtkDynamicType(const int &inId)
Retrieves the dynamic entity type.
uint32_t Dtk_ID
Definition: define.h:691
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
@ HasMeshSurfaces
Definition: dtk_maindoc.hpp:242
@ CerconReaderModule
Definition: dtk_maindoc.hpp:48
void SetPointedEntityType(const type_detk inPointedEntityType)
Sets the pointed entity Type.
This is the Dtk_NodeConnector Class. .
Definition: dtk_maindoc.hpp:1071
Dtk_ID GetFatherID(Dtk_Size_t inIndex) const
Retrieves Dtk_DocElement ith FatherID - read only -.
@ PlmXmlReaderModule
Definition: dtk_maindoc.hpp:55
@ NavisReaderModule
Definition: dtk_maindoc.hpp:77
@ DTK_TYPE_UNKNOWN
Definition: define.h:37
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.
const Dtk_ComponentPtr GetChild(const Dtk_Size_t &inPos) const
Retrieves the ith Dtk_ComponentPtr - read only -.
Definition: dtk_maindoc.hpp:675
Dtk_ModelDisplayPtr GetDtk_ModelDisplayPtr()
Retrieves the Dtk_Node as a Dtk_ModelDisplayPtr - if exists -.
@ Support
Definition: dtk_maindoc.hpp:1118
virtual ~Dtk_DocElement()
Destructor.
@ FdtType
Definition: dtk_maindoc.hpp:251
~FullType()
Definition: dtk_maindoc.hpp:279
SubEntity(const SubEntity &inTobeCopied)
Definition: dtk_maindoc.hpp:1212
@ DTK_TYPE_MESH
Definition: define.h:479
@ CatalogComponentType
Definition: dtk_maindoc.hpp:570
@ _3dmReaderModule
Definition: dtk_maindoc.hpp:60
Dtk_KinematicPtr GetDtk_KinematicPtr()
Retrieves the Dtk_Node as a Dtk_KinematicPtr - if exists -.
BodyNodeDataTypeEnum
Definition: dtk_maindoc.hpp:234
@ HasAxis
Definition: dtk_maindoc.hpp:240
Dtk_ErrorStatus GetSubEntities(Dtk_tab< Dtk_ID > &outEntitiesIDs, Dtk_tab< type_detk > &outEntitiesTypes) const
Retrieves The connected SubEntities - IDs and types -.
void AddChild(const Dtk_ComponentPtr &inChild)
Adds a child Dtk_Component to main Component.
Definition: dtk_maindoc.hpp:669
@ DTK_TYPE_NODE_CONNECTOR
Definition: define.h:485
Dtk_ComponentPtr GetFatherComponent(const Dtk_ComponentPtr &inComponent, Dtk_Size_t inIndex) const
Retrieves the inIndexth father of the giving Dtk_ComponentPtr.
static Dtk_NodeConnectorPtr Create(const Dtk_NodeConnector &in)
Calls copy constructor to allocate a new object.
Dtk_DocElement(const Dtk_ID &inID, Dtk_string inName)
Dtk_NodePtr CreateLayerInfosSetNode(Dtk_string inName, const Dtk_ID &inLayerInfosSetID)
Create a LayerInfosSet Dtk_NodePtr from a LayerInfosSetPtr.
@ VerticallyAligned
Definition: dtk_maindoc.hpp:1078
@ ThirdRefBlockSituation_1
Definition: dtk_maindoc.hpp:1108
void GetVisibleLayers(Dtk_tab< Dtk_Int32 > &outVisibleLayers) const
Visible layer for Component.
@ DTK_TYPE_DOC_ELEMENT
Definition: define.h:512
@ HasSurfaces
Definition: dtk_maindoc.hpp:238
Dtk_Size_t GetNumFathers() const
GetNumFather.
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.
@ _typeID
Definition: dtk_maindoc.hpp:624
@ PsReaderModule
Definition: dtk_maindoc.hpp:40
DtkErrorStatus SetOverrideSets(const Dtk_tab< Dtk_OverrideSetPtr > &inOverrideSets)
Set array of Override sets in a prototype component.
NodeDataTypeEnum PrimaryType() const
Definition: dtk_maindoc.hpp:281
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.
@ StackedBelow
Definition: dtk_maindoc.hpp:1083
@ ForceHidden
Definition: dtk_maindoc.hpp:1086
Dtk_bool NodeHasSolids() const
Return DTK_TRUE if Dtk_Node Type Body contains solid entity.
Dtk_bool NodeHasPoints() const
Return DTK_TRUE if Dtk_Node Type Body or Mesh contains points entity.
Dtk_Handle * _Private
Definition: dtk_maindoc.hpp:105
@ ThirdRefBlockSituation_Common
Definition: dtk_maindoc.hpp:1107
Dtk_Int32 GetCurrentLayer() const
Current layer for Component.
@ HasSolids
Definition: dtk_maindoc.hpp:239
Dtk_tab< Dtk_Int32 > GetActivatedChildrenInCatalog() const
Return Activated Children Index or empty array if Component isn't a catalog.
@ AssociatedYDirection
Definition: dtk_maindoc.hpp:1121
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.
Dtk_MetaDataPtr GetMetaData(const Dtk_Size_t &inPos) const
Retrieves the ith Dtk_MetaDataPtr - read only -.
@ CerecReaderModule
Definition: dtk_maindoc.hpp:49
Dtk_NodeConnector(const Dtk_NodeConnector &in)
Copy constructor.
Dtk_Handle * _Private
Definition: dtk_maindoc.hpp:915
@ FirstRefBlockSituation_3
Definition: dtk_maindoc.hpp:1096
NodeDataTypeEnum
Definition: dtk_maindoc.hpp:246
@ PrcReaderModule
Definition: dtk_maindoc.hpp:73
@ V5ReaderModule
Definition: dtk_maindoc.hpp:30
@ _typeID
Definition: dtk_maindoc.hpp:104
friend class Dtk_Component
Definition: dtk_api.hpp:136
Dtk_NodePtr CreateKinematicsNode(Dtk_string inName, const Dtk_ID &inKinematicID)
Create a Kinematic Dtk_NodePtr from a Dtk_KinematicPtr.
@ ModelDisplayType
Definition: dtk_maindoc.hpp:258
Dtk_SmartPtr< Dtk_Kinematic > Dtk_KinematicPtr
Definition: dtk_maindoc.hpp:24
@ SatReaderModule
Definition: dtk_maindoc.hpp:42
void _Copy(const Dtk_Node &s)
Dtk_Handle * _Private
Definition: dtk_maindoc.hpp:1222
@ AssociatedAxisSystem
Definition: dtk_maindoc.hpp:1119
@ Zw3dReaderModule
Definition: dtk_maindoc.hpp:80
Dtk_Handle * _Private
Definition: dtk_maindoc.hpp:347
This is a high level string class.
Definition: dtk_string.hpp:58
@ StackedAbove
Definition: dtk_maindoc.hpp:1082
Dtk_bool NodeHasMeshSurfaces() const
Return DTK_TRUE if Dtk_Node Type Body contains mesh surface entity.
size_t Dtk_Size_t
Definition: define.h:714
Definition: dtk_maindoc.hpp:1205
void SetMultiModelFlag(Dtk_bool inMultiModelFlag)
Set flag to indicate that document contains several independant models.
void _ReleaseComponents()
Dtk_bool IsAdditionnalReference() const
Return DTK_TRUE if Dtk_Component is Additionnal Reference.
@ KinematicsType
Definition: dtk_maindoc.hpp:253
DtkErrorStatus SetSiblingName(const Dtk_string &inSiblingName)
@ XmlReaderModule
Definition: dtk_maindoc.hpp:52
@ DTK_TYPE_AXIS_SYSTEM
Definition: define.h:45
type_detk SubType() const
Definition: dtk_maindoc.hpp:282
FullType()
Definition: dtk_maindoc.hpp:280
static Dtk_DocElement * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
Dtk_NodePtr CreateColorInfosSetNode(Dtk_string inName, const Dtk_ID &inColorInfosSetID)
Create a ColorInfosSet Dtk_NodePtr from a ColorInfosSetPtr.
void AddProperty(const Dtk_PropertiesPtr &inProperty)
Adds a Dtk_PropertiesPtr to the Dtk_DocElement.
void AddMetaDataGroup(const Dtk_MetaDataGroupPtr &inMetaDataGroup, Dtk_bool inAddMetadata=DTK_FALSE)
Adds a Dtk_MetaDataGroupPtr to the Dtk_DocElement.
Dtk_bool NodeHasAxis() const
Return DTK_TRUE if Dtk_Node Type Body contains axis entity.
@ PlacementCategory
Definition: dtk_maindoc.hpp:1182
@ SecondRefBlockSituationCategory
Definition: dtk_maindoc.hpp:1187
@ SecondRefBlockSituation_2
Definition: dtk_maindoc.hpp:1102
Dtk_NodePtr CreateDrawingNode(Dtk_string inName, const Dtk_ID &inDrawingID)
Create a Drawing Dtk_NodePtr from a Dtk_DrawingPtr.
Dtk_ID Dtk_NodeID
Definition: dtk_maindoc.hpp:87
@ UnknownModule
Definition: dtk_maindoc.hpp:82
@ HasCurves
Definition: dtk_maindoc.hpp:237
@ BodyType
Definition: dtk_maindoc.hpp:248
const Dtk_DocElementPtr _GetChild(const Dtk_Size_t &inPos) const
Retrieves the ith Dtk_DocElement - read only -.
Dtk_Node::FullType GetPointingEntityType() const
Retrieves the pointing entity FullType. Should be the FullType of the Dtk_Node containing the Dtk_Nod...
@ CameraType
Definition: dtk_maindoc.hpp:259
@ F3dReaderModule
Definition: dtk_maindoc.hpp:74
#define DTK_FALSE
Definition: define.h:730
@ StlReaderModule
Definition: dtk_maindoc.hpp:67
Dtk_CameraPtr GetDtk_CameraPtr()
Retrieves the Dtk_Node as a Dtk_CameraPtr - if exists -.
char Dtk_bool
Definition: define.h:727
@ ProCeraReaderModule
Definition: dtk_maindoc.hpp:47
Dtk_ErrorStatus _ReplaceChild(const Dtk_Size_t &inPos, const Dtk_DocElementPtr &inNewChild)
Replaces a child by another one. Also update father lists.
virtual Dtk_Object * Clone()
Definition: dtk_maindoc.hpp:1239
@ AcisReaderModule
Definition: dtk_maindoc.hpp:46
const ComponentAvailabilityEnum ComponentAvailability() const
Give Dtk_Component availability - read only -.
void SetVisibleLayers(const Dtk_tab< Dtk_Int32 > &inVisibleLayers)
Dtk_ErrorStatus DevalidateComponent(const Dtk_ComponentID &inComponentID)
Devalidates Component into MainDoc.
Dtk_ErrorStatus ReplaceChildComponent(const Dtk_Size_t &inPos, const Dtk_ComponentPtr &inNewChild)
Replaces a child Dtk_ComponentPtr by another one. Also updates father lists.
Definition: dtk_maindoc.hpp:685
DtkReaderType
Definition: dtk_maindoc.hpp:29
Dtk_AxisSystemPtr GetDtk_AxisSystemPtr()
Retrieves the Dtk_Node as a Dtk_AxisSystemPtr - if exists -.
This is the Document Class. The Dtk_MainDocPtr object is used as root element produced by a translati...
Definition: dtk_maindoc.hpp:909
ComponentAvailabilityEnum
Definition: dtk_maindoc.hpp:557
@ ThirdRefBlockSituation_3
Definition: dtk_maindoc.hpp:1110
@ SwReaderModule
Definition: dtk_maindoc.hpp:36
@ VirtualComponentType
Definition: dtk_maindoc.hpp:571
const Dtk_NodePtr GetChild(const Dtk_Size_t &inPos) const
Retrieves the ith Dtk_Node - read only -.
Definition: dtk_maindoc.hpp:384
double Dtk_Double64
Definition: define.h:701
Dtk_ComponentPtr CreatePrototypeDtk_Component(Dtk_string inComponentFullPath, Dtk_string inComponentName, const DtkReaderType &inAssociatedModule, const Dtk_Component::ComponentAvailabilityEnum &inAvailability, const int inAdditionnalReferenceFlag=0, Dtk_string inOriginalName=Dtk_string())
Creates a Prototype Dtk_ComponentPtr. This type handles Assemblies and part components.
@ UnknownType
Definition: dtk_maindoc.hpp:235
Dtk_bool IsMultiModel() const
Indicate that document contains several independant models.
DtkErrorStatus GetOverrideSets(Dtk_tab< Dtk_OverrideSetPtr > &outOverrideSet) const
Give array of Override sets in a prototype component
Dtk_LayerInfosSetPtr GetDtk_LayerInfosSetPtr()
Retrieves the Dtk_Node as a Dtk_LayerInfosSetPtr - if exists -.
This is a high level mesh class.
Definition: util_mesh_dtk.hpp:485
void SetSelectionDataSet(const Dtk_SelectionDataSetPtr &inSelectionDataSet)
Attach SelectionDataSet infos to the Dtk_Component - through the Dtk_GlobalDataSetPtr -.
@ InstanceComponentType
Definition: dtk_maindoc.hpp:568
Dtk_Int32 GetDefaultChildInCatalog() const
Return Default Child Index or -1 if Component isn't a catalog.
Dtk_ErrorStatus GetAssociatedEntities(Dtk_tab< Dtk_NodeConnectorPtr > &outAssociatedEntities)
Retrieves the entities associated to the Dtk_Node. They are retrieved via Dtk_NodeConnectorPtr.
Dtk_Kinematic represents a kinematic.
Definition: util_kinematics_dtk.hpp:1828
@ DTK_TYPE_NODE
Definition: define.h:513
@ CgrReaderModule
Definition: dtk_maindoc.hpp:44
Dtk_NodePtr CreateVirtualNode(Dtk_string inName, const type_detk inSubType=DTK_TYPE_NO_SUBTYPE)
Create a Virtual Dtk_NodePtr.
@ ObjReaderModule
Definition: dtk_maindoc.hpp:62
@ QifReaderModule
Definition: dtk_maindoc.hpp:78
Dtk_Int32 CheckAssociatedPathComponentID(const Dtk_MainDocPtr &inMainDocPtr)
Checks if the Path Component ID exist into Dtk_MainDocPtr.
void SetInfos(const Dtk_InfoPtr &inInfos)
NodeDataTypeEnum GetNodeType() const
Retrieves the Dtk_Node Node Type - read only -.
Dtk_DrawingPtr GetDtk_DrawingPtr()
Retrieves the Dtk_Node as a Dtk_DrawingPtr - if exists -.
const ComponentTypeEnum & ComponentType() const
Retrieves the Dtk_Component Type - read only -.
@ AssociatedGeometry
Definition: dtk_maindoc.hpp:1113
const Dtk_Node::FullType GetNodeFullType() const
Retrieves the Node FullType - Primary ans Sub Type - - read only -.
void SetCurrentLayer(Dtk_Int32 inCurrentLayer)
void AddAssociatedEntities(const Dtk_tab< Dtk_NodeConnectorPtr > &inAssociatedEntities)
Adds associated entities - Dtk_NodeConnectorPtr - to the Dtk_Node.
Dtk_Size_t GetSubEntitiesNb() const
Returns the number of the geometric entities.
@ ComponentFound
Definition: dtk_maindoc.hpp:559
Dtk_Int32 DtkDynamicType(const int &inId)
Retrieves the dynamic entity type.
@ DxfReaderModule
Definition: dtk_maindoc.hpp:54
@ ComponentAssemblyGeometry
Definition: dtk_maindoc.hpp:563
Dtk_ErrorStatus GetConceptionUnitScale(Dtk_Double64 &outUnitScale) const
Get the Original Units for documents - geometrical data are given in MM (Scale to MM) /!
~Dtk_NodeConnector()
Destructor.
@ U3dReaderModule
Definition: dtk_maindoc.hpp:57
const Dtk_string & Name() const
Retrieves the Dtk_DocElement Name - read only -.
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.
const Dtk_string & GetFileVersion() const
Get File Version.
static Dtk_NodeConnectorPtr Create()
Calls default constructor to allocate a new object.
Dtk_bool IsAssembly() const
Return DTK_TRUE if Dtk_Component is an assembly.
@ IgesReaderModule
Definition: dtk_maindoc.hpp:38
ReasonCategoryEnum
Reason Category. Global Category of the NodeConnector uesed to gather Reason into families.
Definition: dtk_maindoc.hpp:1180
Dtk_ComponentPtr CreateCatalogDtk_Component(Dtk_string inComponentFullPath, Dtk_string inComponentName, Dtk_string inInstanceName, const Dtk_transfo &inTransformationMatrix, const DtkReaderType &inAssociatedModule=UnknownModule, const Dtk_Component::ComponentAvailabilityEnum &inAvailability=Dtk_Component::ComponentInternal, Dtk_string inOriginalName=Dtk_string())
Creates a Catalog Dtk_ComponentPtr.
@ AssociatedCenterPoint
Definition: dtk_maindoc.hpp:1123
Dtk_ErrorStatus AddSubEntity(const SubEntity &inSubEntity)
Add a SubEntity - defined by their IDs and Types - to the SubEntities list.
@ _3dXmlReaderModule
Definition: dtk_maindoc.hpp:51
@ MaxNodeDataType
Definition: dtk_maindoc.hpp:262
@ HasPoints
Definition: dtk_maindoc.hpp:236
@ ComponentAdditionnalReference
Definition: dtk_maindoc.hpp:562
@ StackedRight
Definition: dtk_maindoc.hpp:1081
@ DTK_TYPE_METADATA
Definition: define.h:518
@ V6ReaderModule
Definition: dtk_maindoc.hpp:53
Dtk_ErrorStatus SetSubEntities(const Dtk_tab< Dtk_ID > &inEntitiesIDs, const Dtk_tab< type_detk > &inEntitiesTypes)
Returns the set of Additional Entities defined by their IDs and Types.
Dtk_ErrorStatus DevalidateNode(const Dtk_NodeID &inNodeID)
Devalidates Component into MainDoc.
@ SeReaderModule
Definition: dtk_maindoc.hpp:37
DtkErrorStatus AddOverrideSet(const Dtk_OverrideSetPtr &inOverrideSet)
Add Override set to a prototype component
Dtk_SmartPtr< Dtk_feat > Dtk_FeaturePtr
Definition: dtk_maindoc.hpp:22
const Dtk_transfo & TransformationMatrix() const
Retrieves the Dtk_Component TransformationMatrix - read only -.
Dtk_SmartPtr< Dtk_mesh > Dtk_MeshPtr
Definition: dtk_maindoc.hpp:20
@ ComponentWithUnavailableReader
Definition: dtk_maindoc.hpp:564
@ DcmReaderModule
Definition: dtk_maindoc.hpp:50
@ MaxReaderModules
Definition: dtk_maindoc.hpp:83
void SetFileVersion(const Dtk_string &inFileVersion)
This is the Node Class.
Definition: dtk_maindoc.hpp:230
Dtk_StoredInfoPtr GetStoredInfos() const
void AddMetaData(const Dtk_MetaDataPtr &inMetaData)
Adds a Dtk_MetaDataPtr to the Dtk_DocElement.
@ ThirdRefBlockSituation_2
Definition: dtk_maindoc.hpp:1109
@ DTK_TYPE_BODY
Definition: define.h:492
@ RevitReaderModule
Definition: dtk_maindoc.hpp:65
static Dtk_string ReasonLinkEnumToString(const ReasonLinkEnum &inEnum)
Definition: dtk_maindoc.hpp:1128
int32_t Dtk_Int32
Definition: define.h:689
This is the Node FullType Class The Dtk_Node::FullType object is used to retrieve the full informatio...
Definition: dtk_maindoc.hpp:269
@ ArtReaderModule
Definition: dtk_maindoc.hpp:71
static Dtk_string ComponentAvailabilityEnumToString(const ComponentAvailabilityEnum &inEnum)
Definition: dtk_maindoc.hpp:575
@ MetaDataType
Definition: dtk_maindoc.hpp:257
@ NullType
Definition: dtk_maindoc.hpp:247
@ Context
Definition: dtk_maindoc.hpp:1125
Dtk_ConstraintPtr GetDtk_ConstraintPtr()
Retrieves the Dtk_Node as a Dtk_ConstraintPtr - if exists -.
@ V4ReaderModule
Definition: dtk_maindoc.hpp:33
ComponentTypeEnum
Definition: dtk_maindoc.hpp:567
DtkErrorStatus GetSiblingName(Dtk_string &outSiblingName) const
SiblingName for Component.
Dtk_ComponentPtr CreateInstanceDtk_Component(const Dtk_ComponentPtr &inPrototype, Dtk_string inInstanceName, const Dtk_transfo &inTransformationMatrix)
Creates a physical Dtk_ComponentPtr.
static Dtk_string ComponentTypeEnumToString(const ComponentTypeEnum &inEnum)
Definition: dtk_maindoc.hpp:591
@ ConstraintType
Definition: dtk_maindoc.hpp:261
Dtk_InfoPtr GetInfos() const
Retrieves the Dtk_DocElement Dtk_InfoPtr - read only -.
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.
@ ForceClipped
Definition: dtk_maindoc.hpp:1088
@ StepReaderModule
Definition: dtk_maindoc.hpp:39
void SetMaterial(Dtk_MaterialPtr inMaterial)
@ DstvReaderModule
Definition: dtk_maindoc.hpp:75
static Dtk_SmartPtr< T > DtkDynamicCast(const Dtk_SmartPtr< T2 > &p)
Definition: util_ptr_dtk.hpp:101
static Dtk_Node * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
Dtk_ID GetAssociatedComponentID() const
Returns the Component ID referenced by the connector.
@ HorizontallyAligned
Definition: dtk_maindoc.hpp:1079
void AddChild(const Dtk_NodePtr &inChild)
Adds a child Dtk_Node to main Node.
Definition: dtk_maindoc.hpp:378
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_Size_t GetNumChildren() const
Retrieves the number of the Dtk_DocElement children - read only -.
void SetStoredInfos(const Dtk_StoredInfoPtr &inInfos)
@ SdnfReaderModule
Definition: dtk_maindoc.hpp:70
@ FirstRefBlockSituationCategory
Definition: dtk_maindoc.hpp:1186
type_detk GetPointedEntityType() const
Retrieves the pointed entity Type.
void GetAssociatedPathComponentID(Dtk_tab< Dtk_ID > &outAssociatedPathComponentID) const
@ DTK_TYPE_FDT
Definition: define.h:435
@ ThirdRefBlockSituationCategory
Definition: dtk_maindoc.hpp:1188
@ LayerInfosSetType
Definition: dtk_maindoc.hpp:255
Definition: util_ptr_dtk.hpp:37
void AddAssociatedEntity(const Dtk_NodeConnectorPtr &inAssociatedEntity)
Retrieves the Dtk_Node as a Dtk_KinematicsPtr - if exists -.
const DtkReaderType & GetAssociatedModuleType() const
Retrieves the Dtk_Component AssociatedModuleType - read only -.
void SetReasonLink(const ReasonLinkEnum inReasonLink)
Sets the Reason Link of the Dtk_NodeConnector to specify the reason of the connection.
@ ComponentInternal
Definition: dtk_maindoc.hpp:560
static Dtk_string ReasonCategoryEnumToString(const ReasonCategoryEnum &inEnum)
Definition: dtk_maindoc.hpp:1190
@ VdaReaderModule
Definition: dtk_maindoc.hpp:31
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.
Dtk_bool NodeHasCurves() const
Return DTK_TRUE if Dtk_Node Type Body or Mesh contains curves entity.
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.
Dtk_ID GetID() const
Retrieves the Dtk_DocElement ID - read only -.
Dtk_MetaDataPtr GetDtk_MetaDataPtr()
Retrieves the Dtk_Node as a Dtk_MetaDataPtr - if exists -.
@ DTK_TYPE_DOCUMENT
Definition: define.h:511
void SetPreview(Dtk_PreviewPtr inPreview)
Dtk_NodeConnector()
Default constructor.
void SetRootComponent(const Dtk_ComponentPtr &inRootComponent)
Set the root Dtk_ComponentPtr.
void SetAssociatedComponentID(const Dtk_ID &inComponentID)
Sets the component ID.
This is a mathematical point class.
Definition: dtk_pnt.hpp:22
const Dtk_string & InstanceName() const
Retrieves the Dtk_Component InstanceName - read only -.
type_detk
Definition: define.h:32
@ ComponentPhantom
Definition: dtk_maindoc.hpp:561
Dtk_MetaDataGroupPtr GetMetaDataGroup(const Dtk_Size_t &inPos) const
Retrieves the ith Dtk_MetaDataGrouplPtr - read only -.
@ ForceVisible
Definition: dtk_maindoc.hpp:1087
Dtk_Size_t GetNumComponents() const
Give number of Components in the Dtk_MainDoc (useful if you want to handle progress bar).
void SetConceptionUnitScale(Dtk_Double64 inUnitScale)
Dtk_MaterialPtr GetMaterial() const
Retrieves the Dtk_DocElement Dtk_MaterialPtr - read only -.
Dtk_Size_t GetNumOverrideSets() const
Give number of Override sets in a prototype component
const Dtk_string & FullPathName() const
Retrieves the Dtk_Component FullPathName - read only -.
@ PositionallyFixed
Definition: dtk_maindoc.hpp:1084
Dtk_NodePtr GetFatherNode(const Dtk_NodePtr &inNode) const
Retrieves the father Dtk_NodePtr of the given Dtk_NodePtr.
type_detk get_type_detk() const
Definition: dtk_maindoc.hpp:1261
@ HighlightedGeometry
Definition: dtk_maindoc.hpp:1117
void SetReadID(const Dtk_ID &inNewID)
Dtk_ErrorStatus ReplaceChildNode(const Dtk_Size_t &inPos, const Dtk_NodePtr &inNewChild)
Replaces a child Dtk_NodePtr by another one. Also updates father lists.
Definition: dtk_maindoc.hpp:394
@ _typeID
Definition: dtk_maindoc.hpp:346
void GetSelectableLayers(Dtk_tab< Dtk_Int32 > &outSelectableLayers) const
Selectable layer for Component.
SubEntity(const Dtk_ID inSubEntityID, const type_detk inSubEntityType)
Definition: dtk_maindoc.hpp:1211
Dtk_ErrorStatus SetSubEntities(const Dtk_tab< SubEntity > &inSubEntities)
Sets of SubEntities - defined by their IDs and Types -.
static Dtk_string NodeDataTypeEnumToString(const NodeDataTypeEnum &inEnum)
Definition: dtk_maindoc.hpp:286
Dtk_MeshPtr GetDtk_MeshPtr()
Retrieves the Dtk_Node as a Dtk_meshPtr - if exists -.
SetAsDeprecated("2022.1", "Use Dtk_Component::GetConceptionUnitScale(Dtk_Double64 &outUnitScale) method instead.") Dtk_Double64 GetConceptionUnitScale() const
Get the Original Units for documents.
void _ReleaseNodeConnectors()
static Dtk_Component * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
@ DTK_TYPE_COMPONENT
Definition: define.h:514
Dtk_ErrorStatus SetComponentAvailability(const ComponentAvailabilityEnum &inComponentAvailability)
SubEntity()
Definition: dtk_maindoc.hpp:1210
@ VisibilityCategory
Definition: dtk_maindoc.hpp:1184
Dtk_Int32 DtkDynamicType(const int &inId)
Retrieves the dynamic entity type.
static Dtk_Int32 NodeDataStringToEnumType(const Dtk_string &type)
Definition: dtk_maindoc.hpp:309
Dtk_NodePtr GetNodeByID(const Dtk_NodeID &inNodeID) const
Retrieves a Dtk_NodePtr from the Dtk_Component NodesPool giving his Id.
@ DwgDtkReaderModule
Definition: dtk_maindoc.hpp:79
Dtk_ObjectPtr GetDtk_AdvancedFeaturePtr()
Retrieves the Dtk_Node as a Dtk_AdvancedFeaturePtr - if exists - Internal Use !!!
Dtk_FdtPtr GetDtk_FdtPtr()
Retrieves the Dtk_Node as a Dtk_FdtPtr - if exists -.
Dtk_Size_t GetNumMetaData() const
Retrieves the number of the Dtk_MetaDataPtr - read only -.
@ DTK_TYPE_CONSTRAINT
Definition: define.h:610
void GetReadID(Dtk_ID &outReadID) const
@ DefaultAnnotationLink
Definition: dtk_maindoc.hpp:1116
const Dtk_GlobalDataSetPtr GetGlobalDataSet() const
Retrieve the Dtk_GlobalDataSetPtr attached to the Dtk_Component - get only -.
@ CgmReaderModule
Definition: dtk_maindoc.hpp:69
Dtk_NodeConnector::ReasonLinkEnum GetReasonLink(ReasonCategoryEnum &outReasonCategory) const
Gets the Reason Link of the Dtk_NodeConnector to specify the reason of the connection.
@ FbxReaderModule
Definition: dtk_maindoc.hpp:68
Dtk_ID GetNodeId() const
Returns the Node id referenced by the connector.
static Dtk_MainDoc * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
@ SecondRefBlockSituation_Common
Definition: dtk_maindoc.hpp:1100
@ SmgReaderModule
Definition: dtk_maindoc.hpp:72
@ SecondRefBlockSituation_3
Definition: dtk_maindoc.hpp:1103
@ IfcReaderModule
Definition: dtk_maindoc.hpp:63
@ DTK_TYPE_NO_SUBTYPE
Definition: define.h:543
Dtk_ErrorStatus GetBoundingBox(Dtk_pnt &outMin, Dtk_pnt &outMax)
Get BoundingBox on Prototype Component if it can be read in original file.
@ GeneralAssociationCategory
Definition: dtk_maindoc.hpp:1183
Dtk_ColorInfosSetPtr GetDtk_ColorInfosSetPtr()
Retrieves the Dtk_Node as a Dtk_ColorInfosSetPtr - if exists -.
@ PrototypeComponentType
Definition: dtk_maindoc.hpp:569
Dtk_FeaturePtr GetDtk_FeaturePtr()
Retrieves the Dtk_Node as a Dtk_FeaturePtr - if exists -.
@ FirstRefBlockSituation_Common
Definition: dtk_maindoc.hpp:1093
This is the Main Doc Element Class The Dtk_DocElement object is common parent class of the Dtk_Node a...
Definition: dtk_maindoc.hpp:101
@ ColorInfosSetType
Definition: dtk_maindoc.hpp:256
@ XmtReaderModule
Definition: dtk_maindoc.hpp:35
Dtk_Size_t GetNumMetaDataGroup() const
Retrieves the number of the Dtk_MetaDataGroupPtr - read only -.
@ ComponentMissing
Definition: dtk_maindoc.hpp:558
int len() const
Retrieve the length of the Dtk_string.
@ FirstRefBlockSituation_1
Definition: dtk_maindoc.hpp:1094
Definition: dtk_object.hpp:8
This is the Component Class. The Dtk_ComponentPtr object is used as element into an assembly tree....
Definition: dtk_maindoc.hpp:554
void SetAssociatedPathComponentID(const Dtk_tab< Dtk_ID > &inPathComponentID)
Sets the Path Component ID from Root to Target.
void _AddChild(const Dtk_DocElementPtr &inChild)
Adds a child Dtk_DocElement to main Element.
@ InvReaderModule
Definition: dtk_maindoc.hpp:32
Dtk_Size_t GetNumNodes() const
Give number of Nodes in the Component (useful if you want to handle progress bar).
friend Dtk_bool operator==(const SubEntity &, const SubEntity &)
static Dtk_MainDocPtr Create()
Calls default constructor to allocate a new object.
Dtk_ID Dtk_ComponentID
Definition: dtk_maindoc.hpp:86
type_detk GetSubEntityType() const
Definition: dtk_maindoc.hpp:1216
Dtk_Size_t GetNumFatherComponent(const Dtk_ComponentPtr &inComponent)
Retrieves the inIndexth father of the giving Dtk_ComponentPtr.
@ JtReaderModule
Definition: dtk_maindoc.hpp:43
@ AssociatedZDirection
Definition: dtk_maindoc.hpp:1122
@ StackedLeft
Definition: dtk_maindoc.hpp:1080
const Dtk_string & OriginalPathName() const
Retrieves the Dtk_Component OriginalPathName (read in file) - read only -.
Dtk_ComponentPtr CreateVirtualDtk_Component(Dtk_string inComponentName, const DtkReaderType &inAssociatedModule, Dtk_string inComponentFullPath, const Dtk_Component::ComponentAvailabilityEnum &inAvailability)
Creates a virtual Dtk_ComponentPtr.
@ HasMesh
Definition: dtk_maindoc.hpp:241
void SetSelectableLayers(const Dtk_tab< Dtk_Int32 > &inSelectableLayers)
const Dtk_string & inInstanceName
Definition: catiav5w.hpp:621
@ CreoviewReaderModule
Definition: dtk_maindoc.hpp:66
void _ReleaseVolatileData()
@ VirtualType
Definition: dtk_maindoc.hpp:260
@ PdfReaderModule
Definition: dtk_maindoc.hpp:58
@ AssociatedXDirection
Definition: dtk_maindoc.hpp:1120
Dtk_ErrorStatus GetSubEntities(Dtk_tab< SubEntity > &outSubEntities) const
Retrieves the SubEntities array - defined by their IDs and Types -.
@ DrawingType
Definition: dtk_maindoc.hpp:252
Dtk_NodeID GetEntityID() const
Retrieves the Dtk_Node EntityID - read only -.
Dtk_bool NodeHasSurfaces() const
Return DTK_TRUE if Dtk_Node Type Body contains surfacic entity.
@ GltfReaderModule
Definition: dtk_maindoc.hpp:76
Dtk_bool NodeHasMesh() const
Return DTK_TRUE if Dtk_Node Type Body or Mesh contains mesh entity.
@ OrientationallyFixed
Definition: dtk_maindoc.hpp:1085
@ SecondRefBlockSituation_1
Definition: dtk_maindoc.hpp:1101
Dtk_ErrorStatus GetConnectorsPointingToThisComponent(Dtk_tab< Dtk_NodeConnectorPtr > &outConnectedEntities)
Retrieves the connectors pointing on this component.
friend class Dtk_MainDoc
Definition: dtk_maindoc.hpp:627
@ AxisSystemType
Definition: dtk_maindoc.hpp:254
Dtk_Int32 DtkDynamicType(const int &inId)
Retrieves the dynamic entity type.
@ FirstRefBlockSituation_2
Definition: dtk_maindoc.hpp:1095
~SubEntity()
Definition: dtk_maindoc.hpp:1213
Dtk_ErrorStatus AddSubEntities(const Dtk_tab< SubEntity > &inSubEntities)
Add a set of SubEntities - defined by their IDs and Types - to the SubEntities list.
type_detk GetNodeSubType() const
Retrieves the Node SubType - if relevant - - read only -.
@ SubPMI
Definition: dtk_maindoc.hpp:1115
static Dtk_NodeConnector * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
@ AssociatedFeature
Definition: dtk_maindoc.hpp:1114
Dtk_Int32 GetNumInstances() const
Give number of InstanceComponents in the Dtk_MainDoc.
Dtk_PreviewPtr GetPreview() const
Retrieves the Dtk_DocElement Dtk_PreviewPtr - read only -.
static Dtk_Int32 ComponentTypeStringToInt(const Dtk_string &name)
Definition: dtk_maindoc.hpp:604
@ BRepOccReaderModule
Definition: dtk_maindoc.hpp:64
@ MeshType
Definition: dtk_maindoc.hpp:249
Dtk_BodyPtr GetDtk_BodyPtr()
Retrieves the Dtk_Node as a Dtk_BodyPtr - if exists -.
Dtk_ErrorStatus GetAdditionalReferenceList(Dtk_tab< Dtk_string > &outFileList) const
return list of additional reference files into MainDoc.
Definition: dtk_api.hpp:75
Dtk_ErrorStatus GetMissingComponentList(Dtk_tab< Dtk_string > &outFileList) const
return list of missing files into MainDoc.
@ ProeReaderModule
Definition: dtk_maindoc.hpp:41
Dtk_Handle * _Private
Definition: dtk_maindoc.hpp:625
@ UgReaderModule
Definition: dtk_maindoc.hpp:34
@ Lava3mReaderModule
Definition: dtk_maindoc.hpp:56
@ DwgReaderModule
Definition: dtk_maindoc.hpp:61
const Dtk_tab< Dtk_ID > & GetAssociatedPathComponentID() const
Returns the Path Component ID referenced by the connector from Root to Target.
Dtk_ID GetSubEntityId() const
Definition: dtk_maindoc.hpp:1215
const Dtk_ComponentPtr & RootComponent() const
Retrieves the root Dtk_ComponentPtr of the Dtk_MainDoc.