14bbbdcb |
1 | // Created on: 2017-06-16 |
2 | // Created by: Natalia ERMOLAEVA |
3 | // Copyright (c) 2017 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 | |
17 | #ifndef ToolsDraw_H |
18 | #define ToolsDraw_H |
19 | |
20 | #include <Draw_Interpretor.hxx> |
21 | #include <Standard.hxx> |
22 | |
7e1c1e48 |
23 | class TInspector_Communicator; |
24 | |
14bbbdcb |
25 | //! \class ToolsDraw |
26 | //! \brief Registers DRAW commands to connect to TInspector tools |
27 | class ToolsDraw |
28 | { |
29 | public: |
30 | |
31 | DEFINE_STANDARD_ALLOC |
32 | |
33 | //! Loads all Draw commands of tools. Used for plugin. |
a110c4a3 |
34 | //! \param theDI Draw interpreter |
14bbbdcb |
35 | Standard_EXPORT static void Factory (Draw_Interpretor& theDI); |
36 | |
7e1c1e48 |
37 | //! Adds all tools command in the Draw_Interpretor |
14bbbdcb |
38 | //! \param theCommands |
39 | Standard_EXPORT static void Commands (Draw_Interpretor& theCommands); |
40 | |
7e1c1e48 |
41 | //! Returns default communicator used in DRAW commands |
42 | Standard_EXPORT static TInspector_Communicator* Communicator(); |
43 | |
14bbbdcb |
44 | private: |
45 | }; |
46 | |
47 | #endif //ToolsDraw_H |