File indexing completed on 2025-01-18 10:05:33
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _XCAFDoc_ClippingPlaneTool_HeaderFile
0017 #define _XCAFDoc_ClippingPlaneTool_HeaderFile
0018
0019 #include <gp_Pln.hxx>
0020 #include <TCollection_HAsciiString.hxx>
0021 #include <TDF_LabelSequence.hxx>
0022 #include <TDataStd_GenericEmpty.hxx>
0023
0024 class XCAFDoc_ClippingPlaneTool;
0025 DEFINE_STANDARD_HANDLE(XCAFDoc_ClippingPlaneTool, TDataStd_GenericEmpty)
0026
0027
0028
0029
0030 class XCAFDoc_ClippingPlaneTool : public TDataStd_GenericEmpty
0031 {
0032
0033 public:
0034
0035
0036 Standard_EXPORT XCAFDoc_ClippingPlaneTool();
0037
0038
0039 Standard_EXPORT static Handle(XCAFDoc_ClippingPlaneTool) Set (const TDF_Label& theLabel);
0040
0041 Standard_EXPORT static const Standard_GUID& GetID();
0042
0043
0044 Standard_EXPORT TDF_Label BaseLabel() const;
0045
0046
0047
0048 Standard_EXPORT Standard_Boolean IsClippingPlane (const TDF_Label& theLabel) const;
0049
0050
0051
0052
0053 Standard_EXPORT Standard_Boolean GetClippingPlane(const TDF_Label& theLabel, gp_Pln& thePlane, TCollection_ExtendedString& theName, Standard_Boolean &theCapping) const;
0054
0055
0056
0057
0058 Standard_EXPORT Standard_Boolean GetClippingPlane(const TDF_Label& theLabel, gp_Pln& thePlane, Handle(TCollection_HAsciiString)& theName, Standard_Boolean &theCapping) const;
0059
0060
0061
0062
0063 Standard_EXPORT TDF_Label AddClippingPlane(const gp_Pln& thePlane, const TCollection_ExtendedString& theName, const Standard_Boolean theCapping) const;
0064
0065
0066
0067
0068 Standard_EXPORT TDF_Label AddClippingPlane(const gp_Pln& thePlane, const Handle(TCollection_HAsciiString)& theName, const Standard_Boolean theCapping) const;
0069
0070
0071
0072
0073 Standard_EXPORT TDF_Label AddClippingPlane(const gp_Pln& thePlane, const TCollection_ExtendedString& theName) const;
0074
0075
0076
0077
0078 Standard_EXPORT TDF_Label AddClippingPlane(const gp_Pln& thePlane, const Handle(TCollection_HAsciiString)& theName) const;
0079
0080
0081
0082 Standard_EXPORT Standard_Boolean RemoveClippingPlane(const TDF_Label& theLabel) const;
0083
0084
0085
0086 Standard_EXPORT void GetClippingPlanes(TDF_LabelSequence& Labels) const;
0087
0088
0089
0090 Standard_EXPORT void UpdateClippingPlane(const TDF_Label& theLabelL, const gp_Pln& thePlane, const TCollection_ExtendedString& theName) const;
0091
0092
0093 Standard_EXPORT void SetCapping(const TDF_Label& theClippingPlaneL, const Standard_Boolean theCapping);
0094
0095
0096
0097 Standard_EXPORT Standard_Boolean GetCapping(const TDF_Label& theClippingPlaneL) const;
0098
0099
0100
0101 Standard_EXPORT Standard_Boolean GetCapping(const TDF_Label& theClippingPlaneL, Standard_Boolean &theCapping) const;
0102
0103 Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
0104
0105
0106
0107 DEFINE_DERIVED_ATTRIBUTE(XCAFDoc_ClippingPlaneTool, TDataStd_GenericEmpty)
0108
0109 };
0110 #endif