Warning, file /include/opencascade/XCAFDoc_DimTolTool.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _XCAFDoc_DimTolTool_HeaderFile
0017 #define _XCAFDoc_DimTolTool_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021
0022 #include <TDataStd_GenericEmpty.hxx>
0023 #include <Standard_Boolean.hxx>
0024 #include <TDF_Label.hxx>
0025 #include <NCollection_Sequence.hxx>
0026 #include <Standard_Integer.hxx>
0027 #include <NCollection_Array1.hxx>
0028 #include <NCollection_HArray1.hxx>
0029 #include <TopoDS_Shape.hxx>
0030 #include <NCollection_IndexedDataMap.hxx>
0031
0032 class XCAFDoc_ShapeTool;
0033 class TDF_Label;
0034 class Standard_GUID;
0035 class TCollection_HAsciiString;
0036
0037
0038
0039 class XCAFDoc_DimTolTool : public TDataStd_GenericEmpty
0040 {
0041
0042 public:
0043 Standard_EXPORT XCAFDoc_DimTolTool();
0044
0045
0046 Standard_EXPORT static occ::handle<XCAFDoc_DimTolTool> Set(const TDF_Label& L);
0047
0048
0049 Standard_EXPORT static const Standard_GUID& GetID();
0050
0051
0052 Standard_EXPORT TDF_Label BaseLabel() const;
0053
0054
0055 Standard_EXPORT const occ::handle<XCAFDoc_ShapeTool>& ShapeTool();
0056
0057
0058
0059 Standard_EXPORT bool IsDimension(const TDF_Label& theLab) const;
0060
0061
0062
0063 Standard_EXPORT void GetDimensionLabels(NCollection_Sequence<TDF_Label>& theLabels) const;
0064
0065
0066 Standard_EXPORT void SetDimension(const NCollection_Sequence<TDF_Label>& theFirstLS,
0067 const NCollection_Sequence<TDF_Label>& theSecondLS,
0068 const TDF_Label& theDimL) const;
0069
0070
0071 Standard_EXPORT void SetDimension(const TDF_Label& theFirstL,
0072 const TDF_Label& theSecondL,
0073 const TDF_Label& theDimL) const;
0074
0075
0076 Standard_EXPORT void SetDimension(const TDF_Label& theL, const TDF_Label& theDimL) const;
0077
0078
0079 Standard_EXPORT bool GetRefDimensionLabels(const TDF_Label& theShapeL,
0080 NCollection_Sequence<TDF_Label>& theDimensions) const;
0081
0082
0083 Standard_EXPORT TDF_Label AddDimension();
0084
0085
0086 Standard_EXPORT bool IsGeomTolerance(const TDF_Label& theLab) const;
0087
0088
0089 Standard_EXPORT void GetGeomToleranceLabels(NCollection_Sequence<TDF_Label>& theLabels) const;
0090
0091
0092
0093 Standard_EXPORT void SetGeomTolerance(const TDF_Label& theL, const TDF_Label& theGeomTolL) const;
0094
0095
0096
0097 Standard_EXPORT void SetGeomTolerance(const NCollection_Sequence<TDF_Label>& theL,
0098 const TDF_Label& theGeomTolL) const;
0099
0100
0101 Standard_EXPORT bool GetRefGeomToleranceLabels(const TDF_Label& theShapeL,
0102 NCollection_Sequence<TDF_Label>& theDimTols) const;
0103
0104
0105 Standard_EXPORT TDF_Label AddGeomTolerance();
0106
0107
0108 Standard_EXPORT bool IsDimTol(const TDF_Label& theLab) const;
0109
0110
0111 Standard_EXPORT void GetDimTolLabels(NCollection_Sequence<TDF_Label>& Labels) const;
0112
0113
0114
0115
0116
0117 Standard_EXPORT bool FindDimTol(const int theKind,
0118 const occ::handle<NCollection_HArray1<double>>& theVal,
0119 const occ::handle<TCollection_HAsciiString>& theName,
0120 const occ::handle<TCollection_HAsciiString>& theDescription,
0121 TDF_Label& lab) const;
0122
0123
0124
0125
0126 Standard_EXPORT TDF_Label
0127 FindDimTol(const int theKind,
0128 const occ::handle<NCollection_HArray1<double>>& theVal,
0129 const occ::handle<TCollection_HAsciiString>& theName,
0130 const occ::handle<TCollection_HAsciiString>& theDescription) const;
0131
0132
0133
0134 Standard_EXPORT TDF_Label
0135 AddDimTol(const int theKind,
0136 const occ::handle<NCollection_HArray1<double>>& theVal,
0137 const occ::handle<TCollection_HAsciiString>& theName,
0138 const occ::handle<TCollection_HAsciiString>& theDescription) const;
0139
0140
0141 Standard_EXPORT void SetDimTol(const TDF_Label& theL, const TDF_Label& theDimTolL) const;
0142
0143
0144 Standard_EXPORT TDF_Label
0145 SetDimTol(const TDF_Label& theL,
0146 const int theKind,
0147 const occ::handle<NCollection_HArray1<double>>& theVal,
0148 const occ::handle<TCollection_HAsciiString>& theName,
0149 const occ::handle<TCollection_HAsciiString>& theDescription) const;
0150
0151
0152
0153 Standard_EXPORT static bool GetRefShapeLabel(const TDF_Label& theL,
0154 NCollection_Sequence<TDF_Label>& theShapeLFirst,
0155 NCollection_Sequence<TDF_Label>& theShapeLSecond);
0156
0157
0158
0159 Standard_EXPORT bool GetDimTol(const TDF_Label& theDimTolL,
0160 int& theKind,
0161 occ::handle<NCollection_HArray1<double>>& theVal,
0162 occ::handle<TCollection_HAsciiString>& theName,
0163 occ::handle<TCollection_HAsciiString>& theDescription) const;
0164
0165
0166
0167 Standard_EXPORT bool IsDatum(const TDF_Label& lab) const;
0168
0169
0170
0171 Standard_EXPORT void GetDatumLabels(NCollection_Sequence<TDF_Label>& Labels) const;
0172
0173
0174
0175 Standard_EXPORT bool FindDatum(const occ::handle<TCollection_HAsciiString>& theName,
0176 const occ::handle<TCollection_HAsciiString>& theDescription,
0177 const occ::handle<TCollection_HAsciiString>& theIdentification,
0178 TDF_Label& lab) const;
0179
0180
0181 Standard_EXPORT TDF_Label
0182 AddDatum(const occ::handle<TCollection_HAsciiString>& theName,
0183 const occ::handle<TCollection_HAsciiString>& theDescription,
0184 const occ::handle<TCollection_HAsciiString>& theIdentification) const;
0185
0186
0187 Standard_EXPORT TDF_Label AddDatum();
0188
0189
0190 Standard_EXPORT void SetDatum(const NCollection_Sequence<TDF_Label>& theShapeLabels,
0191 const TDF_Label& theDatumL) const;
0192
0193
0194
0195
0196 Standard_EXPORT void SetDatum(
0197 const TDF_Label& theL,
0198 const TDF_Label& theTolerL,
0199 const occ::handle<TCollection_HAsciiString>& theName,
0200 const occ::handle<TCollection_HAsciiString>& theDescription,
0201 const occ::handle<TCollection_HAsciiString>& theIdentification) const;
0202
0203
0204 Standard_EXPORT void SetDatumToGeomTol(const TDF_Label& theDatumL,
0205 const TDF_Label& theTolerL) const;
0206
0207
0208
0209 Standard_EXPORT bool GetDatum(const TDF_Label& theDatumL,
0210 occ::handle<TCollection_HAsciiString>& theName,
0211 occ::handle<TCollection_HAsciiString>& theDescription,
0212 occ::handle<TCollection_HAsciiString>& theIdentification) const;
0213
0214
0215 Standard_EXPORT static bool GetDatumOfTolerLabels(const TDF_Label& theDimTolL,
0216 NCollection_Sequence<TDF_Label>& theDatums);
0217
0218
0219 Standard_EXPORT static bool GetDatumWithObjectOfTolerLabels(
0220 const TDF_Label& theDimTolL,
0221 NCollection_Sequence<TDF_Label>& theDatums);
0222
0223
0224 Standard_EXPORT bool GetTolerOfDatumLabels(const TDF_Label& theDatumL,
0225 NCollection_Sequence<TDF_Label>& theTols) const;
0226
0227
0228 Standard_EXPORT bool GetRefDatumLabel(const TDF_Label& theShapeL,
0229 NCollection_Sequence<TDF_Label>& theDatum) const;
0230
0231
0232 Standard_EXPORT bool IsLocked(const TDF_Label& theViewL) const;
0233
0234
0235 Standard_EXPORT void Lock(const TDF_Label& theViewL) const;
0236
0237
0238 Standard_EXPORT void GetGDTPresentations(
0239 NCollection_IndexedDataMap<TDF_Label, TopoDS_Shape>& theGDTLabelToShape) const;
0240
0241
0242
0243
0244 Standard_EXPORT void SetGDTPresentations(
0245 NCollection_IndexedDataMap<TDF_Label, TopoDS_Shape>& theGDTLabelToPrs);
0246
0247
0248 Standard_EXPORT void Unlock(const TDF_Label& theViewL) const;
0249
0250 Standard_EXPORT const Standard_GUID& ID() const override;
0251
0252
0253 Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
0254
0255 DEFINE_DERIVED_ATTRIBUTE(XCAFDoc_DimTolTool, TDataStd_GenericEmpty)
0256
0257 private:
0258 occ::handle<XCAFDoc_ShapeTool> myShapeTool;
0259 };
0260
0261 #endif