File indexing completed on 2026-06-22 08:31:07
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _XCAFDoc_DocumentTool_HeaderFile
0017 #define _XCAFDoc_DocumentTool_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021
0022 #include <TDataStd_GenericEmpty.hxx>
0023 #include <Standard_Boolean.hxx>
0024 #include <UnitsMethods_LengthUnit.hxx>
0025
0026 class Standard_GUID;
0027 class TDF_Label;
0028 class TDocStd_Document;
0029 class XCAFDoc_ShapeTool;
0030 class XCAFDoc_ColorTool;
0031 class XCAFDoc_ClippingPlaneTool;
0032 class XCAFDoc_LayerTool;
0033 class XCAFDoc_DimTolTool;
0034 class XCAFDoc_MaterialTool;
0035 class XCAFDoc_NotesTool;
0036 class XCAFDoc_ViewTool;
0037 class XCAFDoc_VisMaterialTool;
0038
0039 class XCAFDoc_DocumentTool;
0040 DEFINE_STANDARD_HANDLE(XCAFDoc_DocumentTool, TDataStd_GenericEmpty)
0041
0042
0043
0044
0045 class XCAFDoc_DocumentTool : public TDataStd_GenericEmpty
0046 {
0047
0048 public:
0049 Standard_EXPORT static const Standard_GUID& GetID();
0050
0051
0052
0053
0054
0055
0056
0057
0058 Standard_EXPORT static Handle(XCAFDoc_DocumentTool) Set(
0059 const TDF_Label& L,
0060 const Standard_Boolean IsAcces = Standard_True);
0061
0062 Standard_EXPORT static Standard_Boolean IsXCAFDocument(const Handle(TDocStd_Document)& Doc);
0063
0064
0065
0066 Standard_EXPORT static TDF_Label DocLabel(const TDF_Label& acces);
0067
0068
0069 Standard_EXPORT static TDF_Label ShapesLabel(const TDF_Label& acces);
0070
0071
0072 Standard_EXPORT static TDF_Label ColorsLabel(const TDF_Label& acces);
0073
0074
0075 Standard_EXPORT static TDF_Label LayersLabel(const TDF_Label& acces);
0076
0077
0078 Standard_EXPORT static TDF_Label DGTsLabel(const TDF_Label& acces);
0079
0080
0081 Standard_EXPORT static TDF_Label MaterialsLabel(const TDF_Label& acces);
0082
0083
0084 Standard_EXPORT static TDF_Label ViewsLabel(const TDF_Label& acces);
0085
0086
0087 Standard_EXPORT static TDF_Label ClippingPlanesLabel(const TDF_Label& acces);
0088
0089
0090 Standard_EXPORT static TDF_Label NotesLabel(const TDF_Label& acces);
0091
0092
0093 Standard_EXPORT static TDF_Label VisMaterialLabel(const TDF_Label& theLabel);
0094
0095
0096 Standard_EXPORT static Handle(XCAFDoc_ShapeTool) ShapeTool(const TDF_Label& acces);
0097
0098
0099
0100 Standard_EXPORT static Standard_Boolean CheckShapeTool(const TDF_Label& theAcces);
0101
0102
0103 Standard_EXPORT static Handle(XCAFDoc_ColorTool) ColorTool(const TDF_Label& acces);
0104
0105
0106
0107 Standard_EXPORT static Standard_Boolean CheckColorTool(const TDF_Label& theAcces);
0108
0109
0110
0111 Standard_EXPORT static Handle(XCAFDoc_VisMaterialTool) VisMaterialTool(const TDF_Label& theLabel);
0112
0113
0114
0115 Standard_EXPORT static Standard_Boolean CheckVisMaterialTool(const TDF_Label& theAcces);
0116
0117
0118 Standard_EXPORT static Handle(XCAFDoc_LayerTool) LayerTool(const TDF_Label& acces);
0119
0120
0121
0122 Standard_EXPORT static Standard_Boolean CheckLayerTool(const TDF_Label& theAcces);
0123
0124
0125 Standard_EXPORT static Handle(XCAFDoc_DimTolTool) DimTolTool(const TDF_Label& acces);
0126
0127
0128
0129 Standard_EXPORT static Standard_Boolean CheckDimTolTool(const TDF_Label& theAcces);
0130
0131
0132 Standard_EXPORT static Handle(XCAFDoc_MaterialTool) MaterialTool(const TDF_Label& acces);
0133
0134
0135
0136 Standard_EXPORT static Standard_Boolean CheckMaterialTool(const TDF_Label& theAcces);
0137
0138
0139 Standard_EXPORT static Handle(XCAFDoc_ViewTool) ViewTool(const TDF_Label& acces);
0140
0141
0142
0143 Standard_EXPORT static Standard_Boolean CheckViewTool(const TDF_Label& theAcces);
0144
0145
0146 Standard_EXPORT static Handle(XCAFDoc_ClippingPlaneTool) ClippingPlaneTool(
0147 const TDF_Label& acces);
0148
0149
0150
0151 Standard_EXPORT static Standard_Boolean CheckClippingPlaneTool(const TDF_Label& theAcces);
0152
0153
0154 Standard_EXPORT static Handle(XCAFDoc_NotesTool) NotesTool(const TDF_Label& acces);
0155
0156
0157
0158 Standard_EXPORT static Standard_Boolean CheckNotesTool(const TDF_Label& theAcces);
0159
0160
0161
0162 Standard_EXPORT static Standard_Boolean GetLengthUnit(const Handle(TDocStd_Document)& theDoc,
0163 Standard_Real& theResut,
0164 const UnitsMethods_LengthUnit theBaseUnit);
0165
0166
0167 Standard_EXPORT static Standard_Boolean GetLengthUnit(const Handle(TDocStd_Document)& theDoc,
0168 Standard_Real& theResut);
0169
0170
0171 Standard_EXPORT static void SetLengthUnit(const Handle(TDocStd_Document)& theDoc,
0172 const Standard_Real theUnitValue);
0173
0174
0175
0176 Standard_EXPORT static void SetLengthUnit(const Handle(TDocStd_Document)& theDoc,
0177 const Standard_Real theUnitValue,
0178 const UnitsMethods_LengthUnit theBaseUnit);
0179
0180 public:
0181 Standard_EXPORT XCAFDoc_DocumentTool();
0182
0183
0184 Standard_EXPORT void Init() const;
0185
0186 Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
0187
0188
0189 Standard_EXPORT Standard_Boolean AfterRetrieval(const Standard_Boolean forceIt = Standard_False)
0190 Standard_OVERRIDE;
0191
0192 DEFINE_DERIVED_ATTRIBUTE(XCAFDoc_DocumentTool, TDataStd_GenericEmpty)
0193 };
0194
0195 #endif