 |
DATAKIT SDK
V2026.2
|
|
Go to the documentation of this file. 1 #ifndef _UTIL_ENT_DTK_HPP_
2 #define _UTIL_ENT_DTK_HPP_
95 return s1.
cmp(s2) < 0;
103 return s1.
icmp(s2) < 0;
394 virtual enum type_detk get_type_detk()
const=0;
534 Layer() : m_Name(), m_ID( static_cast<
Dtk_ID >( -1 ) ), m_FatherID( static_cast<
Dtk_ID >( -1 ) ), m_Status( 0 )
536 FlagAs( Status::Visible );
537 FlagAs( Status::Selectable );
541 FlagAs( Status::Visible );
542 FlagAs( Status::Selectable );
992 rendering_mode_shaded_only=0,
1000 rendering_mode_unknown
1157 ValueTypeUndefined = 0,
1167 case ValueTypeSame:
return L
"TypeSame";
1168 case ValueTypeOpposite:
return L
"TypeOpposite";
1169 case ValueTypeInternal:
return L
"TypeInternal";
1170 case ValueTypeExternal:
return L
"TypeExternal";
1172 case ValueTypeUndefined:
return L
"TypeUndefined";
1178 ValueTypeUnknown = 0,
1189 case ValueTypeAngle:
return L
"Angle";
1190 case ValueTypeDistance:
return L
"Distance";
1191 case ValueTypePosition:
return L
"Position";
1192 case ValueTypeRotation:
return L
"Rotation";
1193 case ValueTypeOrientation:
return L
"Orientation";
1195 case ValueTypeUnknown:
return L
"TypeUnknown";
1271 case TypeAlign:
return L
"TypeAlign";
1272 case TypeAngle:
return L
"TypeAngle";
1273 case TypeBond:
return L
"TypeBond";
1274 case TypeCam:
return L
"TypeCam";
1275 case TypeCenter:
return L
"TypeCenter";
1276 case TypeConcentric:
return L
"TypeConcentric";
1277 case TypeCoincidence:
return L
"TypeCoincidence";
1278 case TypeDistance:
return L
"TypeDistance";
1279 case TypeFit:
return L
"TypeFit";
1280 case TypeFix:
return L
"TypeFix";
1281 case TypeGear:
return L
"TypeGear";
1282 case TypeHinge:
return L
"TypeHinge";
1283 case TypeLimit:
return L
"TypeLimit";
1284 case TypeLinear:
return L
"TypeLinear";
1285 case TypeLinearCoupler:
return L
"TypeLinearCoupler";
1286 case TypeLock:
return L
"TypeLock";
1287 case TypeOrientAngle:
return L
"TypeOrientAngle";
1288 case TypeParallel:
return L
"TypeParallel";
1289 case TypePathMate:
return L
"TypePathMate";
1290 case TypePerpendicular:
return L
"TypePerpendicular";
1291 case TypeProfileCenter:
return L
"TypeProfileCenter";
1292 case TypeRackPinion:
return L
"TypeRackPinion";
1293 case TypeScrew:
return L
"TypeScrew";
1294 case TypeSlot:
return L
"TypeSlot";
1295 case TypeSymmetric:
return L
"TypeSymmetric";
1296 case TypeTangent:
return L
"TypeTangent";
1297 case TypeTouch:
return L
"TypeTouch";
1298 case TypeUniversalJoint:
return L
"TypeUniversalJoint";
1299 case TypeWidth:
return L
"TypeWidth";
1301 case TypeUnknown:
return L
"Unknown";
@ DTK_TYPE_COLOR_INFOS_SET
Definition: define.h:498
@ TypeFix
Definition: util_ent_dtk.hpp:1239
void SetNodeConnector(const Dtk_NodeConnectorPtr &in)
Set the type of the Constraint .
int GetFlexibleFlag() const
Dtk_ErrorStatus FindAttribute(const Dtk_string &name, Dtk_Val &val) const
static Dtk_ModelDisplayPtr Create(const Dtk_CameraPtr &inCamera, const Dtk_EntityPtr &inClippingEntity, const Dtk_bool inIsActivated)
Calls full featured constructor to allocate a new object.
static Dtk_ConstraintReference * DtkDynamicCast(Dtk_Object *inObject)
@ DTK_TYPE_LAYER_INFOS_SET
Definition: define.h:494
void GetVisibleLayers(Dtk_tab< Dtk_Int32 > &outVisibleLayers) const
Visible layer for Dtk_ModelDisplay.
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:1134
Definition: util_stl_dtk.hpp:921
Dtk_LayerFilterInfos(const Dtk_Size_t inNumLayers, Dtk_string inName=L"", Dtk_string inDescription=L"", const Dtk_bool inAreLayersActivatedByDefault=DTK_FALSE)
Dtk_ErrorStatus GetReferenceSet(Dtk_tab< Dtk_string > &outArray, Dtk_Int32 inRemovePrefix=DTK_FALSE) const
Dtk_InfoPtr get_info() const
Dtk_SmartPtr< Dtk_LayerInfosSet > Dtk_LayerInfosSetPtr
Definition: util_ent_dtk.hpp:419
uint32_t Dtk_ID
Definition: define.h:681
void SetMatrix(const Dtk_transfo &in)
Get the Matrix of the AxisSystem.
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:118
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
int GetIsVisible() const
Get the visibility status.
Dtk_ErrorStatus GetDefaultColor(Dtk_Int32 &outDefaultColor) const
Gets the default color number.
Dtk_string GetName() const
Retrieves the entity name.
Dtk_CameraPtr inCamera
Definition: pdfw.hpp:655
Dtk_SmartPtr< Dtk_AxisSystem > Dtk_AxisSystemPtr
Definition: util_ent_dtk.hpp:423
Dtk_PhysicalMaterialInfosPtr GetPhysicalMaterialInfos() const
Retrieves the entity MaterialInfos.
Definition: util_ent_dtk.hpp:1200
const Dtk_ID & GetID() const
Get Internal UniqueID.
Dtk_ErrorStatus SetCurveThickNess(const Dtk_Int32 &inCurveThickNess)
@ rendering_mode_wireframe_face_analysis
Definition: util_ent_dtk.hpp:997
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:556
int cmp(const Dtk_WChar_t *s2) const
Dtk_ErrorStatus SetFormFlag(const Dtk_Int32 &inFormFlag)
int GetBlankedStatus() const
Retrieves the entity Blanked Status.
Dtk_ConstraintReference(const Dtk_ConstraintReference &p)
int GetAddedItemFlag() const
Dtk_ErrorStatus SetFlexibleFlag(const Dtk_Int32 &inIsFlexible)
Dtk_ErrorStatus AddAttribute(Dtk_string name, Dtk_Val val)
Dtk_Size_t GetNumColors() const
Retrieves the number of colors.
int GetInfiniteGeometryFlag() const
Retrieves the Flag for Infinite Geometry.
@ TypeSlot
Definition: util_ent_dtk.hpp:1257
This is the generic Info class.
Definition: util_ent_dtk.hpp:114
Dtk_ErrorStatus SetName(Dtk_string inName)
Dtk_ConstraintReference()
void SetValue(const ConstraintValueTypeEnum &inValueType, Dtk_Val &inValue)
static Dtk_LayerFilterInfos * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
void GetSectionInformation(SectionTypeEnum &outSectionType, Dtk_Int32 &outIsLocked, Dtk_Double64 &outThickness) const
Get the type of the Section on the Dtk_Capture.
Dtk_PointType GetPointSymbolType() const
Retrieves the Symbol Type - for point only -.
~Dtk_ColorInfosSet()
Destructor.
const _ConstraintValue & GetConstraintValue(const Dtk_Size_t &index) const
Get the Dtk_Constraint::_ConstraintValue at the specified index.
virtual ~Dtk_AxisSystem()
int GetColorId() const
Retrieves the entity color index in Dtk_API color table.
enum MandatoryFlag GetMandatoryFlag() const
Retrieves the Mandatory Flag.
int GetDefaultChildIndex() const
@ TypeLinearCoupler
Definition: util_ent_dtk.hpp:1244
Dtk_bool GetIsStandardView() const
Get DTK_TRUE if this Dtk_ModelDisplay is a Standard View , DTK_FALSE if it is a user defined view .
Dtk_Double64 GetDisplayLineWidth() const
Retrieves if all wireframe is displayed with same width.
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:581
int dtk_AddColorInTable(const Dtk_RGB &)
ConstraintOrientationTypeEnum
Definition: util_ent_dtk.hpp:1156
void SetType(preview_type_detk inPreviewType)
@ DTK_TYPE_MODEL_DISPLAY
Definition: define.h:476
@ TypeAlign
Definition: util_ent_dtk.hpp:1222
virtual void conv_ptr(Dtk_Constraint **s)
Definition: util_ent_dtk.hpp:1368
Dtk_AxisSystem & operator=(const Dtk_AxisSystem &p)
Dtk_ErrorStatus AddCustomerDefinedAttribute(Dtk_string name, Dtk_Val val)
Dtk_tab< ConstraintValueTypeEnum > GetValuesTypes() const
Get all types of values in the Constraint.
@ XYPlane
Definition: util_ent_dtk.hpp:133
Dtk_Entity(Dtk_Entity &&s) DTK_NOEXCEPT
Definition: util_ent_dtk.hpp:519
Dtk_Double64 GetCurveThickNessInMM() const
Retrieves the curve thickness - if exists and relevant -.
Dtk_string m_Name
Definition: util_ent_dtk.hpp:527
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.
int GetRefEntityFlag() const
Retrieves the Flag for Reference Entity (Reference planes , axis, point.
@ DTK_TYPE_ENTITY
Definition: define.h:457
Definition: util_ent_dtk.hpp:100
Dtk_LayerInfosSet(Dtk_LayerInfosSet &&s) DTK_NOEXCEPT
Move constructor.
const Dtk_string const Dtk_transfo & inTransfo
Definition: catiav5w.hpp:622
Dtk_UShort16 m_Status
Definition: util_ent_dtk.hpp:530
Dtk_string GetPersistentName() const
Retrieves the entity persistent name.
@ DTK_CENTERLINE
Definition: util_ent_dtk.hpp:54
Dtk_SmartPtr< Dtk_Preview > Dtk_PreviewPtr
Definition: util_ent_dtk.hpp:832
Dtk_Double64 _ValueUpper
Definition: util_ent_dtk.hpp:1213
@ ValueTypeSame
Definition: util_ent_dtk.hpp:1158
@ TypeSymmetric
Definition: util_ent_dtk.hpp:1259
void _Copy(const Dtk_Constraint &s)
@ DTK_PT_CROSS
Definition: util_ent_dtk.hpp:27
Dtk_ErrorStatus SetRenderInfosId(const Dtk_ID &inRenderId)
Dtk_ErrorStatus SetHierarchy(const Dtk_Int32 &inHierarchy)
Dtk_SmartPtr< Dtk_LayerFilterInfos > Dtk_LayerFilterInfosPtr
Definition: util_ent_dtk.hpp:422
Dtk_LayerFilterInfos(const Dtk_LayerFilterInfos &s)
Copy constructor.
Dtk_ErrorStatus AddRenderInfos(const Dtk_RenderInfosPtr &inRender)
Dtk_ErrorStatus SetConfigurationName(const Dtk_string &inName)
Dtk_Int32 GetStreamSize()
virtual void conv_ptr(Dtk_ConstraintReference **s)
Definition: util_ent_dtk.hpp:1124
static Dtk_Info * DtkDynamicCast(Dtk_Object *s)
This is a high level string class.
Definition: dtk_string.hpp:53
@ DTK_PT_DOT
Definition: util_ent_dtk.hpp:34
Dtk_tab< Dtk_Int32 > GetActiveChildren() const
@ rendering_mode_shaded_with_visible_edges
Definition: util_ent_dtk.hpp:993
@ rendering_mode_wireframe_with_all_edges
Definition: util_ent_dtk.hpp:994
@ DTK_PT_UNSPECIFIED
Definition: util_ent_dtk.hpp:26
size_t Dtk_Size_t
Definition: define.h:704
Dtk_RGB GetColor() const
Retrieves the entity color as Dtk_RGBA values.
@ TypeBond
Definition: util_ent_dtk.hpp:1226
int GetActivationFlag() const
@ ValueTypeInternal
Definition: util_ent_dtk.hpp:1160
@ DTK_TYPE_AXIS_SYSTEM
Definition: define.h:34
~Dtk_ModelDisplay()
Destructor.
~Dtk_LayerInfosSet()
Destructor.
static Dtk_string ConstraintValueTypeEnumToString(const ConstraintValueTypeEnum &inEnum)
Definition: util_ent_dtk.hpp:1185
@ DTK_PT_STAR
Definition: util_ent_dtk.hpp:33
Dtk_string GetName() const
Get the Name of the AxisSystem.
Dtk_AxisSystem(const Dtk_AxisSystem &p)
Definition: dtk_uuid.hpp:8
virtual ~Dtk_ConstraintReference()
Dtk_Size_t GetNumberOfConstraintReferences() const
Get the number of Dtk_ConstraintReference in the constraint.
void SetIsStandardView() const
Set if this Dtk_ModelDisplay is a Standard View other case it is a user defined view.
SetAsDeprecated("v2026.2", "Use Create then Dtk_LayerInfoSet::AddLayers instead.") static Dtk_LayerInfosSetPtr Create(const Dtk_Size_t inNumLayers)
Calls a constructor to allocate a new object.
static Dtk_SmartPtr< Dtk_AxisSystem > create()
Calls default constructor to allocate a new object.
Dtk_bool GetIsUpToDate() const
Retrieves up to date state of current object.
@ ValueTypeExternal
Definition: util_ent_dtk.hpp:1161
uint16_t Dtk_UShort16
Definition: define.h:683
Dtk_ErrorStatus SetMetaData(Dtk_tab< Dtk_MetaDataPtr > &inArray)
@ DTK_BREAKLINE
Definition: util_ent_dtk.hpp:62
#define DTK_FALSE
Definition: define.h:720
Dtk_ErrorStatus ListAllCustomerDefinedAttributesWithVal(Dtk_tab< Dtk_pair< Dtk_string, Dtk_Val > > &tab) const
char Dtk_bool
Definition: define.h:717
Dtk_ErrorStatus RemoveAttribute(const Dtk_string &name)
@ DTK_TYPE_INFO
Definition: define.h:458
Dtk_ErrorStatus SelectLayers(const Dtk_tab< Dtk_Size_t > &inLayerIndexes)
Selects given layers in the layer filter.
const Dtk_string const Dtk_transfo const Dtk_bool inBlankedStatus
Definition: catiav5w.hpp:623
void SetName(const Dtk_string &in)
Set the Name of the AxisSystem.
Dtk_ConstraintReference & operator=(const Dtk_ConstraintReference &p)
@ DTK_SOLIDLINE
Definition: util_ent_dtk.hpp:48
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:373
@ rendering_mode_wireframe_with_only_visible_edges
Definition: util_ent_dtk.hpp:995
Dtk_ErrorStatus SetColorId(const Dtk_Int32 &inColorId)
@ ValueTypeOrientation
Definition: util_ent_dtk.hpp:1183
void SetConstraintType(const ConstraintTypeEnum &in)
Set the type of the Constraint .
Dtk_UUID GetUuid() const
Retrieves the entity UniqueID if any.
Dtk_ErrorStatus SetCurveLineTypeDefinitionId(const Dtk_ID &inLineTypeDefinitionId)
Set Dtk_LineTypeDefinition of current object via it's id in Dtk_API table.
@ DTK_NUM_FONT_LINE_TYPES
Definition: util_ent_dtk.hpp:63
int GetCurveThickNess() const
This is the Dtk_Constraint class.
Definition: util_ent_dtk.hpp:1153
double Dtk_Double64
Definition: define.h:691
_ConstraintValue(const ConstraintValueTypeEnum &inValueType, Dtk_Val &inValue, const Dtk_Int32 &inEnableLowerLimit, const Dtk_Double64 &inLowerLimit, const Dtk_Int32 &inEnableUpperLimit, const Dtk_Double64 &inUpperLimit)
int icmp(const Dtk_WChar_t *s2) const
void SetRenderingMode(RenderingModeEnum inMode) const
Set the rendering mode shaded , shaded with edge , ...
const Dtk_NodeConnectorPtr & GetNodeConnector() const
Get the Dtk_NodeConnectorPtr of the ConstraintReference .
const ConstraintTypeEnum & GetConstraintType() const
Get the type of the Constraint .
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:460
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:739
static Dtk_Constraint * DtkDynamicCast(Dtk_Object *inObject)
int DtkDynamicType(const int &inId)
RenderingModeEnum
Definition: util_ent_dtk.hpp:991
@ ValueTypeDistance
Definition: util_ent_dtk.hpp:1180
Dtk_ErrorStatus SetBlankedStatus(const Dtk_Int32 &inBlankedStatus)
Dtk_Info(const Dtk_Info &s)
@ ValueTypeAngle
Definition: util_ent_dtk.hpp:1179
static Dtk_Entity * DtkDynamicCast(Dtk_Object *s)
static Dtk_SmartPtr< Dtk_Info > create(Dtk_Info &&in)
Calls move constructor to allocate a new object.
Dtk_ErrorStatus SetInfiniteGeometryFlag(const Dtk_Int32 &inInfiniteGeometryFlag)
Dtk_ErrorStatus SelectLayer(const Dtk_Size_t inLayerIndex)
Selects a given layer in the layer filter.
Dtk_ErrorStatus SetAddedItemFlag(const Dtk_Int32 &inAddedItem)
_ConstraintValue(const ConstraintValueTypeEnum &inValueType, Dtk_Val &inValue)
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:948
Definition: dtk_val.hpp:67
preview_type_detk
Definition: define.h:624
Dtk_MaterialPtr _Material
Definition: util_ent_dtk.hpp:120
Dtk_ErrorStatus GetMetaData(Dtk_tab< Dtk_MetaDataPtr > &outArray) const
@ ValueTypeRotation
Definition: util_ent_dtk.hpp:1182
@ DTK_PT_UP_TRIANGLE
Definition: util_ent_dtk.hpp:39
Dtk_ErrorStatus SetDefaultColor(const Dtk_Int32 inDefaultColor)
Sets the default color number.
Dtk_ErrorStatus SetCurveLineType(const Dtk_Int32 &inCurveLineType)
Set line type of current object thanks to Dtk_FontLineType enumeration.
virtual Dtk_ErrorStatus _Store(void *)
const Dtk_ConstraintReferencePtr & GetConstraintReference(const Dtk_Size_t &index) const
Get the Dtk_ConstraintReference at the specified index.
int DtkDynamicType(const int &inId)
void SetIsVisible()
Set the visibility status.
This is the Dtk_ConstraintReference class.
Definition: util_ent_dtk.hpp:1094
static Dtk_string ConstraintOrientationTypeEnumToString(const ConstraintOrientationTypeEnum &inEnum)
Definition: util_ent_dtk.hpp:1163
ConstraintValueTypeEnum _ValueType
Definition: util_ent_dtk.hpp:1208
@ DTK_PT_COINCIDENT
Definition: util_ent_dtk.hpp:30
int DtkDynamicType(const int &inId)
This class represents a set of layer information, such as their name and identifier,...
Definition: util_ent_dtk.hpp:515
@ TypeTouch
Definition: util_ent_dtk.hpp:1263
@ rendering_mode_wireframe_partially_shade
Definition: util_ent_dtk.hpp:998
Dtk_ErrorStatus SetViewId(const Dtk_Int32 &inViewId)
Dtk_ErrorStatus SetDisplayLineWidth(const Dtk_Double64 &inDisplayLineWidth)
Dtk_ErrorStatus SetPointSymbolType(const Dtk_PointType inPointSymbolType)
Dtk_bool IsDefault() const
Get the default status.
This is the Dtk_ModelDisplay class.
Definition: util_ent_dtk.hpp:962
@ DTK_DASHED
Definition: util_ent_dtk.hpp:50
RenderingModeEnum GetRenderingMode() const
Get the rendering mode shaded , shaded with edge , ...
Dtk_ErrorStatus SetActiveChildren(const Dtk_tab< Dtk_Int32 > &inIndices)
Dtk_ErrorStatus AddCurveLineTypeDefinition(const Dtk_LineTypeDefinitionPtr &inLineTypeDefinition)
Add a Dtk_LineTypeDefinition to Dtk_API and set it to current object.
Dtk_ModelDisplay(const Dtk_CameraPtr &inCamera, const Dtk_EntityPtr &inClippingEntity, const Dtk_bool inIsActivated)
int DtkDynamicType(const int &inId)
Dtk_bool IsLayerSelected(const Dtk_Size_t inLayerIndex) const
Tells if the layer is selected or not giving its index.
Dtk_SmartPtr< Dtk_ModelDisplay > Dtk_ModelDisplayPtr
Definition: util_ent_dtk.hpp:424
@ SectionBox
Definition: util_ent_dtk.hpp:1006
@ TypeAngle
Definition: util_ent_dtk.hpp:1224
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:964
@ TypePerpendicular
Definition: util_ent_dtk.hpp:1253
Dtk_ErrorStatus SetHierarchyColorFlag(const Dtk_Int32 &inHierarchy)
Dtk_ErrorStatus SetActivationFlag(const Dtk_Int32 &inActivation)
static Dtk_LayerInfosSet * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
void SetPosition(const Dtk_pnt &in)
Set the Position of the ConstraintReference .
@ TypeHinge
Definition: util_ent_dtk.hpp:1241
@ TypeConcentric
Definition: util_ent_dtk.hpp:1231
SetAsDeprecated("v2026.2", "use GetMetaData() methods instead.") Dtk_ErrorStatus GetProperties(Dtk_tab< Dtk_PropertiesPtr > &outArray) const
Status
Definition: util_ent_dtk.hpp:521
Dtk_ErrorStatus SetAdditionnalGeometryFlag(const Dtk_Int32 &inAdditionnalGeom)
@ DTK_PT_SMALLDOT
Definition: util_ent_dtk.hpp:35
Dtk_EntityPtr GetClippingEntity() const
Retrieves the Dtk_ModelDisplay clipping entity - read only -.
void _copy(const Dtk_AxisSystem &s)
@ TypeParallel
Definition: util_ent_dtk.hpp:1250
@ rendering_mode_static_wireframe
Definition: util_ent_dtk.hpp:996
Dtk_LayerInfosSet(const Dtk_LayerInfosSet &s)
Copy constructor.
void Unflag(Status in)
Definition: util_ent_dtk.hpp:549
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:128
int32_t Dtk_Int32
Definition: define.h:679
@ DTK_DOTTED
Definition: util_ent_dtk.hpp:56
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:1018
Dtk_ErrorStatus AddLayer(const Dtk_Int32 &inLayer)
Dtk_CameraPtr Dtk_EntityPtr inClippingEntity
Definition: pdfw.hpp:656
Dtk_ErrorStatus GetValue(const ConstraintValueTypeEnum &inValue, Dtk_Val &outValue) const
Dtk_ErrorStatus ListAttributes(const Dtk_string &substring, Dtk_tab< Dtk_string > &tab_keys) const
@ rendering_mode_studio
Definition: util_ent_dtk.hpp:999
static Dtk_string ConstraintTypeEnumToString(const ConstraintTypeEnum &inEnum)
Definition: util_ent_dtk.hpp:1267
static Dtk_PreviewPtr Create(const Dtk_Preview &in)
Calls copy constructor to allocate a new object.
@ DTK_PT_CONCENTRIC
Definition: util_ent_dtk.hpp:29
@ DTK_TYPE_LAYER_FILTER_INFOS
Definition: define.h:495
Dtk_ErrorStatus UnselectLayers(const Dtk_tab< Dtk_Size_t > &inLayerIndexes)
Unselects the given layers in the layer filter.
@ ValueTypePosition
Definition: util_ent_dtk.hpp:1181
This is the Dtk_Preview class.
Definition: util_ent_dtk.hpp:842
@ NotMandatory
Definition: util_ent_dtk.hpp:132
Dtk_LineTypeDefinitionPtr GetCurveLineTypeDefinition() const
Retrieves the definition of the curve LineType - for curve entities -.
@ DTK_PHANTOM
Definition: util_ent_dtk.hpp:52
@ DTK_DOTTED_DASHED
Definition: util_ent_dtk.hpp:60
@ TypeUniversalJoint
Definition: util_ent_dtk.hpp:1264
Dtk_ErrorStatus GetColorDefinition(const Dtk_Size_t inColorPos, Dtk_RGB &outColorDef) const
Gets the ColorID giving its number.
Dtk_ErrorStatus SetCurveThickNessInMM(const Dtk_Double64 inCurveThickNessInMM)
int GetLayer() const
Retrieves the entity layer.
virtual Dtk_Size_t GetSize() const
int GetAdditionnalGeometryFlag() const
@ OriginPoint
Definition: util_ent_dtk.hpp:136
bool operator()(const Dtk_string &s1, const Dtk_string &s2) const
Definition: util_ent_dtk.hpp:101
@ DTK_PT_FULLCIRCLE
Definition: util_ent_dtk.hpp:31
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_ErrorStatus SetId(const Dtk_Int32 &inId)
@ TypeFit
Definition: util_ent_dtk.hpp:1237
Dtk_RenderInfosPtr GetRenderInfos() const
Retrieves the entity RenderInfos of the entity.
int GetHierarchyColorFlag() const
Dtk_ErrorStatus SetMandatoryFlag(const enum MandatoryFlag &inMandatoryFlag)
Dtk_ErrorStatus UnselectLayer(const Dtk_Size_t inLayerIndex)
Unselects the given layer in the layer filter.
@ DTK_PT_SQUARE
Definition: util_ent_dtk.hpp:38
ConstraintValueTypeEnum
Definition: util_ent_dtk.hpp:1177
virtual Dtk_ErrorStatus _Store(void *)
const Dtk_pnt & GetPosition(Dtk_bool &outHasPosition) const
Get the Position of the ConstraintReference .
Definition: util_ptr_dtk.hpp:37
static Dtk_AxisSystem * DtkDynamicCast(Dtk_Object *inObject)
preview_type_detk GetType()
@ TypeCam
Definition: util_ent_dtk.hpp:1227
@ DTK_PT_PLUS
Definition: util_ent_dtk.hpp:28
virtual Dtk_Size_t GetSize() const
Dtk_Entity & operator=(const Dtk_Entity &s)
@ TypePathMate
Definition: util_ent_dtk.hpp:1251
@ SectionParallelePlane
Definition: util_ent_dtk.hpp:1005
Dtk_ErrorStatus SetMatId(const Dtk_Int32 &inMatId)
Dtk_ErrorStatus SetPersistentName(Dtk_string inName)
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:979
void _copy(const Dtk_Entity &s)
void _Copy(const Dtk_ConstraintReference &s)
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.
@ YZPlane
Definition: util_ent_dtk.hpp:134
Dtk_ErrorStatus GetValue(const ConstraintValueTypeEnum &inValue, Dtk_Val &outValue, Dtk_Int32 &outEnableLowerLimit, Dtk_Double64 &outLowerLimit, Dtk_Int32 &outEnableUpperLimit, Dtk_Double64 &outUpperLimit) const
Get a Value of the Constraint .
Dtk_ErrorStatus AddMaterial(const Dtk_MaterialPtr &inMaterial)
const Dtk_CameraPtr & GetCamera() const
Retrieves the Dtk_ModelDisplay camera - read only -.
Dtk_ErrorStatus SetOccurrenceDataFlag()
Dtk_ErrorStatus GetColorID(const Dtk_Size_t inColorPos, Dtk_ID &outColorReadID) const
Gets the ColorID giving its number.
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.
void SetVisibleLayers(const Dtk_tab< Dtk_Int32 > &inVisibleLayers)
static Dtk_SmartPtr< Dtk_Info > create(const Dtk_Info &in)
Calls copy constructor to allocate a new object.
Dtk_ErrorStatus SetLayer(const Dtk_Int32 &inLayer)
Dtk_MaterialPtr GetMaterial() const
bool IsFlaggedAs(Status in) const
Definition: util_ent_dtk.hpp:547
This is a mathematical point class.
Definition: dtk_pnt.hpp:20
Dtk_SmartPtr< Dtk_material > Dtk_MaterialPtr
Definition: util_ent_dtk.hpp:21
Dtk_SmartPtr< Dtk_ColorInfosSet > Dtk_ColorInfosSetPtr
Definition: util_ent_dtk.hpp:421
type_detk
Definition: define.h:21
Dtk_Constraint(const Dtk_Constraint &p)
Dtk_ErrorStatus SetColor(const Dtk_RGB &inColor)
@ DTK_PT_FULLSQUARE
Definition: util_ent_dtk.hpp:32
@ ValueTypeOpposite
Definition: util_ent_dtk.hpp:1159
Dtk_Size_t AddColor(const Dtk_ID inColorReadId, const Dtk_string &inColorName, const Dtk_RGB &inColorDef)
Add Color definition.
const Dtk_tab< Dtk_ConstraintReferencePtr > & GetConstraintReference() const
Get all ConstraintReferences of the Constraint.
SectionTypeEnum
Definition: util_ent_dtk.hpp:1002
Dtk_FontLineType
This is a set of line styles.
Definition: util_ent_dtk.hpp:45
This class is used by Dtk_LayerInfosSet to represent a layer filter : its name, description,...
Definition: util_ent_dtk.hpp:436
const Dtk_transfo & GetMatrix() const
Get the Matrix of the AxisSystem.
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:1364
Dtk_ErrorStatus ListAllAttributes(Dtk_tab< Dtk_string > &tab_keys) const
Dtk_ID GetID() const
Definition: util_ent_dtk.hpp:545
Dtk_SmartPtr< Dtk_ConstraintReference > Dtk_ConstraintReferencePtr
Definition: util_ent_dtk.hpp:426
Dtk_ColorInfosSet(const Dtk_Size_t inNumColors)
@ SectionBody
Definition: util_ent_dtk.hpp:1007
Dtk_ErrorStatus SetFontId(const Dtk_Int32 &inFontId)
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:1120
Dtk_ErrorStatus SetColorName(const Dtk_Size_t inColorPos, const Dtk_string &inColorName)
Sets the Color Name giving its number.
Dtk_ErrorStatus ListAllAttributesWithVal(Dtk_tab< Dtk_pair< Dtk_string, Dtk_Val > > &tab) const
void GetName(Dtk_string &outLayerFilterName) const
Retrieves layer filter name.
virtual void PrepareTransfo()
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:567
Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)
Applies a transformation matrix to the entity. //!
@ TypeProfileCenter
Definition: util_ent_dtk.hpp:1254
Dtk_ErrorStatus SetPhysicalMaterialInfosId(const Dtk_ID &inMaterialId)
@ DTK_TYPE_CONSTRAINT_REFERENCE
Definition: define.h:600
Dtk_PointType
Definition: util_ent_dtk.hpp:25
@ TypeOrientAngle
Definition: util_ent_dtk.hpp:1248
@ DTK_NO_PATTERN
Definition: util_ent_dtk.hpp:46
@ DTK_LONG_DASHED
Definition: util_ent_dtk.hpp:58
@ TypeDistance
Definition: util_ent_dtk.hpp:1235
Dtk_ID GetFatherID() const
Definition: util_ent_dtk.hpp:546
Dtk_FontLineType GetCurveLineType() const
Retrieves the curve LineType - for curve entities -.
static Dtk_Preview * DtkDynamicCast(Dtk_Object *s)
Dtk_ErrorStatus AddPhysicalMaterialInfos(const Dtk_PhysicalMaterialInfosPtr &inMaterial)
@ DTK_PT_BIGFULLCIRCLE
Definition: util_ent_dtk.hpp:36
Dtk_SmartPtr< Dtk_Constraint > Dtk_ConstraintPtr
Definition: util_ent_dtk.hpp:425
void FlagAs(Status in)
Definition: util_ent_dtk.hpp:548
Dtk_string GetConfigurationName() const
Dtk_Size_t GetNumberOfConstraintValues()
Get the number of Dtk_Constraint::_ConstraintValue in the constraint.
This is the Color Info Set class. This is the read color definition Class. It gathers all information...
Definition: util_ent_dtk.hpp:728
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:934
@ DTK_TYPE_CONSTRAINT
Definition: define.h:599
Dtk_Preview(Dtk_Preview const &in)
Dtk_bool IsActivated() const
Tells if the Dtk_ModelDisplay is activated or not - read only -.
Dtk_Double64 _ValueLower
Definition: util_ent_dtk.hpp:1212
int DtkDynamicType(const Dtk_Int32 &inId)
void SetIsUpToDate(const Dtk_bool isUpToDate)
Set if current object is up to date or not.
@ DTK_PT_BIGFULLSQUARE
Definition: util_ent_dtk.hpp:37
Dtk_ID m_FatherID
Definition: util_ent_dtk.hpp:529
bool GetOccurrenceDataFlag() const
Retrieves the OccurrenceData flag.
MandatoryFlag
Definition: util_ent_dtk.hpp:131
virtual Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)=0
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:731
virtual ~Dtk_Constraint()
@ ZXPlane
Definition: util_ent_dtk.hpp:135
Dtk_ColorInfosSet(const Dtk_ColorInfosSet &s)
Dtk_tab< Dtk_Int32 > GetBuildingInfosIds() const
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:756
Dtk_ErrorStatus SetBuildingInfosIds(const Dtk_tab< Dtk_Int32 > inBuildingInfos)
@ TypeCoincidence
Definition: util_ent_dtk.hpp:1233
Dtk_ErrorStatus GetColorName(const Dtk_Size_t inColorPos, Dtk_string &outColorName) const
Gets the Color Name giving its number.
Dtk_tab< Dtk_Int32 > GetlayerList() const
Retrieves the layers in which the entity is assigned.
@ SectionPlaneList
Definition: util_ent_dtk.hpp:1004
bool operator()(const Dtk_string &s1, const Dtk_string &s2) const
Definition: util_ent_dtk.hpp:93
Dtk_ErrorStatus SetRefEntityFlag(const Dtk_Int32 &inRefEntityFlag)
Dtk_ErrorStatus SetColorID(const Dtk_Size_t inColorPos, const Dtk_ID &inColorReadID)
Sets the ColorID giving its number.
void SetValue(const ConstraintValueTypeEnum &inValueType, Dtk_Val &inValue, const Dtk_Int32 &inEnableLowerLimit, const Dtk_Double64 &inLowerLimit, const Dtk_Int32 &inEnableUpperLimit, const Dtk_Double64 &inUpperLimit)
Set a Value of the Constraint .
Definition: dtk_object.hpp:8
static Dtk_SmartPtr< Dtk_Constraint > Create()
Calls default constructor to allocate a new object.
Layer(Dtk_ID id, Dtk_string name=Dtk_string(), Dtk_ID fatherID=static_cast< Dtk_ID >(-1))
Definition: util_ent_dtk.hpp:539
static Dtk_ColorInfosSet * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
Dtk_ID GetPhysicalMaterialInfosId() const
Retrieves the Id of MaterialInfos of the entity in The Dtk_API table.
@ TypeLimit
Definition: util_ent_dtk.hpp:1242
@ DTK_PT_DIAMOND
Definition: util_ent_dtk.hpp:40
Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)
Applies a transformation matrix to the entity. //!
static Dtk_SmartPtr< Dtk_ConstraintReference > Create()
Calls default constructor to allocate a new object.
@ _typeID
Definition: util_ent_dtk.hpp:117
int DtkDynamicType(const int &inId)
Dtk_ID GetCurveLineTypeDefinitionId() const
Retrieves the Id of Dtk_LineTypeDefinition of the entity in The Dtk_API table.
virtual void conv_ptr(Dtk_AxisSystem **s)
Definition: util_ent_dtk.hpp:938
Dtk_ID GetRenderInfosId() const
Retrieves the Id of RenderInfos of the entity in The Dtk_API table.
Dtk_Int32 _EnableLower
Definition: util_ent_dtk.hpp:1210
void AddConstraintReference(const Dtk_ConstraintReferencePtr &in)
Add a ConstraintReference to this Constraint .
Dtk_ErrorStatus GetColorNameById(const Dtk_ID inColorReadId, Dtk_string &outColorName) const
Gets the Color Name giving the ID found iby infos->GetColorID().
Layer()
Definition: util_ent_dtk.hpp:534
void SetSectionInformation(const SectionTypeEnum &inSectionType, const Dtk_Int32 &inIsLocked=DTK_FALSE, const Dtk_Double64 &inThickness=0.0) const
Set the type of the section on the Dtk_ModelDisplay.
Dtk_ErrorStatus SetDefaultChildIndex(const Dtk_Int32 &inIndex)
Dtk_ErrorStatus SetUuid(const Dtk_UUID &inUuid)
void GetSelectedLayers(Dtk_tab< Dtk_Size_t > &outSelectedLayerIndexes) const
Retrieves all the selected layers into the layer filter.
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:1378
@ TypeTangent
Definition: util_ent_dtk.hpp:1261
static Dtk_ColorInfosSetPtr Create(const Dtk_Size_t inNumColors)
Calls a constructor to allocate a new object.
Dtk_LayerFilterInfos(Dtk_LayerFilterInfos &&s)
Move constructor.
@ TypeScrew
Definition: util_ent_dtk.hpp:1256
void _copy(const Dtk_Info &s)
Dtk_Entity & operator=(Dtk_Entity &&s) DTK_NOEXCEPT
Dtk_ErrorStatus SetUse(const Dtk_Int32 &inUse)
Definition: dtk_rgb.hpp:7
Dtk_ErrorStatus SetColor(const int &R, const int &G, const int &B)
Dtk_Preview(const char *inStream, const Dtk_Int32 inSizeStream)
static Dtk_SmartPtr< Dtk_Info > create()
Calls default constructor to allocate a new object.
Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)
Applies a transformation matrix to the entity. //!
@ TypeGear
Definition: util_ent_dtk.hpp:1240
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:438
static Dtk_ModelDisplay * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
int GetSubordFlag() const
This is a mathematical direction class.
Definition: dtk_dir.hpp:14
Dtk_ModelDisplay(const Dtk_ModelDisplay &s)
Dtk_Constraint & operator=(const Dtk_Constraint &p)
Dtk_Entity(const Dtk_Entity &s)
Dtk_ErrorStatus SetSubordFlag(const Dtk_Int32 &inSubordFlag)
Definition: util_ent_dtk.hpp:92
Dtk_ID m_ID
Definition: util_ent_dtk.hpp:528
Dtk_Int32 _EnableUpper
Definition: util_ent_dtk.hpp:1211
Dtk_string const & GetName() const
Definition: util_ent_dtk.hpp:544
static Dtk_PreviewPtr Create(const char *inStream, const Dtk_Int32 inSizeStream)
Calls full featured constructor to allocate a new object.
void SetIsHidden()
Set the hidden status.
@ TypeLinear
Definition: util_ent_dtk.hpp:1243
Dtk_Constraint(const ConstraintTypeEnum &inType)
@ TypeLock
Definition: util_ent_dtk.hpp:1246
void GetDescription(Dtk_string &outLayerFilterDescription) const
Retrieves layer filter description.
Dtk_Val const * FindAttribute(const Dtk_string &name) const
@ TypeRackPinion
Definition: util_ent_dtk.hpp:1255
Dtk_Val _Value
Definition: util_ent_dtk.hpp:1209
int GetIsHidden() const
Get the hidden status.
This is the Dtk_AxisSystem class.
Definition: util_ent_dtk.hpp:878
@ TypeCenter
Definition: util_ent_dtk.hpp:1229
Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)
Applies a transformation matrix to the entity. //!
void SetDefaultStatus(Dtk_bool inDefaultStatus)
Set the default status.
#define DTK_NOEXCEPT
Definition: config.hpp:30
ConstraintTypeEnum
Definition: util_ent_dtk.hpp:1219
Definition: util_ent_dtk.hpp:371
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.