 |
DATAKIT SDK
V2026.4
|
|
Go to the documentation of this file. 1 #ifndef __UTIL_DTK_DOCUMENT_HPP__
2 #define __UTIL_DTK_DOCUMENT_HPP__
180 SetAsDeprecated(
"2026.3",
"use GetInfos()->GetRenderInfos and GetInfos()->GetPhysicalMaterialInfos methods instead." )
298 case FdtType:
return L
"FdtType";
309 default:
return L
"Unknown";
315 if( type == L
"NullType" )
317 else if( type == L
"BodyType" )
319 else if( type == L
"MeshType" )
321 else if( type == L
"AnnotationSetType" )
323 else if( type == L
"FdtType" )
325 else if( type == L
"DrawingType" )
327 else if( type == L
"KinematicsType" )
329 else if( type == L
"AxisSystemType" )
331 else if (type == L
"LayerInfosSetType")
333 else if (type == L
"ColorInfosSetType")
335 else if( type == L
"MetaDataType" )
337 else if( type == L
"VirtualType" )
339 else if (type == L
"ModelDisplayType")
341 else if (type == L
"CameraType")
343 else if (type == L
"ConstraintType")
562 ComponentMissing = 0x1,
563 ComponentFound = 0x2,
564 ComponentInternal = 0x4,
565 ComponentPhantom = 0x8,
566 ComponentAdditionnalReference = 0x10,
567 ComponentAssemblyGeometry = 0x20,
568 ComponentWithUnavailableReader = 0x40,
569 ComponentNotRequired = 0x80
573 InstanceComponentType = 0,
584 case ComponentMissing:
return L
"ComponentMissing";
585 case ComponentFound:
return L
"ComponentFound";
586 case ComponentInternal:
return L
"ComponentInternal";
587 case ComponentPhantom:
return L
"ComponentPhantom";
588 case ComponentAdditionnalReference:
return L
"ComponentAdditionnalReference";
589 case ComponentAssemblyGeometry:
return L
"ComponentAssemblyGeometry";
590 case ComponentWithUnavailableReader:
return L
"ComponentWithUnavailableReader";
591 case ComponentNotRequired:
return L
"ComponentNotRequired";
592 default:
return L
"Unknown";
600 case CatalogComponentType:
return L
"CatalogComponentType";
601 case VirtualComponentType:
return L
"VirtualComponentType";
602 case InstanceComponentType:
return L
"InstanceComponentType";
603 case PrototypeComponentType:
return L
"PrototypeComponentType";
605 default:
return L
"Unknown";
615 if( name == L
"CatalogComponentType" )
616 result = CatalogComponentType;
617 else if( name == L
"VirtualComponentType" )
618 result = VirtualComponentType;
619 else if( name == L
"InstanceComponentType" )
620 result = InstanceComponentType;
621 else if( name == L
"PrototypeComponentType" )
622 result = PrototypeComponentType;
642 const Dtk_Int32& inAdditionnalReferenceFlag,
654 void _CheckGlobalDataSet();
655 void _CheckFdtDataSet();
697 SetAsDeprecated(
"2026.3",
"Use Dtk_Component::IsAvailabilityFlaggedAs method instead." )
774 const
Dtk_ID& inKinematicID);
851 void SetCurrentLayer(
Dtk_Int32 inCurrentLayer);
930 friend class Dtk_MainDocWrapper;
1000 const int inAdditionnalReferenceFlag = 0,
1150 case VerticallyAligned:
return L
"VerticallyAligned";
1151 case HorizontallyAligned:
return L
"HorizontallyAligned";
1152 case StackedLeft:
return L
"StackedLeft";
1153 case StackedRight:
return L
"StackedRight";
1154 case StackedAbove:
return L
"StackedAbove";
1155 case StackedBelow:
return L
"StackedBelow";
1156 case PositionallyFixed:
return L
"PositionallyFixed";
1157 case OrientationallyFixed:
return L
"OrientationallyFixed";
1158 case ForceHidden:
return L
"ForceHidden";
1159 case ForceVisible:
return L
"ForceVisible";
1160 case ForceClipped:
return L
"ForceClipped";
1161 case KeepOnlyFdt:
return L
"KeepOnlyFdt";
1162 case ForceColor:
return L
"ForceColor";
1163 case ForceRender:
return L
"ForceRender";
1165 case AssociatedGeometry:
return L
"AssociatedGeometry";
1166 case AssociatedFeature:
return L
"AssociatedFeature";
1167 case SubPMI:
return L
"SubPMI";
1168 case DefaultAnnotationLink:
return L
"DefaultAnnotationLink";
1169 case HighlightedGeometry:
return L
"HighlightedGeometry";
1170 case Support:
return L
"Support";
1171 case AssociatedAxisSystem:
return L
"AssociatedAxisSystem";
1172 case AssociatedXDirection:
return L
"AssociatedXDirection";
1173 case AssociatedYDirection:
return L
"AssociatedYDirection";
1174 case AssociatedZDirection:
return L
"AssociatedZDirection";
1175 case AssociatedCenterPoint:
return L
"AssociatedCenterPoint";
1177 case Context:
return L
"Context";
1179 case FirstRefBlockSituation_Common:
return L
"FirstRefBlockSituation_Common";
1180 case FirstRefBlockSituation_1:
return L
"FirstRefBlockSituation_1";
1181 case FirstRefBlockSituation_2:
return L
"FirstRefBlockSituation_2";
1182 case FirstRefBlockSituation_3:
return L
"FirstRefBlockSituation_3";
1184 case SecondRefBlockSituation_Common:
return L
"SecondRefBlockSituation_Common";
1185 case SecondRefBlockSituation_1:
return L
"SecondRefBlockSituation_1";
1186 case SecondRefBlockSituation_2:
return L
"SecondRefBlockSituation_2";
1187 case SecondRefBlockSituation_3:
return L
"SecondRefBlockSituation_3";
1189 case ThirdRefBlockSituation_Common:
return L
"ThirdRefBlockSituation_Common";
1190 case ThirdRefBlockSituation_1:
return L
"ThirdRefBlockSituation_1";
1191 case ThirdRefBlockSituation_2:
return L
"ThirdRefBlockSituation_2";
1192 case ThirdRefBlockSituation_3:
return L
"ThirdRefBlockSituation_3";
1194 default:
return L
"Unknown";
1201 UnknownCategory = 0,
1215 case PlacementCategory:
return L
"PlacementCategory";
1216 case GeneralAssociationCategory:
return L
"GeneralAssociationCategory";
1217 case VisibilityCategory:
return L
"VisibilityCategory";
1218 case AppearanceCategory:
return L
"AppearanceCategory";
1219 case FirstRefBlockSituationCategory:
return L
"FirstRefBlockSituationCategory";
1220 case SecondRefBlockSituationCategory:
return L
"SecondRefBlockSituationCategory";
1221 case ThirdRefBlockSituationCategory:
return L
"ThirdRefBlockSituationCategory";
1222 default:
return L
"UnknownCategory";
1233 inline SubEntity(
const Dtk_ID inSubEntityID,
const type_detk inSubEntityType ) : _SubEntityID(inSubEntityID), _SubEntityType(inSubEntityType){}
void SetNodeId(const Dtk_ID &inNodeId)
Sets the Node id.
FullType(const NodeDataTypeEnum inPrimaryType, const type_detk inSubType)
Definition: dtk_maindoc.hpp:282
@ AnnotationSetType
Definition: dtk_maindoc.hpp:254
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:1091
void SetPointingEntityType(const Dtk_Node::FullType inPointingEntityType)
Sets the pointing entity Type.
@ KeepOnlyFdt
Definition: dtk_maindoc.hpp:1107
@ CaddsReaderModule
Definition: dtk_maindoc.hpp:46
Dtk_ComponentPtr GetComponentByID(const Dtk_ComponentID &inComponentID) const
Retrieves a Dtk_ComponentPtr giving its ID.
@ RnXmlReaderModule
Definition: dtk_maindoc.hpp:60
Dtk_Int32 DtkDynamicType(const int &inId)
Retrieves the dynamic entity type.
@ UsdReaderModule
Definition: dtk_maindoc.hpp:82
uint32_t Dtk_ID
Definition: define.h:688
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
@ CerconReaderModule
Definition: dtk_maindoc.hpp:49
void SetPointedEntityType(const type_detk inPointedEntityType)
Sets the pointed entity Type.
This is the Dtk_NodeConnector Class. .
Definition: dtk_maindoc.hpp:1087
Dtk_ID GetFatherID(Dtk_Size_t inIndex) const
Retrieves Dtk_DocElement ith FatherID - read only -.
@ PlmXmlReaderModule
Definition: dtk_maindoc.hpp:56
@ NavisReaderModule
Definition: dtk_maindoc.hpp:78
@ 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:677
Dtk_ModelDisplayPtr GetDtk_ModelDisplayPtr()
Retrieves the Dtk_Node as a Dtk_ModelDisplayPtr - if exists -.
@ Support
Definition: dtk_maindoc.hpp:1136
virtual ~Dtk_DocElement()
Destructor.
@ FdtType
Definition: dtk_maindoc.hpp:255
~FullType()
Definition: dtk_maindoc.hpp:283
@ DTK_TYPE_MESH
Definition: define.h:468
@ CatalogComponentType
Definition: dtk_maindoc.hpp:575
@ _3dmReaderModule
Definition: dtk_maindoc.hpp:61
Dtk_KinematicPtr GetDtk_KinematicPtr()
Retrieves the Dtk_Node as a Dtk_KinematicPtr - if exists -.
BodyNodeDataTypeEnum
Definition: dtk_maindoc.hpp:238
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:671
@ 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)
std::unique_ptr< Dtk_Handle > _Private
Definition: dtk_maindoc.hpp:351
@ VerticallyAligned
Definition: dtk_maindoc.hpp:1094
@ ThirdRefBlockSituation_1
Definition: dtk_maindoc.hpp:1126
@ DTK_TYPE_DOC_ELEMENT
Definition: define.h:501
Dtk_Size_t GetNumFathers() const
GetNumFather.
@ PsReaderModule
Definition: dtk_maindoc.hpp:41
Dtk_Int32 GetColorId() const
Retrieves the Color Id for ForceColor connectors.
NodeDataTypeEnum PrimaryType() const
Definition: dtk_maindoc.hpp:285
@ ForceColor
Definition: dtk_maindoc.hpp:1104
@ StackedBelow
Definition: dtk_maindoc.hpp:1099
@ ForceHidden
Definition: dtk_maindoc.hpp:1102
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.
@ ThirdRefBlockSituation_Common
Definition: dtk_maindoc.hpp:1125
@ AssociatedYDirection
Definition: dtk_maindoc.hpp:1139
Dtk_MetaDataPtr GetMetaData(const Dtk_Size_t &inPos) const
Retrieves the ith Dtk_MetaDataPtr - read only -.
@ CerecReaderModule
Definition: dtk_maindoc.hpp:50
void SetRenderId(Dtk_ID inRenderId)
Set the Render Id for ForceRender connectors.
@ FirstRefBlockSituation_3
Definition: dtk_maindoc.hpp:1114
NodeDataTypeEnum
Definition: dtk_maindoc.hpp:250
@ PrcReaderModule
Definition: dtk_maindoc.hpp:74
@ V5ReaderModule
Definition: dtk_maindoc.hpp:31
@ _typeID
Definition: dtk_maindoc.hpp:106
friend class Dtk_Component
Definition: dtk_api.hpp:135
@ ModelDisplayType
Definition: dtk_maindoc.hpp:262
Dtk_SmartPtr< Dtk_Kinematic > Dtk_KinematicPtr
Definition: dtk_maindoc.hpp:25
@ SatReaderModule
Definition: dtk_maindoc.hpp:43
@ AssociatedAxisSystem
Definition: dtk_maindoc.hpp:1137
@ Zw3dReaderModule
Definition: dtk_maindoc.hpp:81
This is a high level string class.
Definition: dtk_string.hpp:53
@ StackedAbove
Definition: dtk_maindoc.hpp:1098
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:1227
void SetMultiModelFlag(Dtk_bool inMultiModelFlag)
Set flag to indicate that document contains several independant models.
void _ReleaseComponents()
@ KinematicsType
Definition: dtk_maindoc.hpp:257
@ XmlReaderModule
Definition: dtk_maindoc.hpp:53
@ DTK_TYPE_AXIS_SYSTEM
Definition: define.h:34
type_detk SubType() const
Definition: dtk_maindoc.hpp:286
FullType()
Definition: dtk_maindoc.hpp:284
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:1202
@ SecondRefBlockSituationCategory
Definition: dtk_maindoc.hpp:1208
@ SecondRefBlockSituation_2
Definition: dtk_maindoc.hpp:1120
Dtk_ID Dtk_NodeID
Definition: dtk_maindoc.hpp:89
@ UnknownModule
Definition: dtk_maindoc.hpp:84
@ BodyType
Definition: dtk_maindoc.hpp:252
@ AppearanceCategory
Definition: dtk_maindoc.hpp:1205
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:263
@ F3dReaderModule
Definition: dtk_maindoc.hpp:75
#define DTK_FALSE
Definition: define.h:727
@ StlReaderModule
Definition: dtk_maindoc.hpp:68
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:48
Dtk_ErrorStatus _ReplaceChild(const Dtk_Size_t &inPos, const Dtk_DocElementPtr &inNewChild)
Replaces a child by another one. Also update father lists.
@ AcisReaderModule
Definition: dtk_maindoc.hpp:47
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:687
DtkReaderType
Definition: dtk_maindoc.hpp:30
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:929
ComponentAvailabilityEnum
Definition: dtk_maindoc.hpp:561
@ ThirdRefBlockSituation_3
Definition: dtk_maindoc.hpp:1128
@ SwReaderModule
Definition: dtk_maindoc.hpp:37
const Dtk_NodePtr GetChild(const Dtk_Size_t &inPos) const
Retrieves the ith Dtk_Node - read only -.
Definition: dtk_maindoc.hpp:388
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.
std::unique_ptr< Dtk_Handle > _Private
Definition: dtk_maindoc.hpp:1243
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:694
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
Dtk_NodeConnector(const Dtk_NodeConnector &)
@ CgrReaderModule
Definition: dtk_maindoc.hpp:45
friend class Dtk_MainDoc
Definition: dtk_maindoc.hpp:137
@ ObjReaderModule
Definition: dtk_maindoc.hpp:63
@ QifReaderModule
Definition: dtk_maindoc.hpp:79
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:1131
const Dtk_Node::FullType GetNodeFullType() const
Retrieves the Node FullType - Primary ans Sub Type - - read only -.
std::unique_ptr< Dtk_Handle > _Private
Definition: dtk_maindoc.hpp:935
This class represents a set of layer information, such as their name and identifier,...
Definition: util_ent_dtk.hpp:508
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:55
std::unique_ptr< Dtk_Handle > _Private
Definition: dtk_maindoc.hpp:630
~Dtk_NodeConnector()
Destructor.
@ U3dReaderModule
Definition: dtk_maindoc.hpp:58
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:39
ReasonCategoryEnum
Reason Category. Global Category of the NodeConnector uesed to gather Reason into families.
Definition: dtk_maindoc.hpp:1200
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:1141
Dtk_ErrorStatus AddSubEntity(const SubEntity &inSubEntity)
Add a SubEntity - defined by their IDs and Types - to the SubEntities list.
@ _3dXmlReaderModule
Definition: dtk_maindoc.hpp:52
std::unique_ptr< Dtk_Handle > _Private
Definition: dtk_maindoc.hpp:107
@ StackedRight
Definition: dtk_maindoc.hpp:1097
@ DTK_TYPE_METADATA
Definition: define.h:507
@ V6ReaderModule
Definition: dtk_maindoc.hpp:54
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:38
Dtk_SmartPtr< Dtk_feat > Dtk_FeaturePtr
Definition: dtk_maindoc.hpp:23
Dtk_SmartPtr< Dtk_mesh > Dtk_MeshPtr
Definition: dtk_maindoc.hpp:21
@ DcmReaderModule
Definition: dtk_maindoc.hpp:51
@ MaxReaderModules
Definition: dtk_maindoc.hpp:85
This is the Node Class.
Definition: dtk_maindoc.hpp:234
Dtk_NodeConnector(Dtk_NodeConnector &&s) DTK_NOEXCEPT
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:1127
@ DTK_TYPE_BODY
Definition: define.h:481
@ RevitReaderModule
Definition: dtk_maindoc.hpp:66
static Dtk_string ReasonLinkEnumToString(const ReasonLinkEnum &inEnum)
Definition: dtk_maindoc.hpp:1146
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:273
@ ArtReaderModule
Definition: dtk_maindoc.hpp:72
static Dtk_string ComponentAvailabilityEnumToString(const ComponentAvailabilityEnum &inEnum)
Definition: dtk_maindoc.hpp:580
@ MetaDataType
Definition: dtk_maindoc.hpp:261
@ NullType
Definition: dtk_maindoc.hpp:251
@ ForceRender
Definition: dtk_maindoc.hpp:1105
@ Context
Definition: dtk_maindoc.hpp:1143
Dtk_ConstraintPtr GetDtk_ConstraintPtr()
Retrieves the Dtk_Node as a Dtk_ConstraintPtr - if exists -.
@ V4ReaderModule
Definition: dtk_maindoc.hpp:34
ComponentTypeEnum
Definition: dtk_maindoc.hpp:572
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:596
@ ConstraintType
Definition: dtk_maindoc.hpp:265
Dtk_InfoPtr GetInfos() const
Retrieves the Dtk_DocElement Dtk_InfoPtr - read only -.
@ ForceClipped
Definition: dtk_maindoc.hpp:1106
@ StepReaderModule
Definition: dtk_maindoc.hpp:40
@ DstvReaderModule
Definition: dtk_maindoc.hpp:76
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:1095
void AddChild(const Dtk_NodePtr &inChild)
Adds a child Dtk_Node to main Node.
Definition: dtk_maindoc.hpp:382
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:71
@ FirstRefBlockSituationCategory
Definition: dtk_maindoc.hpp:1207
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:1209
@ LayerInfosSetType
Definition: dtk_maindoc.hpp:259
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:564
static Dtk_string ReasonCategoryEnumToString(const ReasonCategoryEnum &inEnum)
Definition: dtk_maindoc.hpp:1211
@ VdaReaderModule
Definition: dtk_maindoc.hpp:32
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:1103
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:1100
type_detk get_type_detk() const
Definition: dtk_maindoc.hpp:1278
@ HighlightedGeometry
Definition: dtk_maindoc.hpp:1135
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:398
SubEntity(const Dtk_ID inSubEntityID, const type_detk inSubEntityType)
Definition: dtk_maindoc.hpp:1233
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:290
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:1232
@ VisibilityCategory
Definition: dtk_maindoc.hpp:1204
Dtk_Int32 DtkDynamicType(const int &inId)
Retrieves the dynamic entity type.
static Dtk_Int32 NodeDataStringToEnumType(const Dtk_string &type)
Definition: dtk_maindoc.hpp:313
@ DwgDtkReaderModule
Definition: dtk_maindoc.hpp:80
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:1134
@ CgmReaderModule
Definition: dtk_maindoc.hpp:70
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:69
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:1118
@ SmgReaderModule
Definition: dtk_maindoc.hpp:73
@ SecondRefBlockSituation_3
Definition: dtk_maindoc.hpp:1121
@ IfcReaderModule
Definition: dtk_maindoc.hpp:64
@ DTK_TYPE_NO_SUBTYPE
Definition: define.h:532
@ GeneralAssociationCategory
Definition: dtk_maindoc.hpp:1203
Dtk_ColorInfosSetPtr GetDtk_ColorInfosSetPtr()
Retrieves the Dtk_Node as a Dtk_ColorInfosSetPtr - if exists -.
@ PrototypeComponentType
Definition: dtk_maindoc.hpp:574
Dtk_FeaturePtr GetDtk_FeaturePtr()
Retrieves the Dtk_Node as a Dtk_FeaturePtr - if exists -.
@ FirstRefBlockSituation_Common
Definition: dtk_maindoc.hpp:1111
This is the Main Doc Element Class The Dtk_DocElement object is common parent class of the Dtk_Node a...
Definition: dtk_maindoc.hpp:103
@ ColorInfosSetType
Definition: dtk_maindoc.hpp:260
@ XmtReaderModule
Definition: dtk_maindoc.hpp:36
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:1112
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:558
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:33
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:88
type_detk GetSubEntityType() const
Definition: dtk_maindoc.hpp:1237
Dtk_Size_t GetNumFatherComponent(const Dtk_ComponentPtr &inComponent)
Retrieves the inIndexth father of the giving Dtk_ComponentPtr.
@ JtReaderModule
Definition: dtk_maindoc.hpp:44
@ AssociatedZDirection
Definition: dtk_maindoc.hpp:1140
@ StackedLeft
Definition: dtk_maindoc.hpp:1096
Dtk_ComponentPtr CreateVirtualDtk_Component(Dtk_string inComponentName, const DtkReaderType &inAssociatedModule, Dtk_string inComponentFullPath, const Dtk_Component::ComponentAvailabilityEnum &inAvailability)
Creates a virtual Dtk_ComponentPtr.
@ CreoviewReaderModule
Definition: dtk_maindoc.hpp:67
void _ReleaseVolatileData()
@ VirtualType
Definition: dtk_maindoc.hpp:264
@ PdfReaderModule
Definition: dtk_maindoc.hpp:59
@ AssociatedXDirection
Definition: dtk_maindoc.hpp:1138
Dtk_ErrorStatus GetSubEntities(Dtk_tab< SubEntity > &outSubEntities) const
Retrieves the SubEntities array - defined by their IDs and Types -.
@ DrawingType
Definition: dtk_maindoc.hpp:256
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:77
Dtk_bool NodeHasMesh() const
Return DTK_TRUE if Dtk_Node Type Body or Mesh contains mesh entity.
@ OrientationallyFixed
Definition: dtk_maindoc.hpp:1101
@ SecondRefBlockSituation_1
Definition: dtk_maindoc.hpp:1119
@ AxisSystemType
Definition: dtk_maindoc.hpp:258
Dtk_Int32 DtkDynamicType(const int &inId)
Retrieves the dynamic entity type.
@ FirstRefBlockSituation_2
Definition: dtk_maindoc.hpp:1113
~SubEntity()
Definition: dtk_maindoc.hpp:1234
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:1133
static Dtk_NodeConnector * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
@ AssociatedFeature
Definition: dtk_maindoc.hpp:1132
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:609
@ BRepOccReaderModule
Definition: dtk_maindoc.hpp:65
@ MeshType
Definition: dtk_maindoc.hpp:253
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:42
@ UgReaderModule
Definition: dtk_maindoc.hpp:35
#define DTK_NOEXCEPT
Definition: config.hpp:20
@ Lava3mReaderModule
Definition: dtk_maindoc.hpp:57
Dtk_Object & operator=(const Dtk_Object &s)
@ DwgReaderModule
Definition: dtk_maindoc.hpp:62
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:1236
const Dtk_ComponentPtr & RootComponent() const
Retrieves the root Dtk_ComponentPtr of the Dtk_MainDoc.