File indexing completed on 2025-01-18 10:03:23
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _DDF_Browser_HeaderFile
0017 #define _DDF_Browser_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021
0022 #include <TDF_AttributeIndexedMap.hxx>
0023 #include <Draw_Drawable3D.hxx>
0024 #include <Standard_OStream.hxx>
0025 #include <Draw_Interpretor.hxx>
0026 #include <Standard_Integer.hxx>
0027 class TDF_Data;
0028 class Draw_Display;
0029 class TCollection_AsciiString;
0030 class TDF_Label;
0031
0032
0033 class DDF_Browser;
0034 DEFINE_STANDARD_HANDLE(DDF_Browser, Draw_Drawable3D)
0035
0036
0037 class DDF_Browser : public Draw_Drawable3D
0038 {
0039
0040 public:
0041
0042
0043 Standard_EXPORT DDF_Browser(const Handle(TDF_Data)& aDF);
0044
0045 Standard_EXPORT void DrawOn (Draw_Display& dis) const Standard_OVERRIDE;
0046
0047 Standard_EXPORT virtual Handle(Draw_Drawable3D) Copy() const Standard_OVERRIDE;
0048
0049 Standard_EXPORT virtual void Dump (Standard_OStream& S) const Standard_OVERRIDE;
0050
0051 Standard_EXPORT virtual void Whatis (Draw_Interpretor& I) const Standard_OVERRIDE;
0052
0053 Standard_EXPORT void Data (const Handle(TDF_Data)& aDF);
0054
0055 Standard_EXPORT Handle(TDF_Data) Data() const;
0056
0057
0058
0059 Standard_EXPORT TCollection_AsciiString OpenRoot() const;
0060
0061
0062
0063 Standard_EXPORT TCollection_AsciiString OpenLabel (const TDF_Label& aLab) const;
0064
0065
0066
0067 Standard_EXPORT TCollection_AsciiString OpenAttributeList (const TDF_Label& aLab);
0068
0069
0070
0071
0072
0073
0074 Standard_EXPORT TCollection_AsciiString OpenAttribute (const Standard_Integer anIndex = 0);
0075
0076
0077
0078 Standard_EXPORT TCollection_AsciiString Information() const;
0079
0080
0081
0082 Standard_EXPORT TCollection_AsciiString Information (const TDF_Label& aLab) const;
0083
0084
0085
0086 Standard_EXPORT TCollection_AsciiString Information (const Standard_Integer anIndex = 0) const;
0087
0088
0089
0090
0091 DEFINE_STANDARD_RTTIEXT(DDF_Browser,Draw_Drawable3D)
0092
0093 protected:
0094
0095
0096
0097
0098 private:
0099
0100
0101 Handle(TDF_Data) myDF;
0102 TDF_AttributeIndexedMap myAttMap;
0103
0104
0105 };
0106
0107
0108
0109
0110
0111
0112
0113 #endif