 |
DATAKIT SDK
V2026.1
|
|
Go to the documentation of this file. 1 #ifndef _UTIL_ENT_DTK_HPP_
2 #define _UTIL_ENT_DTK_HPP_
98 return s1.
cmp(s2) < 0;
106 return s1.
icmp(s2) < 0;
1153 case TypeCam:
return L
"TypeCam";
1158 case TypeFit:
return L
"TypeFit";
1159 case TypeFix:
return L
"TypeFix";
@ DTK_TYPE_COLOR_INFOS_SET
Definition: define.h:509
@ TypeFix
Definition: util_ent_dtk.hpp:1118
Dtk_Size_t GetNumLayers() const
Retrieves the number of layers.
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:505
void GetVisibleLayers(Dtk_tab< Dtk_Int32 > &outVisibleLayers) const
Visible layer for Dtk_ModelDisplay.
void SelectLayers(const Dtk_tab< Dtk_Size_t > &inLayerIndexes)
Selects given layers in the layer filter.
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:1013
Definition: util_stl_dtk.hpp:921
Dtk_LayerFilterInfosPtr CreateLayerFilterInfos(Dtk_string inName=L"", Dtk_string inDescription=L"", const Dtk_bool inAreLayersSelectedByDefault=DTK_FALSE, const Dtk_bool IsDefaultLayerFilter=DTK_FALSE)
Create a layer filter.
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:401
uint32_t Dtk_ID
Definition: define.h:692
void SetMatrix(const Dtk_transfo &in)
Get the Matrix of the AxisSystem.
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:121
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:654
Dtk_SmartPtr< Dtk_AxisSystem > Dtk_AxisSystemPtr
Definition: util_ent_dtk.hpp:405
Dtk_PhysicalMaterialInfosPtr GetPhysicalMaterialInfos() const
Retrieves the entity MaterialInfos.
Definition: util_ent_dtk.hpp:1079
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:876
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:490
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
@ TypeSlot
Definition: util_ent_dtk.hpp:1136
This is the generic Info class.
Definition: util_ent_dtk.hpp:117
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()
enum MandatoryFlag GetMandatoryFlag() const
Retrieves the Mandatory Flag.
int GetDefaultChildIndex() const
@ TypeLinearCoupler
Definition: util_ent_dtk.hpp:1123
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:515
void UnselectLayer(const Dtk_Size_t inLayerIndex)
Unselects the given layer in the layer filter.
int dtk_AddColorInTable(const Dtk_RGB &)
ConstraintOrientationTypeEnum
Definition: util_ent_dtk.hpp:1035
void SetType(preview_type_detk inPreviewType)
@ TypeWidth
Definition: util_ent_dtk.hpp:1144
@ DTK_TYPE_MODEL_DISPLAY
Definition: define.h:487
@ TypeAlign
Definition: util_ent_dtk.hpp:1101
virtual void conv_ptr(Dtk_Constraint **s)
Definition: util_ent_dtk.hpp:1247
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:136
Dtk_Entity(Dtk_Entity &&s) DTK_NOEXCEPT
Dtk_Double64 GetCurveThickNessInMM() const
Retrieves the curve thickness - if exists and relevant -.
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.
int GetRefEntityFlag() const
@ DTK_TYPE_ENTITY
Definition: define.h:468
Definition: util_ent_dtk.hpp:103
const Dtk_string const Dtk_transfo & inTransfo
Definition: catiav5w.hpp:622
Dtk_string GetPersistentName() const
@ _typeID
Definition: util_ent_dtk.hpp:422
@ DTK_CENTERLINE
Definition: util_ent_dtk.hpp:53
Dtk_SmartPtr< Dtk_Preview > Dtk_PreviewPtr
Definition: util_ent_dtk.hpp:709
Dtk_Double64 _ValueUpper
Definition: util_ent_dtk.hpp:1092
@ ValueTypeSame
Definition: util_ent_dtk.hpp:1037
@ TypeSymmetric
Definition: util_ent_dtk.hpp:1138
void _Copy(const Dtk_Constraint &s)
@ DTK_PT_CROSS
Definition: util_ent_dtk.hpp:26
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:404
Dtk_LayerFilterInfos(const Dtk_LayerFilterInfos &s)
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:1003
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:33
Dtk_tab< Dtk_Int32 > GetActiveChildren() const
@ rendering_mode_shaded_with_visible_edges
Definition: util_ent_dtk.hpp:872
@ rendering_mode_wireframe_with_all_edges
Definition: util_ent_dtk.hpp:873
@ DTK_PT_UNSPECIFIED
Definition: util_ent_dtk.hpp:25
size_t Dtk_Size_t
Definition: define.h:715
Dtk_RGB GetColor() const
Retrieves the entity color as Dtk_RGBA values.
@ TypeBond
Definition: util_ent_dtk.hpp:1105
Dtk_ErrorStatus SetLayerName(const Dtk_Size_t inIndex, const Dtk_string &inLayerName)
Sets the layer name giving its index.
int GetActivationFlag() const
@ ValueTypeInternal
Definition: util_ent_dtk.hpp:1039
@ DTK_TYPE_AXIS_SYSTEM
Definition: define.h:45
~Dtk_ModelDisplay()
Destructor.
~Dtk_LayerInfosSet()
Destructor.
static Dtk_string ConstraintValueTypeEnumToString(const ConstraintValueTypeEnum &inEnum)
Definition: util_ent_dtk.hpp:1064
@ DTK_PT_STAR
Definition: util_ent_dtk.hpp:32
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.
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:1018
@ TypeUnknown
Definition: util_ent_dtk.hpp:1099
Dtk_LayerInfosSet(const Dtk_Size_t inNumLayers)
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:1040
Dtk_ErrorStatus SetMetaData(Dtk_tab< Dtk_MetaDataPtr > &inArray)
@ DTK_BREAKLINE
Definition: util_ent_dtk.hpp:61
#define DTK_FALSE
Definition: define.h:731
Dtk_ErrorStatus ListAllCustomerDefinedAttributesWithVal(Dtk_tab< Dtk_pair< Dtk_string, Dtk_Val > > &tab) const
char Dtk_bool
Definition: define.h:728
Dtk_ErrorStatus RemoveAttribute(const Dtk_string &name)
@ DTK_TYPE_INFO
Definition: define.h:469
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:47
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:355
@ rendering_mode_wireframe_with_only_visible_edges
Definition: util_ent_dtk.hpp:874
Dtk_ErrorStatus SetColorId(const Dtk_Int32 &inColorId)
@ ValueTypeOrientation
Definition: util_ent_dtk.hpp:1062
void SetConstraintType(const ConstraintTypeEnum &in)
Set the type of the Constraint .
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:62
int GetCurveThickNess() const
Dtk_ErrorStatus GetDefaultLayer(Dtk_Size_t &outDefaultLayerIndex) const
Gets the default layer index.
This is the Dtk_Constraint class.
Definition: util_ent_dtk.hpp:1032
double Dtk_Double64
Definition: define.h:702
_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:440
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:616
static Dtk_Constraint * DtkDynamicCast(Dtk_Object *inObject)
int DtkDynamicType(const int &inId)
RenderingModeEnum
Definition: util_ent_dtk.hpp:870
virtual enum type_detk get_type_detk() const =0
void _Copy(const Dtk_LayerFilterInfos &s)
@ ValueTypeDistance
Definition: util_ent_dtk.hpp:1059
Dtk_ErrorStatus SetBlankedStatus(const Dtk_Int32 &inBlankedStatus)
Dtk_Info(const Dtk_Info &s)
@ ValueTypeAngle
Definition: util_ent_dtk.hpp:1058
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)
void _Copy(const Dtk_Preview &s)
Dtk_ErrorStatus SetAddedItemFlag(const Dtk_Int32 &inAddedItem)
_ConstraintValue(const ConstraintValueTypeEnum &inValueType, Dtk_Val &inValue)
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:827
Definition: dtk_val.hpp:67
preview_type_detk
Definition: define.h:635
Dtk_MaterialPtr _Material
Definition: util_ent_dtk.hpp:123
Dtk_ErrorStatus GetMetaData(Dtk_tab< Dtk_MetaDataPtr > &outArray) const
@ ValueTypeRotation
Definition: util_ent_dtk.hpp:1061
@ DTK_PT_UP_TRIANGLE
Definition: util_ent_dtk.hpp:38
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:973
static Dtk_string ConstraintOrientationTypeEnumToString(const ConstraintOrientationTypeEnum &inEnum)
Definition: util_ent_dtk.hpp:1042
@ _typeID
Definition: util_ent_dtk.hpp:845
ConstraintValueTypeEnum _ValueType
Definition: util_ent_dtk.hpp:1087
@ SectionPlane
Definition: util_ent_dtk.hpp:882
@ _typeID
Definition: util_ent_dtk.hpp:610
@ DTK_PT_COINCIDENT
Definition: util_ent_dtk.hpp:29
int DtkDynamicType(const int &inId)
void _Init(const Dtk_Size_t inNumLayers)
This class represents a set of layer information, such as their name and identifier,...
Definition: util_ent_dtk.hpp:487
@ TypeTouch
Definition: util_ent_dtk.hpp:1142
@ rendering_mode_wireframe_partially_shade
Definition: util_ent_dtk.hpp:877
Dtk_ErrorStatus SetViewId(const Dtk_Int32 &inViewId)
Dtk_ErrorStatus SetDisplayLineWidth(const Dtk_Double64 &inDisplayLineWidth)
Dtk_ErrorStatus SetPointSymbolType(const Dtk_PointType inPointSymbolType)
@ rendering_mode_unknown
Definition: util_ent_dtk.hpp:879
Dtk_bool IsDefault() const
Get the default status.
This is the Dtk_ModelDisplay class.
Definition: util_ent_dtk.hpp:841
@ DTK_DASHED
Definition: util_ent_dtk.hpp:49
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.
@ rendering_mode_shaded_only
Definition: util_ent_dtk.hpp:871
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:406
@ SectionBox
Definition: util_ent_dtk.hpp:885
Dtk_ErrorStatus GetLayerID(const Dtk_Size_t inLayerIndex, Dtk_ID &outLayerID) const
Gets the LayerID giving its index.
@ TypeAngle
Definition: util_ent_dtk.hpp:1103
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:843
@ TypePerpendicular
Definition: util_ent_dtk.hpp:1132
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:1120
@ TypeConcentric
Definition: util_ent_dtk.hpp:1110
Dtk_Size_t GetNumLayerFilters() const
Retrieves the number of layer filters.
Dtk_ErrorStatus SetAdditionnalGeometryFlag(const Dtk_Int32 &inAdditionnalGeom)
@ DTK_PT_SMALLDOT
Definition: util_ent_dtk.hpp:34
Dtk_EntityPtr GetClippingEntity() const
Retrieves the Dtk_ModelDisplay clipping entity - read only -.
void _copy(const Dtk_AxisSystem &s)
@ TypeParallel
Definition: util_ent_dtk.hpp:1129
@ rendering_mode_static_wireframe
Definition: util_ent_dtk.hpp:875
@ SectionUndefined
Definition: util_ent_dtk.hpp:887
Dtk_LayerInfosSet(const Dtk_LayerInfosSet &s)
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:131
int32_t Dtk_Int32
Definition: define.h:690
@ DTK_DOTTED
Definition: util_ent_dtk.hpp:55
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:897
Dtk_ErrorStatus AddLayer(const Dtk_Int32 &inLayer)
Dtk_CameraPtr Dtk_EntityPtr inClippingEntity
Definition: pdfw.hpp:655
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:878
static Dtk_string ConstraintTypeEnumToString(const ConstraintTypeEnum &inEnum)
Definition: util_ent_dtk.hpp:1146
static Dtk_PreviewPtr Create(const Dtk_Preview &in)
Calls copy constructor to allocate a new object.
@ DTK_PT_CONCENTRIC
Definition: util_ent_dtk.hpp:28
@ DTK_TYPE_LAYER_FILTER_INFOS
Definition: define.h:506
@ ValueTypePosition
Definition: util_ent_dtk.hpp:1060
This is the Dtk_Preview class.
Definition: util_ent_dtk.hpp:719
@ NotMandatory
Definition: util_ent_dtk.hpp:135
Dtk_LineTypeDefinitionPtr GetCurveLineTypeDefinition() const
Retrieves the definition of the curve LineType - for curve entities -.
@ DTK_PHANTOM
Definition: util_ent_dtk.hpp:51
@ DTK_DOTTED_DASHED
Definition: util_ent_dtk.hpp:59
@ TypeUniversalJoint
Definition: util_ent_dtk.hpp:1143
Dtk_ErrorStatus GetColorDefinition(const Dtk_Size_t inColorPos, Dtk_RGB &outColorDef) const
Gets the ColorID giving its number.
void UnselectLayers(const Dtk_tab< Dtk_Size_t > &inLayerIndexes)
Unselects the given layers in the layer filter.
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:139
bool operator()(const Dtk_string &s1, const Dtk_string &s2) const
Definition: util_ent_dtk.hpp:104
@ DTK_PT_FULLCIRCLE
Definition: util_ent_dtk.hpp:30
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_ErrorStatus SetId(const Dtk_Int32 &inId)
@ TypeFit
Definition: util_ent_dtk.hpp:1116
Dtk_RenderInfosPtr GetRenderInfos() const
Retrieves the entity RenderInfos of the entity.
int GetHierarchyColorFlag() const
Dtk_ErrorStatus SetMandatoryFlag(const enum MandatoryFlag &inMandatoryFlag)
@ DTK_PT_SQUARE
Definition: util_ent_dtk.hpp:37
ConstraintValueTypeEnum
Definition: util_ent_dtk.hpp:1056
virtual Dtk_ErrorStatus _Store(void *)
@ _typeID
Definition: util_ent_dtk.hpp:357
const Dtk_pnt & GetPosition(Dtk_bool &outHasPosition) const
Get the Position of the ConstraintReference .
Definition: util_ptr_dtk.hpp:37
Dtk_LayerFilterInfosPtr GetLayerFilterByPos(const Dtk_Size_t inLayerFilterIndex) const
Gets a layer filter giving its index.
static Dtk_AxisSystem * DtkDynamicCast(Dtk_Object *inObject)
preview_type_detk GetType()
@ TypeCam
Definition: util_ent_dtk.hpp:1106
@ DTK_PT_PLUS
Definition: util_ent_dtk.hpp:27
virtual Dtk_Size_t GetSize() const
Dtk_Entity & operator=(const Dtk_Entity &s)
@ TypePathMate
Definition: util_ent_dtk.hpp:1130
@ SectionParallelePlane
Definition: util_ent_dtk.hpp:884
Dtk_ErrorStatus SetMatId(const Dtk_Int32 &inMatId)
Dtk_ErrorStatus SetPersistentName(Dtk_string inName)
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:858
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:137
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 GetProperties(Dtk_tab< Dtk_PropertiesPtr > &outArray) const
Dtk_ErrorStatus AddMaterial(const Dtk_MaterialPtr &inMaterial)
const Dtk_CameraPtr & GetCamera() const
Retrieves the Dtk_ModelDisplay camera - read only -.
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.
virtual Dtk_Object * Clone()=0
Dtk_ErrorStatus SetLayer(const Dtk_Int32 &inLayer)
Dtk_MaterialPtr GetMaterial() const
This is a mathematical point class.
Definition: dtk_pnt.hpp:20
Dtk_SmartPtr< Dtk_material > Dtk_MaterialPtr
Definition: util_ent_dtk.hpp:20
Dtk_SmartPtr< Dtk_ColorInfosSet > Dtk_ColorInfosSetPtr
Definition: util_ent_dtk.hpp:403
type_detk
Definition: define.h:32
Dtk_Constraint(const Dtk_Constraint &p)
Dtk_ErrorStatus SetColor(const Dtk_RGB &inColor)
@ DTK_PT_FULLSQUARE
Definition: util_ent_dtk.hpp:31
@ ValueTypeOpposite
Definition: util_ent_dtk.hpp:1038
Dtk_Size_t AddColor(const Dtk_ID inColorReadId, const Dtk_string &inColorName, const Dtk_RGB &inColorDef)
Add Color definition.
@ _typeID
Definition: util_ent_dtk.hpp:492
Dtk_ErrorStatus SetDefaultLayer(const Dtk_Size_t inDefaultLayerIndex)
Sets the default layer index.
const Dtk_tab< Dtk_ConstraintReferencePtr > & GetConstraintReference() const
Get all ConstraintReferences of the Constraint.
SectionTypeEnum
Definition: util_ent_dtk.hpp:881
Dtk_FontLineType
This is a set of line styles.
Definition: util_ent_dtk.hpp:44
This class is used by Dtk_LayerInfosSet to represent a layer filter : its name, description,...
Definition: util_ent_dtk.hpp:418
const Dtk_transfo & GetMatrix() const
Get the Matrix of the AxisSystem.
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:1243
Dtk_ErrorStatus ListAllAttributes(Dtk_tab< Dtk_string > &tab_keys) const
Dtk_SmartPtr< Dtk_ConstraintReference > Dtk_ConstraintReferencePtr
Definition: util_ent_dtk.hpp:408
Dtk_ErrorStatus GetDefaultLayerFilter(Dtk_Size_t &outDefaultLayerFilterIndex) const
Gets the default layer filter index.
Dtk_ColorInfosSet(const Dtk_Size_t inNumColors)
@ SectionBody
Definition: util_ent_dtk.hpp:886
Dtk_ErrorStatus SetFontId(const Dtk_Int32 &inFontId)
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:999
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.
@ ValueTypeUndefined
Definition: util_ent_dtk.hpp:1036
virtual void PrepareTransfo()
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:498
Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)
Applies a transformation matrix to the entity. //!
@ TypeProfileCenter
Definition: util_ent_dtk.hpp:1133
Dtk_ErrorStatus SetPhysicalMaterialInfosId(const Dtk_ID &inMaterialId)
@ DTK_TYPE_CONSTRAINT_REFERENCE
Definition: define.h:611
Dtk_PointType
Definition: util_ent_dtk.hpp:24
@ TypeOrientAngle
Definition: util_ent_dtk.hpp:1127
@ DTK_NO_PATTERN
Definition: util_ent_dtk.hpp:45
@ DTK_LONG_DASHED
Definition: util_ent_dtk.hpp:57
@ TypeDistance
Definition: util_ent_dtk.hpp:1114
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:35
Dtk_SmartPtr< Dtk_Constraint > Dtk_ConstraintPtr
Definition: util_ent_dtk.hpp:407
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:605
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:813
@ DTK_TYPE_CONSTRAINT
Definition: define.h:610
Dtk_bool IsActivated() const
Tells if the Dtk_ModelDisplay is activated or not - read only -.
Dtk_Double64 _ValueLower
Definition: util_ent_dtk.hpp:1091
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:36
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:1262
MandatoryFlag
Definition: util_ent_dtk.hpp:134
virtual Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)=0
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:608
virtual ~Dtk_Constraint()
@ ZXPlane
Definition: util_ent_dtk.hpp:138
Dtk_ColorInfosSet(const Dtk_ColorInfosSet &s)
Dtk_tab< Dtk_Int32 > GetBuildingInfosIds() const
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:633
Dtk_ErrorStatus SetBuildingInfosIds(const Dtk_tab< Dtk_Int32 > inBuildingInfos)
@ TypeCoincidence
Definition: util_ent_dtk.hpp:1112
Dtk_ErrorStatus GetColorName(const Dtk_Size_t inColorPos, Dtk_string &outColorName) const
Gets the Color Name giving its number.
Dtk_ErrorStatus SetLayerID(const Dtk_Size_t inLayerIndex, const Dtk_ID &inLayerID)
Sets the LayerID giving its index.
Dtk_tab< Dtk_Int32 > GetlayerList() const
Retrieves the layers in which the entity is assigned.
@ SectionPlaneList
Definition: util_ent_dtk.hpp:883
bool operator()(const Dtk_string &s1, const Dtk_string &s2) const
Definition: util_ent_dtk.hpp:96
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.
static Dtk_ColorInfosSet * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:832
Dtk_ID GetPhysicalMaterialInfosId() const
Retrieves the Id of MaterialInfos of the entity in The Dtk_API table.
@ TypeLimit
Definition: util_ent_dtk.hpp:1121
@ DTK_PT_DIAMOND
Definition: util_ent_dtk.hpp:39
Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)
Applies a transformation matrix to the entity. //!
@ ValueTypeUnknown
Definition: util_ent_dtk.hpp:1057
static Dtk_SmartPtr< Dtk_ConstraintReference > Create()
Calls default constructor to allocate a new object.
void SelectLayer(const Dtk_Size_t inLayerIndex)
Selects a given layer in the layer filter.
@ _typeID
Definition: util_ent_dtk.hpp:120
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:817
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:1089
static Dtk_LayerInfosSetPtr Create(const Dtk_Size_t inNumLayers)
Calls a constructor to allocate a new object.
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().
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:1257
@ TypeTangent
Definition: util_ent_dtk.hpp:1140
static Dtk_ColorInfosSetPtr Create(const Dtk_Size_t inNumColors)
Calls a constructor to allocate a new object.
@ TypeScrew
Definition: util_ent_dtk.hpp:1135
void _copy(const Dtk_Info &s)
Dtk_Entity & operator=(Dtk_Entity &&s) DTK_NOEXCEPT
Dtk_ErrorStatus GetLayerNameById(const Dtk_ID inLayerID, Dtk_string &outLayerName) const
Gets the LayerName giving the ID found by infos->GetLayer().
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:1119
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:420
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:740
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:95
Dtk_Int32 _EnableUpper
Definition: util_ent_dtk.hpp:1090
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:1122
Dtk_Constraint(const ConstraintTypeEnum &inType)
@ TypeLock
Definition: util_ent_dtk.hpp:1125
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:1134
Dtk_ErrorStatus GetLayerName(const Dtk_Size_t inIndex, Dtk_string &outLayerName) const
Gets the LayerName giving its index.
Dtk_Val _Value
Definition: util_ent_dtk.hpp:1088
int GetIsHidden() const
Get the hidden status.
This is the Dtk_AxisSystem class.
Definition: util_ent_dtk.hpp:757
@ TypeCenter
Definition: util_ent_dtk.hpp:1108
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:1098
Definition: util_ent_dtk.hpp:353
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.