0027232: Configuration - fix mblen missing building issue on Android
[occt.git] / src / DDataStd / DDataStd_TreeBrowser.hxx
CommitLineData
42cf5bc1 1// Created by: DAUTRY Philippe
2// Copyright (c) 1997-1999 Matra Datavision
3// Copyright (c) 1999-2014 OPEN CASCADE SAS
4//
5// This file is part of Open CASCADE Technology software library.
6//
7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License version 2.1 as published
9// by the Free Software Foundation, with special exception defined in the file
10// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11// distribution for complete text of the license and disclaimer of any warranty.
12//
13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
15
16#ifndef _DDataStd_TreeBrowser_HeaderFile
17#define _DDataStd_TreeBrowser_HeaderFile
18
19#include <Standard.hxx>
20#include <Standard_Type.hxx>
21
22#include <TDF_Label.hxx>
23#include <Draw_Drawable3D.hxx>
24#include <Standard_OStream.hxx>
25#include <Draw_Interpretor.hxx>
26class TDF_Label;
27class Draw_Display;
28class Draw_Drawable3D;
29class TCollection_AsciiString;
30class TDataStd_TreeNode;
31
32
33class DDataStd_TreeBrowser;
34DEFINE_STANDARD_HANDLE(DDataStd_TreeBrowser, Draw_Drawable3D)
35
36//! Browses a TreeNode from TDataStd.
37//! =================================
38class DDataStd_TreeBrowser : public Draw_Drawable3D
39{
40
41public:
42
43
44 Standard_EXPORT DDataStd_TreeBrowser(const TDF_Label& root);
45
79104795 46 Standard_EXPORT void DrawOn (Draw_Display& dis) const Standard_OVERRIDE;
42cf5bc1 47
48 Standard_EXPORT virtual Handle(Draw_Drawable3D) Copy() const Standard_OVERRIDE;
49
50 Standard_EXPORT virtual void Dump (Standard_OStream& S) const Standard_OVERRIDE;
51
52 //! Specific methods
53 //! ================
54 Standard_EXPORT virtual void Whatis (Draw_Interpretor& I) const Standard_OVERRIDE;
55
56 Standard_EXPORT void Label (const TDF_Label& root);
57
58 Standard_EXPORT TDF_Label Label() const;
59
60 //! Returns a string composed with the TreeNode of
61 //! <myLabel>.
62 Standard_EXPORT TCollection_AsciiString OpenRoot() const;
63
64 //! Returns a string composed with the sub-TreeNodes of
65 //! <L>
66 Standard_EXPORT TCollection_AsciiString OpenNode (const TDF_Label& L) const;
67
68
69
70
92efcf78 71 DEFINE_STANDARD_RTTIEXT(DDataStd_TreeBrowser,Draw_Drawable3D)
42cf5bc1 72
73protected:
74
75
76
77
78private:
79
80
81 //! Returns a string composed with the sub-TreeNodes
82 //! of <aTreeNode>. Used to implement other methods.
83 Standard_EXPORT void OpenNode (const Handle(TDataStd_TreeNode)& aTreeNode, TCollection_AsciiString& aList) const;
84
85 TDF_Label myRoot;
86
87
88};
89
90
91
92
93
94
95
96#endif // _DDataStd_TreeBrowser_HeaderFile