File indexing completed on 2026-05-04 08:46:41
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_LabelSequence.hxx>
0025 #include <Standard_Integer.hxx>
0026
0027 class TDF_Label;
0028 class Standard_GUID;
0029
0030 class XCAFDoc_ViewTool;
0031 DEFINE_STANDARD_HANDLE(XCAFDoc_ViewTool, TDataStd_GenericEmpty)
0032
0033
0034
0035
0036
0037
0038
0039 class XCAFDoc_ViewTool : public TDataStd_GenericEmpty
0040 {
0041
0042 public:
0043 Standard_EXPORT XCAFDoc_ViewTool();
0044
0045
0046 Standard_EXPORT static Handle(XCAFDoc_ViewTool) Set(const TDF_Label& L);
0047
0048 Standard_EXPORT static const Standard_GUID& GetID();
0049
0050
0051 Standard_EXPORT TDF_Label BaseLabel() const;
0052
0053
0054
0055 Standard_EXPORT Standard_Boolean IsView(const TDF_Label& theLabel) const;
0056
0057
0058
0059 Standard_EXPORT void GetViewLabels(TDF_LabelSequence& theLabels) const;
0060
0061
0062 Standard_EXPORT void SetView(const TDF_LabelSequence& theShapes,
0063 const TDF_LabelSequence& theGDTs,
0064 const TDF_LabelSequence& theClippingPlanes,
0065 const TDF_LabelSequence& theNotes,
0066 const TDF_LabelSequence& theAnnotations,
0067 const TDF_Label& theViewL) const;
0068
0069
0070 Standard_EXPORT void SetView(const TDF_LabelSequence& theShapes,
0071 const TDF_LabelSequence& theGDTs,
0072 const TDF_LabelSequence& theClippingPlanes,
0073 const TDF_Label& theViewL) const;
0074
0075
0076 Standard_EXPORT void SetView(const TDF_LabelSequence& theShapes,
0077 const TDF_LabelSequence& theGDTs,
0078 const TDF_Label& theViewL) const;
0079
0080
0081 Standard_EXPORT void SetClippingPlanes(const TDF_LabelSequence& theClippingPlaneLabels,
0082 const TDF_Label& theViewL) const;
0083
0084
0085 Standard_EXPORT void RemoveView(const TDF_Label& theViewL);
0086
0087
0088 Standard_EXPORT Standard_Boolean GetViewLabelsForShape(const TDF_Label& theShapeL,
0089 TDF_LabelSequence& theViews) const;
0090
0091
0092 Standard_EXPORT Standard_Boolean GetViewLabelsForGDT(const TDF_Label& theGDTL,
0093 TDF_LabelSequence& theViews) const;
0094
0095
0096 Standard_EXPORT Standard_Boolean GetViewLabelsForClippingPlane(const TDF_Label& theClippingPlaneL,
0097 TDF_LabelSequence& theViews) const;
0098
0099
0100 Standard_EXPORT Standard_Boolean GetViewLabelsForNote(const TDF_Label& theNoteL,
0101 TDF_LabelSequence& theViews) const;
0102
0103
0104 Standard_EXPORT Standard_Boolean GetViewLabelsForAnnotation(const TDF_Label& theAnnotationL,
0105 TDF_LabelSequence& theViews) const;
0106
0107
0108 Standard_EXPORT TDF_Label AddView();
0109
0110
0111
0112 Standard_EXPORT Standard_Boolean GetRefShapeLabel(const TDF_Label& theViewL,
0113 TDF_LabelSequence& theShapeLabels) const;
0114
0115
0116
0117 Standard_EXPORT Standard_Boolean GetRefGDTLabel(const TDF_Label& theViewL,
0118 TDF_LabelSequence& theGDTLabels) const;
0119
0120
0121
0122 Standard_EXPORT Standard_Boolean
0123 GetRefClippingPlaneLabel(const TDF_Label& theViewL,
0124 TDF_LabelSequence& theClippingPlaneLabels) const;
0125
0126
0127
0128 Standard_EXPORT Standard_Boolean GetRefNoteLabel(const TDF_Label& theViewL,
0129 TDF_LabelSequence& theNoteLabels) const;
0130
0131
0132
0133 Standard_EXPORT Standard_Boolean
0134 GetRefAnnotationLabel(const TDF_Label& theViewL, TDF_LabelSequence& theAnnotationLabels) const;
0135
0136
0137 Standard_EXPORT Standard_Boolean IsLocked(const TDF_Label& theViewL) const;
0138
0139
0140 Standard_EXPORT void Lock(const TDF_Label& theViewL) const;
0141
0142
0143 Standard_EXPORT void Unlock(const TDF_Label& theViewL) const;
0144
0145 Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
0146
0147 DEFINE_DERIVED_ATTRIBUTE(XCAFDoc_ViewTool, TDataStd_GenericEmpty)
0148 };
0149 #endif