OpenTwin
0.1
OpenTwin
Loading...
Searching...
No Matches
GraphicsItem.hpp
Go to the documentation of this file.
1
4
// ###########################################################################################################################################################################################################################################################################################################################
5
6
#pragma once
7
8
// OpenTwin header
9
#include "
OTCore/Logger.h
"
10
11
template
<
class
T>
12
T*
ot::GraphicsItem::getItemConfiguration
(
void
) {
13
T* ret =
dynamic_cast<
T*
>
(m_config);
14
OTAssertNullptr
(ret);
15
return
ret;
16
}
17
18
template
<
class
T>
19
const
T*
ot::GraphicsItem::getItemConfiguration
(
void
)
const
{
20
T* ret =
dynamic_cast<
T*
>
(m_config);
21
OTAssertNullptr
(ret);
22
return
ret;
23
}
Logger.h
OpenTwin Logging system.
OTAssertNullptr
#define OTAssertNullptr(___ptr)
Check if the provided pointer is not a nullptr.
Definition
OTAssert.h:19
ot::GraphicsItem::getItemConfiguration
T * getItemConfiguration(void)
Returns the configuration for the current item. The configuration may be modified....
Definition
GraphicsItem.hpp:12
Libraries
OTWidgets
include
OTWidgets
GraphicsItem.hpp
Generated by
1.10.0