File indexing completed on 2025-01-18 10:05:20
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _TDataXtd_Constraint_HeaderFile
0017 #define _TDataXtd_Constraint_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021
0022 #include <TDataXtd_ConstraintEnum.hxx>
0023 #include <TDF_Attribute.hxx>
0024 #include <Standard_Integer.hxx>
0025 #include <TDF_LabelList.hxx>
0026 #include <Standard_OStream.hxx>
0027
0028 class TDataStd_Real;
0029 class Standard_GUID;
0030 class TDF_Label;
0031 class TNaming_NamedShape;
0032 class TDF_RelocationTable;
0033 class TDF_DataSet;
0034
0035
0036 class TDataXtd_Constraint;
0037 DEFINE_STANDARD_HANDLE(TDataXtd_Constraint, TDF_Attribute)
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049 class TDataXtd_Constraint : public TDF_Attribute
0050 {
0051
0052 public:
0053
0054
0055
0056 Standard_EXPORT static const Standard_GUID& GetID();
0057
0058
0059
0060
0061
0062
0063 Standard_EXPORT static Handle(TDataXtd_Constraint) Set (const TDF_Label& label);
0064
0065 Standard_EXPORT TDataXtd_Constraint();
0066
0067
0068
0069
0070 Standard_EXPORT void Set (const TDataXtd_ConstraintEnum type, const Handle(TNaming_NamedShape)& G1);
0071
0072
0073
0074
0075
0076 Standard_EXPORT void Set (const TDataXtd_ConstraintEnum type, const Handle(TNaming_NamedShape)& G1, const Handle(TNaming_NamedShape)& G2);
0077
0078
0079
0080
0081
0082 Standard_EXPORT void Set (const TDataXtd_ConstraintEnum type, const Handle(TNaming_NamedShape)& G1, const Handle(TNaming_NamedShape)& G2, const Handle(TNaming_NamedShape)& G3);
0083
0084
0085
0086
0087
0088
0089
0090 Standard_EXPORT void Set (const TDataXtd_ConstraintEnum type, const Handle(TNaming_NamedShape)& G1, const Handle(TNaming_NamedShape)& G2, const Handle(TNaming_NamedShape)& G3, const Handle(TNaming_NamedShape)& G4);
0091
0092
0093
0094
0095
0096
0097
0098 Standard_EXPORT Standard_Boolean Verified() const;
0099
0100
0101
0102
0103
0104 Standard_EXPORT TDataXtd_ConstraintEnum GetType() const;
0105
0106
0107
0108 Standard_EXPORT Standard_Boolean IsPlanar() const;
0109
0110
0111
0112
0113
0114
0115 Standard_EXPORT const Handle(TNaming_NamedShape)& GetPlane() const;
0116
0117
0118
0119 Standard_EXPORT Standard_Boolean IsDimension() const;
0120
0121
0122
0123
0124
0125 Standard_EXPORT const Handle(TDataStd_Real)& GetValue() const;
0126
0127
0128
0129
0130 Standard_EXPORT Standard_Integer NbGeometries() const;
0131
0132
0133
0134
0135
0136
0137 Standard_EXPORT Handle(TNaming_NamedShape) GetGeometry (const Standard_Integer Index) const;
0138
0139
0140
0141
0142 Standard_EXPORT void ClearGeometries();
0143
0144
0145 Standard_EXPORT void SetType (const TDataXtd_ConstraintEnum CTR);
0146
0147
0148
0149 Standard_EXPORT void SetPlane (const Handle(TNaming_NamedShape)& plane);
0150
0151
0152
0153 Standard_EXPORT void SetValue (const Handle(TDataStd_Real)& V);
0154
0155
0156
0157
0158
0159 Standard_EXPORT void SetGeometry (const Standard_Integer Index, const Handle(TNaming_NamedShape)& G);
0160
0161
0162
0163
0164
0165
0166
0167
0168 Standard_EXPORT void Verified (const Standard_Boolean status);
0169
0170 Standard_EXPORT void Inverted (const Standard_Boolean status);
0171
0172 Standard_EXPORT Standard_Boolean Inverted() const;
0173
0174 Standard_EXPORT void Reversed (const Standard_Boolean status);
0175
0176 Standard_EXPORT Standard_Boolean Reversed() const;
0177
0178
0179 Standard_EXPORT static void CollectChildConstraints (const TDF_Label& aLabel, TDF_LabelList& TheList);
0180
0181 Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
0182
0183 Standard_EXPORT void Restore (const Handle(TDF_Attribute)& With) Standard_OVERRIDE;
0184
0185 Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
0186
0187 Standard_EXPORT void Paste (const Handle(TDF_Attribute)& Into, const Handle(TDF_RelocationTable)& RT) const Standard_OVERRIDE;
0188
0189 Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE;
0190
0191 Standard_EXPORT virtual void References (const Handle(TDF_DataSet)& DS) const Standard_OVERRIDE;
0192
0193
0194
0195
0196 DEFINE_STANDARD_RTTIEXT(TDataXtd_Constraint,TDF_Attribute)
0197
0198 protected:
0199
0200
0201
0202
0203 private:
0204
0205
0206 TDataXtd_ConstraintEnum myType;
0207 Handle(TDataStd_Real) myValue;
0208 Handle(TDF_Attribute) myGeometries[4];
0209 Handle(TNaming_NamedShape) myPlane;
0210 Standard_Boolean myIsReversed;
0211 Standard_Boolean myIsInverted;
0212 Standard_Boolean myIsVerified;
0213 };
0214
0215 #endif