|
DATAKIT API
V2025.1
|
|
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")
567 ComponentMissing = 0,
569 ComponentInternal = 2,
570 ComponentPhantom = 4,
571 ComponentAdditionnalReference = 8,
572 ComponentAssemblyGeometry = 16,
573 ComponentWithUnavailableReader = 32
577 InstanceComponentType = 0,
588 case ComponentMissing:
return L
"ComponentMissing";
589 case ComponentFound:
return L
"ComponentFound";
590 case ComponentInternal:
return L
"ComponentInternal";
591 case ComponentPhantom:
return L
"ComponentPhantom";
592 case ComponentAdditionnalReference:
return L
"ComponentAdditionnalReference";
593 case ComponentAssemblyGeometry:
return L
"ComponentAssemblyGeometry";
594 case ComponentWithUnavailableReader:
return L
"ComponentWithUnavailableReader";
596 default:
return L
"Unknown";
604 case CatalogComponentType:
return L
"CatalogComponentType";
605 case VirtualComponentType:
return L
"VirtualComponentType";
606 case InstanceComponentType:
return L
"InstanceComponentType";
607 case PrototypeComponentType:
return L
"PrototypeComponentType";
609 default:
return L
"Unknown";
619 if( name == L
"CatalogComponentType" )
620 result = CatalogComponentType;
621 else if( name == L
"VirtualComponentType" )
622 result = VirtualComponentType;
623 else if( name == L
"InstanceComponentType" )
624 result = InstanceComponentType;
625 else if( name == L
"PrototypeComponentType" )
626 result = PrototypeComponentType;
650 const Dtk_Int32& inAdditionnalReferenceFlag,
662 void _CheckGlobalDataSet();
663 void _CheckFdtDataSet();
765 const Dtk_ID& inAnnotationSetID);
781 const Dtk_ID& inKinematicID);
847 SetAsDeprecated(
"2022.1",
"Use Dtk_Component::GetConceptionUnitScale(Dtk_Double64 &outUnitScale) method instead.")
924 friend class Dtk_MainDocWrapper;
998 const int inAdditionnalReferenceFlag = 0,
1139 case VerticallyAligned:
return L
"VerticallyAligned";
1140 case HorizontallyAligned:
return L
"HorizontallyAligned";
1141 case StackedLeft:
return L
"StackedLeft";
1142 case StackedRight:
return L
"StackedRight";
1143 case StackedAbove:
return L
"StackedAbove";
1144 case StackedBelow:
return L
"StackedBelow";
1145 case PositionallyFixed:
return L
"PositionallyFixed";
1146 case OrientationallyFixed:
return L
"OrientationallyFixed";
1147 case ForceHidden:
return L
"ForceHidden";
1148 case ForceVisible:
return L
"ForceVisible";
1149 case ForceClipped:
return L
"ForceClipped";
1150 case KeepOnlyFdt:
return L
"KeepOnlyFdt";
1152 case AssociatedGeometry:
return L
"AssociatedGeometry";
1153 case AssociatedFeature:
return L
"AssociatedFeature";
1154 case SubPMI:
return L
"SubPMI";
1155 case DefaultAnnotationLink:
return L
"DefaultAnnotationLink";
1156 case HighlightedGeometry:
return L
"HighlightedGeometry";
1157 case Support:
return L
"Support";
1158 case AssociatedAxisSystem:
return L
"AssociatedAxisSystem";
1159 case AssociatedXDirection:
return L
"AssociatedXDirection";
1160 case AssociatedYDirection:
return L
"AssociatedYDirection";
1161 case AssociatedZDirection:
return L
"AssociatedZDirection";
1162 case AssociatedCenterPoint:
return L
"AssociatedCenterPoint";
1164 case Context:
return L
"Context";
1166 case FirstRefBlockSituation_Common:
return L
"FirstRefBlockSituation_Common";
1167 case FirstRefBlockSituation_1:
return L
"FirstRefBlockSituation_1";
1168 case FirstRefBlockSituation_2:
return L
"FirstRefBlockSituation_2";
1169 case FirstRefBlockSituation_3:
return L
"FirstRefBlockSituation_3";
1171 case SecondRefBlockSituation_Common:
return L
"SecondRefBlockSituation_Common";
1172 case SecondRefBlockSituation_1:
return L
"SecondRefBlockSituation_1";
1173 case SecondRefBlockSituation_2:
return L
"SecondRefBlockSituation_2";
1174 case SecondRefBlockSituation_3:
return L
"SecondRefBlockSituation_3";
1176 case ThirdRefBlockSituation_Common:
return L
"ThirdRefBlockSituation_Common";
1177 case ThirdRefBlockSituation_1:
return L
"ThirdRefBlockSituation_1";
1178 case ThirdRefBlockSituation_2:
return L
"ThirdRefBlockSituation_2";
1179 case ThirdRefBlockSituation_3:
return L
"ThirdRefBlockSituation_3";
1181 default:
return L
"Unknown";
1188 UnknownCategory = 0,
1201 case PlacementCategory:
return L
"PlacementCategory";
1202 case GeneralAssociationCategory:
return L
"GeneralAssociationCategory";
1203 case VisibilityCategory:
return L
"VisibilityCategory";
1204 case FirstRefBlockSituationCategory:
return L
"FirstRefBlockSituationCategory";
1205 case SecondRefBlockSituationCategory:
return L
"SecondRefBlockSituationCategory";
1206 case ThirdRefBlockSituationCategory:
return L
"ThirdRefBlockSituationCategory";
1207 default:
return L
"UnknownCategory";
1218 inline SubEntity(
const Dtk_ID inSubEntityID,
const type_detk inSubEntityType ) : _SubEntityID(inSubEntityID), _SubEntityType(inSubEntityType){}
1219 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:6857
ReasonLinkEnum
Reason - Type of the Dtk_NodeConnector -. It's used to filter connectors to same elements.
Definition: dtk_maindoc.hpp:1082
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:1096
@ 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:689
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:1078
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:684
Dtk_ModelDisplayPtr GetDtk_ModelDisplayPtr()
Retrieves the Dtk_Node as a Dtk_ModelDisplayPtr - if exists -.
@ Support
Definition: dtk_maindoc.hpp:1125
virtual ~Dtk_DocElement()
Destructor.
@ FdtType
Definition: dtk_maindoc.hpp:251
~FullType()
Definition: dtk_maindoc.hpp:279
SubEntity(const SubEntity &inTobeCopied)
Definition: dtk_maindoc.hpp:1219
@ DTK_TYPE_MESH
Definition: define.h:477
@ CatalogComponentType
Definition: dtk_maindoc.hpp:579
@ _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:678
@ DTK_TYPE_NODE_CONNECTOR
Definition: define.h:483
Dtk_ComponentPtr GetFatherComponent(const Dtk_ComponentPtr &inComponent, Dtk_Size_t inIndex) const
Retrieves the inIndexth father of the giving Dtk_ComponentPtr.
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:1085
@ ThirdRefBlockSituation_1
Definition: dtk_maindoc.hpp:1115
@ DTK_TYPE_DOC_ELEMENT
Definition: define.h:510
@ 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.
@ PsReaderModule
Definition: dtk_maindoc.hpp:40
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:1090
@ ForceHidden
Definition: dtk_maindoc.hpp:1093
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:1114
@ 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:1128
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_Handle * _Private
Definition: dtk_maindoc.hpp:929
@ FirstRefBlockSituation_3
Definition: dtk_maindoc.hpp:1103
NodeDataTypeEnum
Definition: dtk_maindoc.hpp:246
@ PrcReaderModule
Definition: dtk_maindoc.hpp:73
@ V5ReaderModule
Definition: dtk_maindoc.hpp:30
@ _typeID
Definition: dtk_maindoc.hpp:104
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:1229
@ AssociatedAxisSystem
Definition: dtk_maindoc.hpp:1126
@ 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:1089
Dtk_bool NodeHasMeshSurfaces() const
Return DTK_TRUE if Dtk_Node Type Body contains mesh surface entity.
size_t Dtk_Size_t
Definition: define.h:712
Definition: dtk_maindoc.hpp:1212
void _ReleaseComponents()
Dtk_bool IsAdditionnalReference() const
Return DTK_TRUE if Dtk_Component is Additionnal Reference.
@ KinematicsType
Definition: dtk_maindoc.hpp:253
@ 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:1189
@ SecondRefBlockSituationCategory
Definition: dtk_maindoc.hpp:1194
@ SecondRefBlockSituation_2
Definition: dtk_maindoc.hpp:1109
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:728
@ 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:725
@ 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:1247
@ AcisReaderModule
Definition: dtk_maindoc.hpp:46
const ComponentAvailabilityEnum ComponentAvailability() const
Give Dtk_Component availability - read only -.
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:694
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:923
ComponentAvailabilityEnum
Definition: dtk_maindoc.hpp:566
@ ThirdRefBlockSituation_3
Definition: dtk_maindoc.hpp:1117
@ 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:385
double Dtk_Double64
Definition: define.h:699
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_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_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:1823
@ DTK_TYPE_NODE
Definition: define.h:511
Dtk_NodePtr CreateFdtAnnotationSetNode(Dtk_string inName, const Dtk_ID &inAnnotationSetID)
Create a FdtAnnotationSet Dtk_NodePtr from a Dtk_FdtAnnotationSetPtr ID.
static Dtk_NodeConnectorPtr Create(const Dtk_NodeConnector &s)
Copy constructor.
@ CgrReaderModule
Definition: dtk_maindoc.hpp:44
friend class Dtk_MainDoc
Definition: dtk_maindoc.hpp:138
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:1120
const Dtk_Node::FullType GetNodeFullType() const
Retrieves the Node FullType - Primary ans Sub Type - - read only -.
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_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.
static Dtk_NodeConnectorPtr Create()
Base constructor.
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:1187
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:1130
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
Dtk_NodeConnector(const Dtk_NodeConnector &inNodeConnector)
Copy constructor.
@ StackedRight
Definition: dtk_maindoc.hpp:1088
@ DTK_TYPE_METADATA
Definition: define.h:516
@ 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
const Dtk_transfo & TransformationMatrix() const
Retrieves the Dtk_Component TransformationMatrix - read only -.
Dtk_SmartPtr< Dtk_mesh > Dtk_MeshPtr
Definition: dtk_maindoc.hpp:20
@ DcmReaderModule
Definition: dtk_maindoc.hpp:50
@ MaxReaderModules
Definition: dtk_maindoc.hpp:83
This is the Node Class The Dtk_Node object is used to retrieve informations in a Dtk_ComponentPtr obj...
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:1116
@ DTK_TYPE_BODY
Definition: define.h:490
@ RevitReaderModule
Definition: dtk_maindoc.hpp:65
static Dtk_string ReasonLinkEnumToString(const ReasonLinkEnum &inEnum)
Definition: dtk_maindoc.hpp:1135
int32_t Dtk_Int32
Definition: define.h:687
friend class Dtk_Component
Definition: dtk_maindoc.hpp:349
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:584
@ MetaDataType
Definition: dtk_maindoc.hpp:257
@ NullType
Definition: dtk_maindoc.hpp:247
@ Context
Definition: dtk_maindoc.hpp:1132
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:576
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:600
@ 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:1095
@ 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:1086
void AddChild(const Dtk_NodePtr &inChild)
Adds a child Dtk_Node to main Node.
Definition: dtk_maindoc.hpp:379
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:1193
type_detk GetPointedEntityType() const
Retrieves the pointed entity Type.
void GetAssociatedPathComponentID(Dtk_tab< Dtk_ID > &outAssociatedPathComponentID) const
@ DTK_TYPE_FDT
Definition: define.h:433
@ ThirdRefBlockSituationCategory
Definition: dtk_maindoc.hpp:1195
@ 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:569
static Dtk_string ReasonCategoryEnumToString(const ReasonCategoryEnum &inEnum)
Definition: dtk_maindoc.hpp:1197
@ 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_FdtAnnotationSetPtr - if exists -.
@ DTK_TYPE_DOCUMENT
Definition: define.h:509
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
Dtk_MetaDataGroupPtr GetMetaDataGroup(const Dtk_Size_t &inPos) const
Retrieves the ith Dtk_MetaDataGrouplPtr - read only -.
@ ForceVisible
Definition: dtk_maindoc.hpp:1094
Dtk_Size_t GetNumComponents() const
Give number of Components in the Dtk_MainDoc (useful if you want to handle progress bar).
Dtk_MaterialPtr GetMaterial() const
Retrieves the Dtk_DocElement Dtk_MaterialPtr - read only -.
const Dtk_string & FullPathName() const
Retrieves the Dtk_Component FullPathName - read only -.
@ PositionallyFixed
Definition: dtk_maindoc.hpp:1091
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:1269
@ HighlightedGeometry
Definition: dtk_maindoc.hpp:1124
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:395
@ _typeID
Definition: dtk_maindoc.hpp:346
SubEntity(const Dtk_ID inSubEntityID, const type_detk inSubEntityType)
Definition: dtk_maindoc.hpp:1218
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:512
Dtk_ErrorStatus SetComponentAvailability(const ComponentAvailabilityEnum &inComponentAvailability)
SubEntity()
Definition: dtk_maindoc.hpp:1217
@ VisibilityCategory
Definition: dtk_maindoc.hpp:1191
Dtk_Int32 DtkDynamicType(const int &inId)
Retrieves the dynamic entity type.
static Dtk_Int32 NodeDataStringToEnumType(const Dtk_string &type)
Definition: dtk_maindoc.hpp:309
This is a high level array class.
Definition: util_stl_dtk.hpp:85
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:608
void GetReadID(Dtk_ID &outReadID) const
@ DefaultAnnotationLink
Definition: dtk_maindoc.hpp:1123
@ 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:1107
@ SmgReaderModule
Definition: dtk_maindoc.hpp:72
@ SecondRefBlockSituation_3
Definition: dtk_maindoc.hpp:1110
@ IfcReaderModule
Definition: dtk_maindoc.hpp:63
@ DTK_TYPE_NO_SUBTYPE
Definition: define.h:541
@ GeneralAssociationCategory
Definition: dtk_maindoc.hpp:1190
Dtk_ColorInfosSetPtr GetDtk_ColorInfosSetPtr()
Retrieves the Dtk_Node as a Dtk_ColorInfosSetPtr - if exists -.
@ PrototypeComponentType
Definition: dtk_maindoc.hpp:578
Dtk_FeaturePtr GetDtk_FeaturePtr()
Retrieves the Dtk_Node as a Dtk_FeaturePtr - if exists -.
@ FirstRefBlockSituation_Common
Definition: dtk_maindoc.hpp:1100
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 -.
int len() const
Retrieve the length of the Dtk_string.
@ FirstRefBlockSituation_1
Definition: dtk_maindoc.hpp:1101
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:563
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()
Base constructor.
Dtk_ID Dtk_ComponentID
Definition: dtk_maindoc.hpp:86
type_detk GetSubEntityType() const
Definition: dtk_maindoc.hpp:1223
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:1129
@ StackedLeft
Definition: dtk_maindoc.hpp:1087
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
const Dtk_string & inInstanceName
Definition: catiav5w.hpp:618
@ 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:1127
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:1092
@ SecondRefBlockSituation_1
Definition: dtk_maindoc.hpp:1108
@ AxisSystemType
Definition: dtk_maindoc.hpp:254
Dtk_Int32 DtkDynamicType(const int &inId)
Retrieves the dynamic entity type.
@ FirstRefBlockSituation_2
Definition: dtk_maindoc.hpp:1102
~SubEntity()
Definition: dtk_maindoc.hpp:1220
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:1122
static Dtk_NodeConnector * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
@ AssociatedFeature
Definition: dtk_maindoc.hpp:1121
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:613
SetAsDeprecated("Undefined", "No more used") Dtk_FdtAnnotationSetPtr GetDtk_FdtAnnotationSetPtr()
Retrieves the Dtk_Node as a Dtk_FdtAnnotationSetPtr - if exists -.
@ 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:634
@ 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:1222
const Dtk_ComponentPtr & RootComponent() const
Retrieves the root Dtk_ComponentPtr of the Dtk_MainDoc.