|
DATAKIT API
V2025.1
|
|
Go to the documentation of this file. 1 #ifndef _UTIL_ENT_DTK_HPP_
2 #define _UTIL_ENT_DTK_HPP_
97 return s1.
cmp(s2) < 0;
105 return s1.
icmp(s2) < 0;
1113 case TypeCam:
return L
"TypeCam";
1118 case TypeFit:
return L
"TypeFit";
1119 case TypeFix:
return L
"TypeFix";
@ DTK_TYPE_COLOR_INFOS_SET
Definition: define.h:507
@ TypeFix
Definition: util_ent_dtk.hpp:1078
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)
Full featured constructor.
static Dtk_ConstraintReference * DtkDynamicCast(Dtk_Object *inObject)
@ DTK_TYPE_LAYER_INFOS_SET
Definition: define.h:503
void GetVisibleLayers(Dtk_tab< Dtk_Int32 > &outVisibleLayers) const
Visible layer for Dtk_ModelDisplay.
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:974
Definition: util_stl_dtk.hpp:917
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:378
uint32_t Dtk_ID
Definition: define.h:689
void SetMatrix(const Dtk_transfo &in)
Get the Matrix of the AxisSystem.
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:119
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:382
Dtk_ErrorStatus GetDefaultLayerFilter(Dtk_Size_t &outDefaultLayerFilter) const
Gets the default layer filter number.
Dtk_PhysicalMaterialInfosPtr GetPhysicalMaterialInfos() const
Retrieves the entity MaterialInfos.
Definition: util_ent_dtk.hpp:1039
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:841
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:461
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)
void GetSelectedLayers(Dtk_tab< Dtk_Size_t > &outSelectedLayers) const
Retrieves all the selected layers into the layer filter.
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:1096
This is the generic Info class.
Definition: util_ent_dtk.hpp:115
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()
static Dtk_SmartPtr< Dtk_Info > create(const Dtk_Info &s)
enum MandatoryFlag GetMandatoryFlag() const
Retrieves the Mandatory Flag.
int GetDefaultChildIndex() const
@ TypeLinearCoupler
Definition: util_ent_dtk.hpp:1083
Dtk_bool GetIsStandardView() const
Get DTK_TRUE if this Dtk_ModelDisplay is a Standard View , DTK_FALSE if it is a user defined view .
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:486
int dtk_AddColorInTable(const Dtk_RGB &)
ConstraintOrientationTypeEnum
Definition: util_ent_dtk.hpp:995
void SetType(preview_type_detk inPreviewType)
Dtk_ErrorStatus SetLayerID(const Dtk_Size_t inLayerPos, const Dtk_ID &inLayerID)
Sets the LayerID giving its number.
void SelectLayer(const Dtk_Size_t inNumLayer)
Select the given layer number in the layer filter.
@ TypeWidth
Definition: util_ent_dtk.hpp:1104
Dtk_ErrorStatus SetDefaultLayer(const Dtk_Size_t inDefaultLayer)
Sets the default layer number.
@ DTK_TYPE_MODEL_DISPLAY
Definition: define.h:485
@ TypeAlign
Definition: util_ent_dtk.hpp:1061
virtual void conv_ptr(Dtk_Constraint **s)
Definition: util_ent_dtk.hpp:1206
Dtk_AxisSystem & operator=(const Dtk_AxisSystem &p)
Dtk_tab< ConstraintValueTypeEnum > GetValuesTypes() const
Get all types of values in the Constraint.
@ XYPlane
Definition: util_ent_dtk.hpp:134
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:466
Definition: util_ent_dtk.hpp:102
Dtk_bool IsLayerSelected(const Dtk_Size_t inLayerPos) const
Tells if the asked layer is selected or not giving its number.
const Dtk_string const Dtk_transfo & inTransfo
Definition: catiav5w.hpp:619
Dtk_string GetPersistentName() const
@ _typeID
Definition: util_ent_dtk.hpp:398
@ DTK_CENTERLINE
Definition: util_ent_dtk.hpp:52
friend std::ostream & operator<<(std::ostream &o, const Dtk_Entity &d)
Dtk_SmartPtr< Dtk_Preview > Dtk_PreviewPtr
Definition: util_ent_dtk.hpp:683
Dtk_Double64 _ValueUpper
Definition: util_ent_dtk.hpp:1052
@ ValueTypeSame
Definition: util_ent_dtk.hpp:997
@ TypeSymmetric
Definition: util_ent_dtk.hpp:1098
void _Copy(const Dtk_Constraint &s)
@ DTK_PT_CROSS
Definition: util_ent_dtk.hpp:28
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:381
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:964
static Dtk_Info * DtkDynamicCast(Dtk_Object *s)
This is a high level string class.
Definition: dtk_string.hpp:58
@ DTK_PT_DOT
Definition: util_ent_dtk.hpp:35
Dtk_tab< Dtk_Int32 > GetActiveChildren() const
@ rendering_mode_shaded_with_visible_edges
Definition: util_ent_dtk.hpp:837
@ rendering_mode_wireframe_with_all_edges
Definition: util_ent_dtk.hpp:838
@ DTK_PT_UNSPECIFIED
Definition: util_ent_dtk.hpp:27
size_t Dtk_Size_t
Definition: define.h:712
Dtk_RGB GetColor() const
Retrieves the entity color as Dtk_RGBA values.
@ TypeBond
Definition: util_ent_dtk.hpp:1065
friend std::ostream & operator<<(std::ostream &o, const Dtk_Info &d)
int GetActivationFlag() const
@ ValueTypeInternal
Definition: util_ent_dtk.hpp:999
@ 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:1024
@ DTK_PT_STAR
Definition: util_ent_dtk.hpp:34
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:979
@ TypeUnknown
Definition: util_ent_dtk.hpp:1059
Dtk_LayerInfosSet(const Dtk_Size_t inNumLayers)
static Dtk_SmartPtr< Dtk_AxisSystem > create()
@ ValueTypeExternal
Definition: util_ent_dtk.hpp:1000
Dtk_ErrorStatus SetMetaData(Dtk_tab< Dtk_MetaDataPtr > &inArray)
@ DTK_BREAKLINE
Definition: util_ent_dtk.hpp:60
Dtk_ErrorStatus SetLayerName(const Dtk_Size_t inLayerPos, const Dtk_string &inLayerName)
Sets the LayerName giving its number.
#define DTK_FALSE
Definition: define.h:728
char Dtk_bool
Definition: define.h:725
Dtk_ErrorStatus RemoveAttribute(const Dtk_string &name)
@ DTK_TYPE_INFO
Definition: define.h:467
Dtk_ErrorStatus GetLayerID(const Dtk_Size_t inLayerPos, Dtk_ID &outLayerID) const
Gets the LayerID giving its number.
static Dtk_SmartPtr< Dtk_Info > create(Dtk_Info &&s)
const Dtk_string const Dtk_transfo const Dtk_bool inBlankedStatus
Definition: catiav5w.hpp:620
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:46
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:331
@ rendering_mode_wireframe_with_only_visible_edges
Definition: util_ent_dtk.hpp:839
Dtk_ErrorStatus SetColorId(const Dtk_Int32 &inColorId)
@ ValueTypeOrientation
Definition: util_ent_dtk.hpp:1022
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:61
int GetCurveThickNess() const
Dtk_ErrorStatus GetDefaultLayer(Dtk_Size_t &outDefaultLayer) const
Gets the default layer number.
This is the Dtk_Constraint class.
Definition: util_ent_dtk.hpp:992
double Dtk_Double64
Definition: define.h:699
_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:416
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:586
static Dtk_Constraint * DtkDynamicCast(Dtk_Object *inObject)
int DtkDynamicType(const int &inId)
RenderingModeEnum
Definition: util_ent_dtk.hpp:835
virtual enum type_detk get_type_detk() const =0
void _Copy(const Dtk_LayerFilterInfos &s)
@ ValueTypeDistance
Definition: util_ent_dtk.hpp:1019
Dtk_ErrorStatus SetBlankedStatus(const Dtk_Int32 &inBlankedStatus)
Dtk_Info(const Dtk_Info &s)
@ ValueTypeAngle
Definition: util_ent_dtk.hpp:1018
static Dtk_Entity * DtkDynamicCast(Dtk_Object *s)
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:791
Definition: dtk_val.hpp:67
preview_type_detk
Definition: define.h:632
Dtk_MaterialPtr _Material
Definition: util_ent_dtk.hpp:121
Dtk_ErrorStatus GetMetaData(Dtk_tab< Dtk_MetaDataPtr > &outArray) const
@ ValueTypeRotation
Definition: util_ent_dtk.hpp:1021
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:935
static Dtk_string ConstraintOrientationTypeEnumToString(const ConstraintOrientationTypeEnum &inEnum)
Definition: util_ent_dtk.hpp:1002
@ _typeID
Definition: util_ent_dtk.hpp:809
ConstraintValueTypeEnum _ValueType
Definition: util_ent_dtk.hpp:1047
@ SectionPlane
Definition: util_ent_dtk.hpp:847
@ _typeID
Definition: util_ent_dtk.hpp:580
@ DTK_PT_COINCIDENT
Definition: util_ent_dtk.hpp:31
int DtkDynamicType(const int &inId)
void _Init(const Dtk_Size_t inNumLayers)
This is the Layer Info Set class. This is the main Layer Class. It gathers all information about laye...
Definition: util_ent_dtk.hpp:458
@ TypeTouch
Definition: util_ent_dtk.hpp:1102
@ rendering_mode_wireframe_partially_shade
Definition: util_ent_dtk.hpp:842
Dtk_ErrorStatus SetViewId(const Dtk_Int32 &inViewId)
Dtk_ErrorStatus SetPointSymbolType(const Dtk_PointType inPointSymbolType)
@ rendering_mode_unknown
Definition: util_ent_dtk.hpp:844
Dtk_bool IsDefault() const
Get the default status.
This is the Dtk_ModelDisplay class. Please use the Dtk_ModelDisplayPtr class to handle it....
Definition: util_ent_dtk.hpp:805
@ DTK_DASHED
Definition: util_ent_dtk.hpp:48
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:836
Dtk_ModelDisplay(const Dtk_CameraPtr &inCamera, const Dtk_EntityPtr &inClippingEntity, const Dtk_bool inIsActivated)
int DtkDynamicType(const int &inId)
Dtk_SmartPtr< Dtk_ModelDisplay > Dtk_ModelDisplayPtr
Definition: util_ent_dtk.hpp:383
@ SectionBox
Definition: util_ent_dtk.hpp:850
@ TypeAngle
Definition: util_ent_dtk.hpp:1063
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:807
@ TypePerpendicular
Definition: util_ent_dtk.hpp:1092
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:1080
@ TypeConcentric
Definition: util_ent_dtk.hpp:1070
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:36
Dtk_LayerFilterInfosPtr GetLayerFilterByPos(const Dtk_Size_t inLayerFilterPos) const
Gets a layer filter giving its number.
Dtk_EntityPtr GetClippingEntity() const
Retrieves the Dtk_ModelDisplay clipping entity - read only -.
void _copy(const Dtk_AxisSystem &s)
@ TypeParallel
Definition: util_ent_dtk.hpp:1089
@ rendering_mode_static_wireframe
Definition: util_ent_dtk.hpp:840
@ SectionUndefined
Definition: util_ent_dtk.hpp:852
Dtk_LayerInfosSet(const Dtk_LayerInfosSet &s)
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:129
int32_t Dtk_Int32
Definition: define.h:687
@ DTK_DOTTED
Definition: util_ent_dtk.hpp:54
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:862
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:843
static Dtk_string ConstraintTypeEnumToString(const ConstraintTypeEnum &inEnum)
Definition: util_ent_dtk.hpp:1106
@ DTK_PT_CONCENTRIC
Definition: util_ent_dtk.hpp:30
@ DTK_TYPE_LAYER_FILTER_INFOS
Definition: define.h:504
@ ValueTypePosition
Definition: util_ent_dtk.hpp:1020
This is the Dtk_Preview class.
Definition: util_ent_dtk.hpp:688
@ NotMandatory
Definition: util_ent_dtk.hpp:133
Dtk_LineTypeDefinitionPtr GetCurveLineTypeDefinition() const
Retrieves the definition of the curve LineType - for curve entities -.
@ DTK_PHANTOM
Definition: util_ent_dtk.hpp:50
@ DTK_DOTTED_DASHED
Definition: util_ent_dtk.hpp:58
@ TypeUniversalJoint
Definition: util_ent_dtk.hpp:1103
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:137
bool operator()(const Dtk_string &s1, const Dtk_string &s2) const
Definition: util_ent_dtk.hpp:103
void UnselectLayer(const Dtk_Size_t inLayerPos)
Unselect the given layer number in the layer filter.
@ DTK_PT_FULLCIRCLE
Definition: util_ent_dtk.hpp:32
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_ErrorStatus SetId(const Dtk_Int32 &inId)
@ TypeFit
Definition: util_ent_dtk.hpp:1076
Dtk_RenderInfosPtr GetRenderInfos() const
Retrieves the entity RenderInfos of the entity.
int GetHierarchyColorFlag() const
Dtk_ErrorStatus SetMandatoryFlag(const enum MandatoryFlag &inMandatoryFlag)
ConstraintValueTypeEnum
Definition: util_ent_dtk.hpp:1016
virtual Dtk_ErrorStatus _Store(void *)
@ _typeID
Definition: util_ent_dtk.hpp:333
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:1066
@ DTK_PT_PLUS
Definition: util_ent_dtk.hpp:29
virtual Dtk_Size_t GetSize() const
Dtk_Entity & operator=(const Dtk_Entity &s)
@ TypePathMate
Definition: util_ent_dtk.hpp:1090
@ SectionParallelePlane
Definition: util_ent_dtk.hpp:849
Dtk_ErrorStatus SetMatId(const Dtk_Int32 &inMatId)
Dtk_ErrorStatus SetPersistentName(Dtk_string inName)
void SelectLayers(const Dtk_tab< Dtk_Size_t > &inNumLayers)
Select the given layers in the layer filter.
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:823
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:135
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)
Dtk_LayerFilterInfosPtr CreateLayerFilterInfos(Dtk_string inName=L"", Dtk_string inDescription=L"", const Dtk_bool inAreLayersActivatedByDefault=DTK_FALSE, const Dtk_bool IsDefaultLayerFilter=DTK_FALSE)
Create a layer filter.
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)
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:22
Dtk_SmartPtr< Dtk_material > Dtk_MaterialPtr
Definition: util_ent_dtk.hpp:22
Dtk_SmartPtr< Dtk_ColorInfosSet > Dtk_ColorInfosSetPtr
Definition: util_ent_dtk.hpp:380
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:33
@ ValueTypeOpposite
Definition: util_ent_dtk.hpp:998
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:463
const Dtk_tab< Dtk_ConstraintReferencePtr > & GetConstraintReference() const
Get all ConstraintReferences of the Constraint.
SectionTypeEnum
Definition: util_ent_dtk.hpp:846
Dtk_FontLineType
This is a set of line styles.
Definition: util_ent_dtk.hpp:43
Please use the Dtk_LayerFilterInfosPtr class to handle it...
Definition: util_ent_dtk.hpp:394
const Dtk_transfo & GetMatrix() const
Get the Matrix of the AxisSystem.
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:1203
Dtk_ErrorStatus ListAllAttributes(Dtk_tab< Dtk_string > &tab_keys) const
Dtk_SmartPtr< Dtk_ConstraintReference > Dtk_ConstraintReferencePtr
Definition: util_ent_dtk.hpp:385
Dtk_ColorInfosSet(const Dtk_Size_t inNumColors)
@ SectionBody
Definition: util_ent_dtk.hpp:851
Dtk_ErrorStatus SetFontId(const Dtk_Int32 &inFontId)
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:961
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:996
virtual void PrepareTransfo()
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:469
Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)
Applies a transformation matrix to the entity. //!
@ TypeProfileCenter
Definition: util_ent_dtk.hpp:1093
Dtk_ErrorStatus SetPhysicalMaterialInfosId(const Dtk_ID &inMaterialId)
@ DTK_TYPE_CONSTRAINT_REFERENCE
Definition: define.h:609
Dtk_PointType
Definition: util_ent_dtk.hpp:26
@ TypeOrientAngle
Definition: util_ent_dtk.hpp:1087
@ DTK_NO_PATTERN
Definition: util_ent_dtk.hpp:44
@ DTK_LONG_DASHED
Definition: util_ent_dtk.hpp:56
@ TypeDistance
Definition: util_ent_dtk.hpp:1074
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:37
void UnselectLayers(const Dtk_tab< Dtk_Size_t > &inNumLayers)
Unselect the given layers in the layer filter.
Dtk_SmartPtr< Dtk_Constraint > Dtk_ConstraintPtr
Definition: util_ent_dtk.hpp:384
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:575
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:778
@ DTK_TYPE_CONSTRAINT
Definition: define.h:608
Dtk_bool IsActivated() const
Tells if the Dtk_ModelDisplay is activated or not - read only -.
Dtk_Double64 _ValueLower
Definition: util_ent_dtk.hpp:1051
int DtkDynamicType(const Dtk_Int32 &inId)
@ DTK_PT_BIGFULLSQUARE
Definition: util_ent_dtk.hpp:38
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:1221
MandatoryFlag
Definition: util_ent_dtk.hpp:132
virtual Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)=0
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:578
virtual ~Dtk_Constraint()
@ ZXPlane
Definition: util_ent_dtk.hpp:136
Dtk_ColorInfosSet(const Dtk_ColorInfosSet &s)
Dtk_tab< Dtk_Int32 > GetBuildingInfosIds() const
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:603
Dtk_ErrorStatus SetBuildingInfosIds(const Dtk_tab< Dtk_Int32 > inBuildingInfos)
@ TypeCoincidence
Definition: util_ent_dtk.hpp:1072
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
@ SectionPlaneList
Definition: util_ent_dtk.hpp:848
bool operator()(const Dtk_string &s1, const Dtk_string &s2) const
Definition: util_ent_dtk.hpp:95
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()
static Dtk_ColorInfosSet * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:796
Dtk_ID GetPhysicalMaterialInfosId() const
Retrieves the Id of MaterialInfos of the entity in The Dtk_API table.
@ TypeLimit
Definition: util_ent_dtk.hpp:1081
Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)
Applies a transformation matrix to the entity. //!
@ ValueTypeUnknown
Definition: util_ent_dtk.hpp:1017
static Dtk_SmartPtr< Dtk_ConstraintReference > Create()
@ _typeID
Definition: util_ent_dtk.hpp:118
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:781
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:1049
static Dtk_LayerInfosSetPtr Create(const Dtk_Size_t inNumLayers)
Base constructor.
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_Capture.
Dtk_ErrorStatus SetDefaultChildIndex(const Dtk_Int32 &inIndex)
Dtk_ErrorStatus SetUuid(const Dtk_UUID &inUuid)
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:1216
@ TypeTangent
Definition: util_ent_dtk.hpp:1100
static Dtk_ColorInfosSetPtr Create(const Dtk_Size_t inNumColors)
Base constructor.
@ TypeScrew
Definition: util_ent_dtk.hpp:1095
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 iby 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()
Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)
Applies a transformation matrix to the entity. //!
@ TypeGear
Definition: util_ent_dtk.hpp:1079
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:396
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:706
static Dtk_ModelDisplay * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
int GetSubordFlag() const
static Dtk_PreviewPtr Create(const Dtk_Preview &s)
Dtk_ErrorStatus GetLayerName(const Dtk_Size_t inLayerPos, Dtk_string &outLayerName) const
Gets the LayerName giving its number.
This is a mathematical direction class.
Definition: dtk_dir.hpp:15
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:94
Dtk_Int32 _EnableUpper
Definition: util_ent_dtk.hpp:1050
static Dtk_PreviewPtr Create(const char *inStream, const Dtk_Int32 inSizeStream)
void SetIsHidden()
Set the hidden status.
@ TypeLinear
Definition: util_ent_dtk.hpp:1082
Dtk_Constraint(const ConstraintTypeEnum &inType)
@ TypeLock
Definition: util_ent_dtk.hpp:1085
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:1094
Dtk_Val _Value
Definition: util_ent_dtk.hpp:1048
int GetIsHidden() const
Get the hidden status.
This is the Dtk_AxisSystem class.
Definition: util_ent_dtk.hpp:722
@ TypeCenter
Definition: util_ent_dtk.hpp:1068
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:26
ConstraintTypeEnum
Definition: util_ent_dtk.hpp:1058
Definition: util_ent_dtk.hpp:329
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.