 |
DATAKIT SDK
V2026.3
|
|
Go to the documentation of this file. 1 #ifndef __UTIL_DTK_DOCUMENT_HPP__
2 #define __UTIL_DTK_DOCUMENT_HPP__
182 SetAsDeprecated(
"2026.3",
"use GetInfos()->GetRenderInfos and GetInfos()->GetPhysicalMaterialInfos methods instead." )
300 case FdtType:
return L
"FdtType";
311 default:
return L
"Unknown";
317 if( type == L
"NullType" )
319 else if( type == L
"BodyType" )
321 else if( type == L
"MeshType" )
323 else if( type == L
"AnnotationSetType" )
325 else if( type == L
"FdtType" )
327 else if( type == L
"DrawingType" )
329 else if( type == L
"KinematicsType" )
331 else if( type == L
"AxisSystemType" )
333 else if (type == L
"LayerInfosSetType")
335 else if (type == L
"ColorInfosSetType")
337 else if( type == L
"MetaDataType" )
339 else if( type == L
"VirtualType" )
341 else if (type == L
"ModelDisplayType")
343 else if (type == L
"CameraType")
345 else if (type == L
"ConstraintType")
564 ComponentMissing = 0x1,
565 ComponentFound = 0x2,
566 ComponentInternal = 0x4,
567 ComponentPhantom = 0x8,
568 ComponentAdditionnalReference = 0x10,
569 ComponentAssemblyGeometry = 0x20,
570 ComponentWithUnavailableReader = 0x40
574 InstanceComponentType = 0,
585 case ComponentMissing:
return L
"ComponentMissing";
586 case ComponentFound:
return L
"ComponentFound";
587 case ComponentInternal:
return L
"ComponentInternal";
588 case ComponentPhantom:
return L
"ComponentPhantom";
589 case ComponentAdditionnalReference:
return L
"ComponentAdditionnalReference";
590 case ComponentAssemblyGeometry:
return L
"ComponentAssemblyGeometry";
591 case ComponentWithUnavailableReader:
return L
"ComponentWithUnavailableReader";
593 default:
return L
"Unknown";
601 case CatalogComponentType:
return L
"CatalogComponentType";
602 case VirtualComponentType:
return L
"VirtualComponentType";
603 case InstanceComponentType:
return L
"InstanceComponentType";
604 case PrototypeComponentType:
return L
"PrototypeComponentType";
606 default:
return L
"Unknown";
616 if( name == L
"CatalogComponentType" )
617 result = CatalogComponentType;
618 else if( name == L
"VirtualComponentType" )
619 result = VirtualComponentType;
620 else if( name == L
"InstanceComponentType" )
621 result = InstanceComponentType;
622 else if( name == L
"PrototypeComponentType" )
623 result = PrototypeComponentType;
647 const Dtk_Int32& inAdditionnalReferenceFlag,
659 void _CheckGlobalDataSet();
660 void _CheckFdtDataSet();
702 SetAsDeprecated(
"2026.3",
"Use Dtk_Component::IsAvailabilityFlaggedAs method instead." )
779 const
Dtk_ID& inKinematicID);
846 Dtk_Double64 GetConceptionUnitScale_Deprecated221() const;
858 void SetCurrentLayer(
Dtk_Int32 inCurrentLayer);
937 friend class Dtk_MainDocWrapper;
1011 const int inAdditionnalReferenceFlag = 0,
1161 case VerticallyAligned:
return L
"VerticallyAligned";
1162 case HorizontallyAligned:
return L
"HorizontallyAligned";
1163 case StackedLeft:
return L
"StackedLeft";
1164 case StackedRight:
return L
"StackedRight";
1165 case StackedAbove:
return L
"StackedAbove";
1166 case StackedBelow:
return L
"StackedBelow";
1167 case PositionallyFixed:
return L
"PositionallyFixed";
1168 case OrientationallyFixed:
return L
"OrientationallyFixed";
1169 case ForceHidden:
return L
"ForceHidden";
1170 case ForceVisible:
return L
"ForceVisible";
1171 case ForceClipped:
return L
"ForceClipped";
1172 case KeepOnlyFdt:
return L
"KeepOnlyFdt";
1173 case ForceColor:
return L
"ForceColor";
1174 case ForceRender:
return L
"ForceRender";
1176 case AssociatedGeometry:
return L
"AssociatedGeometry";
1177 case AssociatedFeature:
return L
"AssociatedFeature";
1178 case SubPMI:
return L
"SubPMI";
1179 case DefaultAnnotationLink:
return L
"DefaultAnnotationLink";
1180 case HighlightedGeometry:
return L
"HighlightedGeometry";
1181 case Support:
return L
"Support";
1182 case AssociatedAxisSystem:
return L
"AssociatedAxisSystem";
1183 case AssociatedXDirection:
return L
"AssociatedXDirection";
1184 case AssociatedYDirection:
return L
"AssociatedYDirection";
1185 case AssociatedZDirection:
return L
"AssociatedZDirection";
1186 case AssociatedCenterPoint:
return L
"AssociatedCenterPoint";
1188 case Context:
return L
"Context";
1190 case FirstRefBlockSituation_Common:
return L
"FirstRefBlockSituation_Common";
1191 case FirstRefBlockSituation_1:
return L
"FirstRefBlockSituation_1";
1192 case FirstRefBlockSituation_2:
return L
"FirstRefBlockSituation_2";
1193 case FirstRefBlockSituation_3:
return L
"FirstRefBlockSituation_3";
1195 case SecondRefBlockSituation_Common:
return L
"SecondRefBlockSituation_Common";
1196 case SecondRefBlockSituation_1:
return L
"SecondRefBlockSituation_1";
1197 case SecondRefBlockSituation_2:
return L
"SecondRefBlockSituation_2";
1198 case SecondRefBlockSituation_3:
return L
"SecondRefBlockSituation_3";
1200 case ThirdRefBlockSituation_Common:
return L
"ThirdRefBlockSituation_Common";
1201 case ThirdRefBlockSituation_1:
return L
"ThirdRefBlockSituation_1";
1202 case ThirdRefBlockSituation_2:
return L
"ThirdRefBlockSituation_2";
1203 case ThirdRefBlockSituation_3:
return L
"ThirdRefBlockSituation_3";
1205 default:
return L
"Unknown";
1212 UnknownCategory = 0,
1226 case PlacementCategory:
return L
"PlacementCategory";
1227 case GeneralAssociationCategory:
return L
"GeneralAssociationCategory";
1228 case VisibilityCategory:
return L
"VisibilityCategory";
1229 case AppearanceCategory:
return L
"AppearanceCategory";
1230 case FirstRefBlockSituationCategory:
return L
"FirstRefBlockSituationCategory";
1231 case SecondRefBlockSituationCategory:
return L
"SecondRefBlockSituationCategory";
1232 case ThirdRefBlockSituationCategory:
return L
"ThirdRefBlockSituationCategory";
1233 default:
return L
"UnknownCategory";
1244 inline SubEntity(
const Dtk_ID inSubEntityID,
const type_detk inSubEntityType ) : _SubEntityID(inSubEntityID), _SubEntityType(inSubEntityType){}
1245 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:284
@ AnnotationSetType
Definition: dtk_maindoc.hpp:256
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
Dtk_ErrorStatus SetComponentAvailability(ComponentAvailabilityEnum inComponentAvailability)
ReasonLinkEnum
Reason - Type of the Dtk_NodeConnector -. It's used to filter connectors to same elements.
Definition: dtk_maindoc.hpp:1102
void SetPointingEntityType(const Dtk_Node::FullType inPointingEntityType)
Sets the pointing entity Type.
@ KeepOnlyFdt
Definition: dtk_maindoc.hpp:1118
@ 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.
@ UsdReaderModule
Definition: dtk_maindoc.hpp:81
uint32_t Dtk_ID
Definition: define.h:688
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
@ 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:1098
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:26
const Dtk_ComponentPtr GetChild(const Dtk_Size_t &inPos) const
Retrieves the ith Dtk_ComponentPtr - read only -.
Definition: dtk_maindoc.hpp:682
Dtk_ModelDisplayPtr GetDtk_ModelDisplayPtr()
Retrieves the Dtk_Node as a Dtk_ModelDisplayPtr - if exists -.
@ Support
Definition: dtk_maindoc.hpp:1147
virtual ~Dtk_DocElement()
Destructor.
@ FdtType
Definition: dtk_maindoc.hpp:257
~FullType()
Definition: dtk_maindoc.hpp:285
SubEntity(const SubEntity &inTobeCopied)
Definition: dtk_maindoc.hpp:1245
@ DTK_TYPE_MESH
Definition: define.h:468
@ CatalogComponentType
Definition: dtk_maindoc.hpp:576
@ _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: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:676
@ DTK_TYPE_NODE_CONNECTOR
Definition: define.h:474
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)
@ VerticallyAligned
Definition: dtk_maindoc.hpp:1105
@ ThirdRefBlockSituation_1
Definition: dtk_maindoc.hpp:1137
@ DTK_TYPE_DOC_ELEMENT
Definition: define.h:501
Dtk_Size_t GetNumFathers() const
GetNumFather.
@ PsReaderModule
Definition: dtk_maindoc.hpp:40
Dtk_Int32 GetColorId() const
Retrieves the Color Id for ForceColor connectors.
NodeDataTypeEnum PrimaryType() const
Definition: dtk_maindoc.hpp:287
@ ForceColor
Definition: dtk_maindoc.hpp:1115
@ StackedBelow
Definition: dtk_maindoc.hpp:1110
@ ForceHidden
Definition: dtk_maindoc.hpp:1113
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:106
@ ThirdRefBlockSituation_Common
Definition: dtk_maindoc.hpp:1136
@ AssociatedYDirection
Definition: dtk_maindoc.hpp:1150
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.
void SetRenderId(Dtk_ID inRenderId)
Set the Render Id for ForceRender connectors.
Dtk_Handle * _Private
Definition: dtk_maindoc.hpp:942
@ FirstRefBlockSituation_3
Definition: dtk_maindoc.hpp:1125
NodeDataTypeEnum
Definition: dtk_maindoc.hpp:252
@ PrcReaderModule
Definition: dtk_maindoc.hpp:73
@ V5ReaderModule
Definition: dtk_maindoc.hpp:30
@ _typeID
Definition: dtk_maindoc.hpp:105
friend class Dtk_Component
Definition: dtk_api.hpp:137
@ ModelDisplayType
Definition: dtk_maindoc.hpp:264
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:1255
@ AssociatedAxisSystem
Definition: dtk_maindoc.hpp:1148
@ Zw3dReaderModule
Definition: dtk_maindoc.hpp:80
Dtk_Handle * _Private
Definition: dtk_maindoc.hpp:353
This is a high level string class.
Definition: dtk_string.hpp:53
@ StackedAbove
Definition: dtk_maindoc.hpp:1109
Dtk_bool NodeHasMeshSurfaces() const
Return DTK_TRUE if Dtk_Node Type Body contains mesh surface entity.
size_t Dtk_Size_t
Definition: define.h:711
Definition: dtk_maindoc.hpp:1238
void SetMultiModelFlag(Dtk_bool inMultiModelFlag)
Set flag to indicate that document contains several independant models.
void _ReleaseComponents()
@ KinematicsType
Definition: dtk_maindoc.hpp:259
@ XmlReaderModule
Definition: dtk_maindoc.hpp:52
@ DTK_TYPE_AXIS_SYSTEM
Definition: define.h:34
type_detk SubType() const
Definition: dtk_maindoc.hpp:288
FullType()
Definition: dtk_maindoc.hpp:286
static Dtk_DocElement * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
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:1213
@ SecondRefBlockSituationCategory
Definition: dtk_maindoc.hpp:1219
@ SecondRefBlockSituation_2
Definition: dtk_maindoc.hpp:1131
Dtk_ID Dtk_NodeID
Definition: dtk_maindoc.hpp:88
@ UnknownModule
Definition: dtk_maindoc.hpp:83
@ BodyType
Definition: dtk_maindoc.hpp:254
@ AppearanceCategory
Definition: dtk_maindoc.hpp:1216
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:265
@ F3dReaderModule
Definition: dtk_maindoc.hpp:74
#define DTK_FALSE
Definition: define.h:727
@ 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:724
@ 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:1272
@ AcisReaderModule
Definition: dtk_maindoc.hpp:46
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:692
DtkReaderType
Definition: dtk_maindoc.hpp:29
void SetColorId(Dtk_ID inColorId)
Set the Color Id for ForceColor connectors.
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:936
ComponentAvailabilityEnum
Definition: dtk_maindoc.hpp:563
@ ThirdRefBlockSituation_3
Definition: dtk_maindoc.hpp:1139
@ SwReaderModule
Definition: dtk_maindoc.hpp:36
const Dtk_NodePtr GetChild(const Dtk_Size_t &inPos) const
Retrieves the ith Dtk_Node - read only -.
Definition: dtk_maindoc.hpp:390
double Dtk_Double64
Definition: define.h:698
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.
Dtk_bool IsMultiModel() const
Indicate that document contains several independant models.
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
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:502
@ CgrReaderModule
Definition: dtk_maindoc.hpp:44
friend class Dtk_MainDoc
Definition: dtk_maindoc.hpp:139
@ 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:1142
const Dtk_Node::FullType GetNodeFullType() const
Retrieves the Node FullType - Primary ans Sub Type - - read only -.
This class represents a set of layer information, such as their name and identifier,...
Definition: util_ent_dtk.hpp:515
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.
Dtk_Int32 DtkDynamicType(const int &inId)
Retrieves the dynamic entity type.
@ DxfReaderModule
Definition: dtk_maindoc.hpp:54
~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.
static Dtk_NodeConnectorPtr Create()
Calls default constructor to allocate a new object.
@ IgesReaderModule
Definition: dtk_maindoc.hpp:38
ReasonCategoryEnum
Reason Category. Global Category of the NodeConnector uesed to gather Reason into families.
Definition: dtk_maindoc.hpp:1211
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:1152
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
@ StackedRight
Definition: dtk_maindoc.hpp:1108
@ DTK_TYPE_METADATA
Definition: define.h:507
@ 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.
@ SeReaderModule
Definition: dtk_maindoc.hpp:37
Dtk_SmartPtr< Dtk_feat > Dtk_FeaturePtr
Definition: dtk_maindoc.hpp:22
Dtk_SmartPtr< Dtk_mesh > Dtk_MeshPtr
Definition: dtk_maindoc.hpp:20
@ DcmReaderModule
Definition: dtk_maindoc.hpp:50
@ MaxReaderModules
Definition: dtk_maindoc.hpp:84
This is the Node Class.
Definition: dtk_maindoc.hpp:236
Dtk_StoredInfoPtr GetStoredInfos() const
SetAsDeprecated("2026.3", "Use Dtk_Component::IsAvailabilityFlaggedAs method instead.") const ComponentAvailabilityEnum ComponentAvailability() const
Gives Dtk_Component availability - read only -.
void AddMetaData(const Dtk_MetaDataPtr &inMetaData)
Adds a Dtk_MetaDataPtr to the Dtk_DocElement.
@ ThirdRefBlockSituation_2
Definition: dtk_maindoc.hpp:1138
@ DTK_TYPE_BODY
Definition: define.h:481
@ RevitReaderModule
Definition: dtk_maindoc.hpp:65
static Dtk_string ReasonLinkEnumToString(const ReasonLinkEnum &inEnum)
Definition: dtk_maindoc.hpp:1157
int32_t Dtk_Int32
Definition: define.h:686
This is the Node FullType Class The Dtk_Node::FullType object is used to retrieve the full informatio...
Definition: dtk_maindoc.hpp:275
@ ArtReaderModule
Definition: dtk_maindoc.hpp:71
static Dtk_string ComponentAvailabilityEnumToString(const ComponentAvailabilityEnum &inEnum)
Definition: dtk_maindoc.hpp:581
@ MetaDataType
Definition: dtk_maindoc.hpp:263
@ NullType
Definition: dtk_maindoc.hpp:253
@ ForceRender
Definition: dtk_maindoc.hpp:1116
@ Context
Definition: dtk_maindoc.hpp:1154
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:573
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:597
@ ConstraintType
Definition: dtk_maindoc.hpp:267
Dtk_InfoPtr GetInfos() const
Retrieves the Dtk_DocElement Dtk_InfoPtr - read only -.
@ ForceClipped
Definition: dtk_maindoc.hpp:1117
@ StepReaderModule
Definition: dtk_maindoc.hpp:39
@ 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:1106
void AddChild(const Dtk_NodePtr &inChild)
Adds a child Dtk_Node to main Node.
Definition: dtk_maindoc.hpp:384
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:1218
type_detk GetPointedEntityType() const
Retrieves the pointed entity Type.
void GetAssociatedPathComponentID(Dtk_tab< Dtk_ID > &outAssociatedPathComponentID) const
@ DTK_TYPE_FDT
Definition: define.h:424
@ ThirdRefBlockSituationCategory
Definition: dtk_maindoc.hpp:1220
@ LayerInfosSetType
Definition: dtk_maindoc.hpp:261
Definition: util_ptr_dtk.hpp:37
void AddAssociatedEntity(const Dtk_NodeConnectorPtr &inAssociatedEntity)
Retrieves the Dtk_Node as a Dtk_KinematicsPtr - if exists -.
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:566
static Dtk_string ReasonCategoryEnumToString(const ReasonCategoryEnum &inEnum)
Definition: dtk_maindoc.hpp:1222
@ VdaReaderModule
Definition: dtk_maindoc.hpp:31
Dtk_bool NodeHasCurves() const
Return DTK_TRUE if Dtk_Node Type Body or Mesh contains curves entity.
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:500
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:20
type_detk
Definition: define.h:21
Dtk_MetaDataGroupPtr GetMetaDataGroup(const Dtk_Size_t &inPos) const
Retrieves the ith Dtk_MetaDataGrouplPtr - read only -.
@ ForceVisible
Definition: dtk_maindoc.hpp:1114
Dtk_Size_t GetNumComponents() const
Give number of Components in the Dtk_MainDoc (useful if you want to handle progress bar).
@ PositionallyFixed
Definition: dtk_maindoc.hpp:1111
type_detk get_type_detk() const
Definition: dtk_maindoc.hpp:1294
@ HighlightedGeometry
Definition: dtk_maindoc.hpp:1146
void SetReadID(const Dtk_ID &inNewID)
Dtk_ErrorStatus AddComponentAvailability(ComponentAvailabilityEnum inComponentAvailability)
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:400
SubEntity(const Dtk_ID inSubEntityID, const type_detk inSubEntityType)
Definition: dtk_maindoc.hpp:1244
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:292
Dtk_MeshPtr GetDtk_MeshPtr()
Retrieves the Dtk_Node as a Dtk_meshPtr - if exists -.
void _ReleaseNodeConnectors()
static Dtk_Component * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
@ DTK_TYPE_COMPONENT
Definition: define.h:503
Dtk_ID GetRenderId() const
Retrieves the Render Id for ForceRender connectors.
SubEntity()
Definition: dtk_maindoc.hpp:1243
@ VisibilityCategory
Definition: dtk_maindoc.hpp:1215
Dtk_Int32 DtkDynamicType(const int &inId)
Retrieves the dynamic entity type.
static Dtk_Int32 NodeDataStringToEnumType(const Dtk_string &type)
Definition: dtk_maindoc.hpp:315
@ 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 -.
SetAsDeprecated("2026.3", "use GetInfos()->GetRenderInfos and GetInfos()->GetPhysicalMaterialInfos methods instead.") Dtk_MaterialPtr GetMaterial() const
Retrieves the Dtk_DocElement Dtk_MaterialPtr - read only -.
@ DTK_TYPE_CONSTRAINT
Definition: define.h:599
void GetReadID(Dtk_ID &outReadID) const
@ DefaultAnnotationLink
Definition: dtk_maindoc.hpp:1145
@ 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:1129
@ SmgReaderModule
Definition: dtk_maindoc.hpp:72
@ SecondRefBlockSituation_3
Definition: dtk_maindoc.hpp:1132
@ IfcReaderModule
Definition: dtk_maindoc.hpp:63
@ DTK_TYPE_NO_SUBTYPE
Definition: define.h:532
@ GeneralAssociationCategory
Definition: dtk_maindoc.hpp:1214
Dtk_ColorInfosSetPtr GetDtk_ColorInfosSetPtr()
Retrieves the Dtk_Node as a Dtk_ColorInfosSetPtr - if exists -.
@ PrototypeComponentType
Definition: dtk_maindoc.hpp:575
Dtk_FeaturePtr GetDtk_FeaturePtr()
Retrieves the Dtk_Node as a Dtk_FeaturePtr - if exists -.
@ FirstRefBlockSituation_Common
Definition: dtk_maindoc.hpp:1122
This is the Main Doc Element Class The Dtk_DocElement object is common parent class of the Dtk_Node a...
Definition: dtk_maindoc.hpp:102
@ ColorInfosSetType
Definition: dtk_maindoc.hpp:262
@ XmtReaderModule
Definition: dtk_maindoc.hpp:35
Dtk_Size_t GetNumMetaDataGroup() const
Retrieves the number of the Dtk_MetaDataGroupPtr - read only -.
int len() const
Retrieve the length of the Dtk_string.
@ FirstRefBlockSituation_1
Definition: dtk_maindoc.hpp:1123
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:560
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
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:87
type_detk GetSubEntityType() const
Definition: dtk_maindoc.hpp:1249
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:1151
@ StackedLeft
Definition: dtk_maindoc.hpp:1107
Dtk_ComponentPtr CreateVirtualDtk_Component(Dtk_string inComponentName, const DtkReaderType &inAssociatedModule, Dtk_string inComponentFullPath, const Dtk_Component::ComponentAvailabilityEnum &inAvailability)
Creates a virtual Dtk_ComponentPtr.
const Dtk_string & inInstanceName
Definition: catiav5w.hpp:601
@ CreoviewReaderModule
Definition: dtk_maindoc.hpp:66
void _ReleaseVolatileData()
@ VirtualType
Definition: dtk_maindoc.hpp:266
@ PdfReaderModule
Definition: dtk_maindoc.hpp:58
@ AssociatedXDirection
Definition: dtk_maindoc.hpp:1149
Dtk_ErrorStatus GetSubEntities(Dtk_tab< SubEntity > &outSubEntities) const
Retrieves the SubEntities array - defined by their IDs and Types -.
@ DrawingType
Definition: dtk_maindoc.hpp:258
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:1112
@ SecondRefBlockSituation_1
Definition: dtk_maindoc.hpp:1130
@ AxisSystemType
Definition: dtk_maindoc.hpp:260
Dtk_Int32 DtkDynamicType(const int &inId)
Retrieves the dynamic entity type.
@ FirstRefBlockSituation_2
Definition: dtk_maindoc.hpp:1124
~SubEntity()
Definition: dtk_maindoc.hpp:1246
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:1144
static Dtk_NodeConnector * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
@ AssociatedFeature
Definition: dtk_maindoc.hpp:1143
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:610
@ BRepOccReaderModule
Definition: dtk_maindoc.hpp:64
@ MeshType
Definition: dtk_maindoc.hpp:255
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:631
@ 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:1248
const Dtk_ComponentPtr & RootComponent() const
Retrieves the root Dtk_ComponentPtr of the Dtk_MainDoc.