File indexing completed on 2026-10-02 09:14:32
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _XCAFDoc_ViewTool_HeaderFile
0017 #define _XCAFDoc_ViewTool_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
0028 class TDF_Label;
0029 class Standard_GUID;
0030
0031
0032
0033
0034
0035
0036
0037 class XCAFDoc_ViewTool : public TDataStd_GenericEmpty
0038 {
0039
0040 public:
0041 Standard_EXPORT XCAFDoc_ViewTool();
0042
0043
0044 Standard_EXPORT static occ::handle<XCAFDoc_ViewTool> Set(const TDF_Label& L);
0045
0046 Standard_EXPORT static const Standard_GUID& GetID();
0047
0048
0049 Standard_EXPORT TDF_Label BaseLabel() const;
0050
0051
0052
0053 Standard_EXPORT bool IsView(const TDF_Label& theLabel) const;
0054
0055
0056
0057 Standard_EXPORT void GetViewLabels(NCollection_Sequence<TDF_Label>& theLabels) const;
0058
0059
0060 Standard_EXPORT void SetView(const NCollection_Sequence<TDF_Label>& theShapes,
0061 const NCollection_Sequence<TDF_Label>& theGDTs,
0062 const NCollection_Sequence<TDF_Label>& theClippingPlanes,
0063 const NCollection_Sequence<TDF_Label>& theNotes,
0064 const NCollection_Sequence<TDF_Label>& theAnnotations,
0065 const TDF_Label& theViewL) const;
0066
0067
0068 Standard_EXPORT void SetView(const NCollection_Sequence<TDF_Label>& theShapes,
0069 const NCollection_Sequence<TDF_Label>& theGDTs,
0070 const NCollection_Sequence<TDF_Label>& theClippingPlanes,
0071 const TDF_Label& theViewL) const;
0072
0073
0074 Standard_EXPORT void SetView(const NCollection_Sequence<TDF_Label>& theShapes,
0075 const NCollection_Sequence<TDF_Label>& theGDTs,
0076 const TDF_Label& theViewL) const;
0077
0078
0079 Standard_EXPORT void SetClippingPlanes(
0080 const NCollection_Sequence<TDF_Label>& theClippingPlaneLabels,
0081 const TDF_Label& theViewL) const;
0082
0083
0084 Standard_EXPORT void RemoveView(const TDF_Label& theViewL);
0085
0086
0087 Standard_EXPORT bool GetViewLabelsForShape(const TDF_Label& theShapeL,
0088 NCollection_Sequence<TDF_Label>& theViews) const;
0089
0090
0091 Standard_EXPORT bool GetViewLabelsForGDT(const TDF_Label& theGDTL,
0092 NCollection_Sequence<TDF_Label>& theViews) const;
0093
0094
0095 Standard_EXPORT bool GetViewLabelsForClippingPlane(
0096 const TDF_Label& theClippingPlaneL,
0097 NCollection_Sequence<TDF_Label>& theViews) const;
0098
0099
0100 Standard_EXPORT bool GetViewLabelsForNote(const TDF_Label& theNoteL,
0101 NCollection_Sequence<TDF_Label>& theViews) const;
0102
0103
0104 Standard_EXPORT bool GetViewLabelsForAnnotation(const TDF_Label& theAnnotationL,
0105 NCollection_Sequence<TDF_Label>& theViews) const;
0106
0107
0108 Standard_EXPORT TDF_Label AddView();
0109
0110
0111
0112 Standard_EXPORT bool GetRefShapeLabel(const TDF_Label& theViewL,
0113 NCollection_Sequence<TDF_Label>& theShapeLabels) const;
0114
0115
0116
0117 Standard_EXPORT bool GetRefGDTLabel(const TDF_Label& theViewL,
0118 NCollection_Sequence<TDF_Label>& theGDTLabels) const;
0119
0120
0121
0122 Standard_EXPORT bool GetRefClippingPlaneLabel(
0123 const TDF_Label& theViewL,
0124 NCollection_Sequence<TDF_Label>& theClippingPlaneLabels) const;
0125
0126
0127
0128 Standard_EXPORT bool GetRefNoteLabel(const TDF_Label& theViewL,
0129 NCollection_Sequence<TDF_Label>& theNoteLabels) const;
0130
0131
0132
0133 Standard_EXPORT bool GetRefAnnotationLabel(
0134 const TDF_Label& theViewL,
0135 NCollection_Sequence<TDF_Label>& theAnnotationLabels) const;
0136
0137
0138 Standard_EXPORT bool IsLocked(const TDF_Label& theViewL) const;
0139
0140
0141 Standard_EXPORT void Lock(const TDF_Label& theViewL) const;
0142
0143
0144 Standard_EXPORT void Unlock(const TDF_Label& theViewL) const;
0145
0146 Standard_EXPORT const Standard_GUID& ID() const override;
0147
0148 DEFINE_DERIVED_ATTRIBUTE(XCAFDoc_ViewTool, TDataStd_GenericEmpty)
0149 };
0150 #endif