 |
DATAKIT API
V2025.4
|
|
Go to the documentation of this file. 1 #ifndef _UTIL_ENT_DTK_HPP_
2 #define _UTIL_ENT_DTK_HPP_
100 return s1.
cmp(s2) < 0;
108 return s1.
icmp(s2) < 0;
1147 case TypeCam:
return L
"TypeCam";
1152 case TypeFit:
return L
"TypeFit";
1153 case TypeFix:
return L
"TypeFix";
@ DTK_TYPE_COLOR_INFOS_SET
Definition: define.h:509
@ TypeFix
Definition: util_ent_dtk.hpp:1112
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:1007
Definition: util_stl_dtk.hpp:919
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:397
uint32_t Dtk_ID
Definition: define.h:691
void SetMatrix(const Dtk_transfo &in)
Get the Matrix of the AxisSystem.
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:123
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:401
Dtk_PhysicalMaterialInfosPtr GetPhysicalMaterialInfos() const
Retrieves the entity MaterialInfos.
Definition: util_ent_dtk.hpp:1073
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:872
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:486
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:1130
This is the generic Info class.
Definition: util_ent_dtk.hpp:119
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:1117
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:511
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:1029
void SetType(preview_type_detk inPreviewType)
@ TypeWidth
Definition: util_ent_dtk.hpp:1138
@ DTK_TYPE_MODEL_DISPLAY
Definition: define.h:487
@ TypeAlign
Definition: util_ent_dtk.hpp:1095
virtual void conv_ptr(Dtk_Constraint **s)
Definition: util_ent_dtk.hpp:1241
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:138
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:105
const Dtk_string const Dtk_transfo & inTransfo
Definition: catiav5w.hpp:622
Dtk_string GetPersistentName() const
@ _typeID
Definition: util_ent_dtk.hpp:418
@ DTK_CENTERLINE
Definition: util_ent_dtk.hpp:55
Dtk_SmartPtr< Dtk_Preview > Dtk_PreviewPtr
Definition: util_ent_dtk.hpp:705
Dtk_Double64 _ValueUpper
Definition: util_ent_dtk.hpp:1086
@ ValueTypeSame
Definition: util_ent_dtk.hpp:1031
@ TypeSymmetric
Definition: util_ent_dtk.hpp:1132
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:400
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:997
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:868
@ rendering_mode_wireframe_with_all_edges
Definition: util_ent_dtk.hpp:869
@ DTK_PT_UNSPECIFIED
Definition: util_ent_dtk.hpp:27
size_t Dtk_Size_t
Definition: define.h:714
Dtk_RGB GetColor() const
Retrieves the entity color as Dtk_RGBA values.
@ TypeBond
Definition: util_ent_dtk.hpp:1099
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:1033
@ 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:1058
@ 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:1012
@ TypeUnknown
Definition: util_ent_dtk.hpp:1093
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:1034
Dtk_ErrorStatus SetMetaData(Dtk_tab< Dtk_MetaDataPtr > &inArray)
@ DTK_BREAKLINE
Definition: util_ent_dtk.hpp:63
#define DTK_FALSE
Definition: define.h:730
Dtk_ErrorStatus ListAllCustomerDefinedAttributesWithVal(Dtk_tab< Dtk_pair< Dtk_string, Dtk_Val > > &tab) const
char Dtk_bool
Definition: define.h:727
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:49
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:351
@ rendering_mode_wireframe_with_only_visible_edges
Definition: util_ent_dtk.hpp:870
Dtk_ErrorStatus SetColorId(const Dtk_Int32 &inColorId)
@ ValueTypeOrientation
Definition: util_ent_dtk.hpp:1056
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:64
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:1026
double Dtk_Double64
Definition: define.h:701
_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:436
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:612
static Dtk_Constraint * DtkDynamicCast(Dtk_Object *inObject)
int DtkDynamicType(const int &inId)
RenderingModeEnum
Definition: util_ent_dtk.hpp:866
virtual enum type_detk get_type_detk() const =0
void _Copy(const Dtk_LayerFilterInfos &s)
@ ValueTypeDistance
Definition: util_ent_dtk.hpp:1053
Dtk_ErrorStatus SetBlankedStatus(const Dtk_Int32 &inBlankedStatus)
Dtk_Info(const Dtk_Info &s)
@ ValueTypeAngle
Definition: util_ent_dtk.hpp:1052
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:823
Definition: dtk_val.hpp:67
preview_type_detk
Definition: define.h:634
Dtk_MaterialPtr _Material
Definition: util_ent_dtk.hpp:125
Dtk_ErrorStatus GetMetaData(Dtk_tab< Dtk_MetaDataPtr > &outArray) const
@ ValueTypeRotation
Definition: util_ent_dtk.hpp:1055
@ DTK_PT_UP_TRIANGLE
Definition: util_ent_dtk.hpp:40
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:967
static Dtk_string ConstraintOrientationTypeEnumToString(const ConstraintOrientationTypeEnum &inEnum)
Definition: util_ent_dtk.hpp:1036
@ _typeID
Definition: util_ent_dtk.hpp:841
ConstraintValueTypeEnum _ValueType
Definition: util_ent_dtk.hpp:1081
@ SectionPlane
Definition: util_ent_dtk.hpp:878
@ _typeID
Definition: util_ent_dtk.hpp:606
@ DTK_PT_COINCIDENT
Definition: util_ent_dtk.hpp:31
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:483
@ TypeTouch
Definition: util_ent_dtk.hpp:1136
@ rendering_mode_wireframe_partially_shade
Definition: util_ent_dtk.hpp:873
Dtk_ErrorStatus SetViewId(const Dtk_Int32 &inViewId)
Dtk_ErrorStatus SetPointSymbolType(const Dtk_PointType inPointSymbolType)
@ rendering_mode_unknown
Definition: util_ent_dtk.hpp:875
Dtk_bool IsDefault() const
Get the default status.
This is the Dtk_ModelDisplay class.
Definition: util_ent_dtk.hpp:837
@ DTK_DASHED
Definition: util_ent_dtk.hpp:51
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:867
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:402
@ SectionBox
Definition: util_ent_dtk.hpp:881
Dtk_ErrorStatus GetLayerID(const Dtk_Size_t inLayerIndex, Dtk_ID &outLayerID) const
Gets the LayerID giving its index.
@ TypeAngle
Definition: util_ent_dtk.hpp:1097
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:839
@ TypePerpendicular
Definition: util_ent_dtk.hpp:1126
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:1114
@ TypeConcentric
Definition: util_ent_dtk.hpp:1104
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_EntityPtr GetClippingEntity() const
Retrieves the Dtk_ModelDisplay clipping entity - read only -.
void _copy(const Dtk_AxisSystem &s)
@ TypeParallel
Definition: util_ent_dtk.hpp:1123
@ rendering_mode_static_wireframe
Definition: util_ent_dtk.hpp:871
@ SectionUndefined
Definition: util_ent_dtk.hpp:883
Dtk_LayerInfosSet(const Dtk_LayerInfosSet &s)
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:133
int32_t Dtk_Int32
Definition: define.h:689
@ DTK_DOTTED
Definition: util_ent_dtk.hpp:57
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:893
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:874
static Dtk_string ConstraintTypeEnumToString(const ConstraintTypeEnum &inEnum)
Definition: util_ent_dtk.hpp:1140
static Dtk_PreviewPtr Create(const Dtk_Preview &in)
Calls copy constructor to allocate a new object.
@ DTK_PT_CONCENTRIC
Definition: util_ent_dtk.hpp:30
@ DTK_TYPE_LAYER_FILTER_INFOS
Definition: define.h:506
@ ValueTypePosition
Definition: util_ent_dtk.hpp:1054
This is the Dtk_Preview class.
Definition: util_ent_dtk.hpp:715
@ NotMandatory
Definition: util_ent_dtk.hpp:137
Dtk_LineTypeDefinitionPtr GetCurveLineTypeDefinition() const
Retrieves the definition of the curve LineType - for curve entities -.
@ DTK_PHANTOM
Definition: util_ent_dtk.hpp:53
@ DTK_DOTTED_DASHED
Definition: util_ent_dtk.hpp:61
@ TypeUniversalJoint
Definition: util_ent_dtk.hpp:1137
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:141
bool operator()(const Dtk_string &s1, const Dtk_string &s2) const
Definition: util_ent_dtk.hpp:106
@ 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:1110
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:39
ConstraintValueTypeEnum
Definition: util_ent_dtk.hpp:1050
virtual Dtk_ErrorStatus _Store(void *)
@ _typeID
Definition: util_ent_dtk.hpp:353
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:1100
@ 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:1124
@ SectionParallelePlane
Definition: util_ent_dtk.hpp:880
Dtk_ErrorStatus SetMatId(const Dtk_Int32 &inMatId)
Dtk_ErrorStatus SetPersistentName(Dtk_string inName)
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:854
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:139
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:22
Dtk_SmartPtr< Dtk_material > Dtk_MaterialPtr
Definition: util_ent_dtk.hpp:22
Dtk_SmartPtr< Dtk_ColorInfosSet > Dtk_ColorInfosSetPtr
Definition: util_ent_dtk.hpp:399
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:1032
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:488
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:877
Dtk_FontLineType
This is a set of line styles.
Definition: util_ent_dtk.hpp:46
This class is used by Dtk_LayerInfosSet to represent a layer filter : its name, description,...
Definition: util_ent_dtk.hpp:414
const Dtk_transfo & GetMatrix() const
Get the Matrix of the AxisSystem.
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:1237
Dtk_ErrorStatus ListAllAttributes(Dtk_tab< Dtk_string > &tab_keys) const
Dtk_SmartPtr< Dtk_ConstraintReference > Dtk_ConstraintReferencePtr
Definition: util_ent_dtk.hpp:404
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:882
Dtk_ErrorStatus SetFontId(const Dtk_Int32 &inFontId)
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:993
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:1030
virtual void PrepareTransfo()
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:494
Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)
Applies a transformation matrix to the entity. //!
@ TypeProfileCenter
Definition: util_ent_dtk.hpp:1127
Dtk_ErrorStatus SetPhysicalMaterialInfosId(const Dtk_ID &inMaterialId)
@ DTK_TYPE_CONSTRAINT_REFERENCE
Definition: define.h:611
Dtk_PointType
Definition: util_ent_dtk.hpp:26
@ TypeOrientAngle
Definition: util_ent_dtk.hpp:1121
@ DTK_NO_PATTERN
Definition: util_ent_dtk.hpp:47
@ DTK_LONG_DASHED
Definition: util_ent_dtk.hpp:59
@ TypeDistance
Definition: util_ent_dtk.hpp:1108
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
Dtk_SmartPtr< Dtk_Constraint > Dtk_ConstraintPtr
Definition: util_ent_dtk.hpp:403
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:601
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:809
@ 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:1085
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:38
virtual Dtk_Object * Clone()
Definition: util_ent_dtk.hpp:1256
MandatoryFlag
Definition: util_ent_dtk.hpp:136
virtual Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)=0
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:604
virtual ~Dtk_Constraint()
@ ZXPlane
Definition: util_ent_dtk.hpp:140
Dtk_ColorInfosSet(const Dtk_ColorInfosSet &s)
Dtk_tab< Dtk_Int32 > GetBuildingInfosIds() const
type_detk get_type_detk() const
Definition: util_ent_dtk.hpp:629
Dtk_ErrorStatus SetBuildingInfosIds(const Dtk_tab< Dtk_Int32 > inBuildingInfos)
@ TypeCoincidence
Definition: util_ent_dtk.hpp:1106
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:879
bool operator()(const Dtk_string &s1, const Dtk_string &s2) const
Definition: util_ent_dtk.hpp:98
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:828
Dtk_ID GetPhysicalMaterialInfosId() const
Retrieves the Id of MaterialInfos of the entity in The Dtk_API table.
@ TypeLimit
Definition: util_ent_dtk.hpp:1115
@ DTK_PT_DIAMOND
Definition: util_ent_dtk.hpp:41
Dtk_ErrorStatus Transform(const Dtk_transfo &inTransfo)
Applies a transformation matrix to the entity. //!
@ ValueTypeUnknown
Definition: util_ent_dtk.hpp:1051
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:122
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:813
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:1083
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_Capture.
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:1251
@ TypeTangent
Definition: util_ent_dtk.hpp:1134
static Dtk_ColorInfosSetPtr Create(const Dtk_Size_t inNumColors)
Calls a constructor to allocate a new object.
@ TypeScrew
Definition: util_ent_dtk.hpp:1129
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:1113
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:416
Dtk_Handle * _Private
Definition: util_ent_dtk.hpp:736
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: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:97
Dtk_Int32 _EnableUpper
Definition: util_ent_dtk.hpp:1084
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:1116
Dtk_Constraint(const ConstraintTypeEnum &inType)
@ TypeLock
Definition: util_ent_dtk.hpp:1119
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:1128
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:1082
int GetIsHidden() const
Get the hidden status.
This is the Dtk_AxisSystem class.
Definition: util_ent_dtk.hpp:753
@ TypeCenter
Definition: util_ent_dtk.hpp:1102
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:1092
Definition: util_ent_dtk.hpp:349
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.