32 bool mitk::ExampleInteractor::CheckPoint(
const InteractionEvent *interactionEvent)
37 if (positionEvent !=
nullptr)
41 int retVal = m_PointSet->SearchPoint(point, epsilon);
55 if (positionEvent !=
nullptr)
59 m_PointSet->InsertPoint(m_NumberOfPoints, point, 0);
64 if (m_NumberOfPoints != 0 && m_NumberOfPoints >= m_MaximalNumberOfPoints)
91 m_MaximalNumberOfPoints = 0;
103 std::string maxNumber;
104 properties->GetStringProperty(
"NumberOfPoints", maxNumber);
105 m_MaximalNumberOfPoints = atoi(maxNumber.c_str());
virtual ~ExampleInteractor()
Super class for all position events.
virtual void SetData(mitk::BaseData *baseData)
Set the data object (instance of BaseData, e.g., an Image) managed by this DataNode.
Point3D GetPositionInWorld() const
virtual void ConfigurationChanged()
DataNode * GetDataNode() const
BaseRenderer * GetSender() const
void SetProperty(const std::string &propertyKey, BaseProperty *property, const std::string &contextName="", bool fallBackOnDefaultContext=false) override
Add new or change existent property.
static RenderingManager * GetInstance()
Represents an action, that is executed after a certain event (in statemachine-mechanism) TODO: implem...
virtual void ConnectActionsAndFunctions()
#define CONNECT_CONDITION(a, f)
Dispatcher::Pointer GetDispatcher() const
Returns the Dispatcher which handles Events for this BaseRenderer.
static Pointer New(BaseRenderer *_arga, DataInteractor *_argb, const std::string &_argc)
#define CONNECT_FUNCTION(a, f)
void RequestUpdateAll(RequestType type=REQUEST_UPDATE_ALL)