OpenTwin
0.1
OpenTwin
Loading...
Searching...
No Matches
ToolRuntimeHandler.h
Go to the documentation of this file.
1
4
// ###########################################################################################################################################################################################################################################################################################################################
5
6
#pragma once
7
8
// API header
9
#include "
OToolkitAPI/Tool.h
"
10
#include "
OToolkitAPI/ToolWidgets.h
"
11
12
// OpenTwin header
13
#include "
OTCore/OTClassHelper.h
"
14
15
class
ToolManager
;
16
17
class
ToolRuntimeHandler
{
18
OT_DECL_NOCOPY
(
ToolRuntimeHandler
)
19
public
:
20
ToolRuntimeHandler
(
otoolkit::Tool
* _tool,
ToolManager
* _manager);
21
virtual
~ToolRuntimeHandler
();
22
23
otoolkit::Tool
*
getTool
(
void
) {
return
m_tool; };
24
25
void
setToolWidgets
(
const
otoolkit::ToolWidgets
& _toolWidgets) { m_toolWidgets = _toolWidgets; };
26
const
otoolkit::ToolWidgets
&
getToolWidgets
(
void
)
const
{
return
m_toolWidgets; };
27
otoolkit::ToolWidgets
&
getToolWidgets
(
void
) {
return
m_toolWidgets; };
28
29
void
notifyDataChanged
(
void
);
30
31
private
:
32
ToolManager
* m_manager;
33
otoolkit::Tool
* m_tool;
34
otoolkit::ToolWidgets
m_toolWidgets;
35
36
ToolRuntimeHandler
() =
delete
;
37
};
OTClassHelper.h
This file contains defines that may be used simplyfy class creation.
OT_DECL_NOCOPY
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition
OTClassHelper.h:14
Tool.h
ToolWidgets.h
ToolManager
Definition
ToolManager.h:32
ToolRuntimeHandler
Definition
ToolRuntimeHandler.h:17
ToolRuntimeHandler::setToolWidgets
void setToolWidgets(const otoolkit::ToolWidgets &_toolWidgets)
Definition
ToolRuntimeHandler.h:25
ToolRuntimeHandler::getTool
otoolkit::Tool * getTool(void)
Definition
ToolRuntimeHandler.h:23
ToolRuntimeHandler::notifyDataChanged
void notifyDataChanged(void)
Definition
ToolRuntimeHandler.cpp:23
ToolRuntimeHandler::getToolWidgets
const otoolkit::ToolWidgets & getToolWidgets(void) const
Definition
ToolRuntimeHandler.h:26
ToolRuntimeHandler::~ToolRuntimeHandler
virtual ~ToolRuntimeHandler()
Definition
ToolRuntimeHandler.cpp:19
ToolRuntimeHandler::getToolWidgets
otoolkit::ToolWidgets & getToolWidgets(void)
Definition
ToolRuntimeHandler.h:27
otoolkit::Tool
Definition
Tool.h:27
otoolkit::ToolWidgets
Definition
ToolWidgets.h:24
Tools
OToolkit
include
ToolRuntimeHandler.h
Generated by
1.10.0