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