FAST
3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
|
Go to the documentation of this file.
3 #define NOMINMAX // Removes windows min and max macros
4 #define _USE_MATH_DEFINES
9 #define FAST_OBJECT(className) \
11 typedef std::shared_ptr<className> pointer; \
12 static std::shared_ptr<className> New() { \
13 std::shared_ptr<className> smartPtr(new className()); \
14 smartPtr->setPtr(smartPtr); \
18 virtual std::string getNameOfClass() const { \
19 return std::string(#className); \
21 static std::string getStaticNameOfClass() { \
22 return std::string(#className); \
25 void setPtr(className::pointer ptr) { \
48 std::weak_ptr<Object>
mPtr;
virtual ~Object()
Definition: Object.hpp:38
Definition: AffineTransformation.hpp:7
StreamingMode
Definition: Object.hpp:32
Definition: Object.hpp:34
std::weak_ptr< Object > mPtr
Definition: Object.hpp:48
Definition: Reporter.hpp:20
@ STREAMING_MODE_PROCESS_ALL_FRAMES
Definition: Object.hpp:32
static std::string getStaticNameOfClass()
Definition: Object.hpp:39
Definition: Reporter.hpp:16
std::shared_ptr< Object > pointer
Definition: Object.hpp:36
@ STREAMING_MODE_STORE_ALL_FRAMES
Definition: Object.hpp:32
@ STREAMING_MODE_NEWEST_FRAME_ONLY
Definition: Object.hpp:32