MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkUSNavigationTargetUpdateFilter.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#ifndef mitkUSNavigationTargetUpdateFilter_h
14#define mitkUSNavigationTargetUpdateFilter_h
15
16#include "itkObjectFactory.h"
17#include "mitkCommon.h"
18#include "mitkNumericTypes.h"
19#include "mitkDataStorage.h"
20
21namespace itk {
22 template<class T> class SmartPointer;
23}
24
25class vtkPolyData;
26template<class T> class vtkSmartPointer;
27
28namespace mitk {
29class DataNode;
30class LookupTableProperty;
31class BaseGeometry;
32
47class USNavigationTargetUpdateFilter : public itk::Object
48{
49public:
53
59
66 bool SetNumberOfTargets(unsigned int numberOfTargets);
67
74 void SetOptimalAngle(double optimalAngle);
75
79 double GetOptimalAngle();
80
85 void SetScalarArrayIdentifier(std::string scalarArrayIdentifier);
86
94 void SetUseMaximumScore(bool useMaximumScore);
95
104 void SetControlNode(unsigned int id, itk::SmartPointer<DataNode> controlNode);
105
109 void RemovePositionOfTarget(unsigned int id);
110
114 void Reset();
115
116protected:
119
120 void UpdateTargetScores();
121
124
126
127 unsigned int m_NumberOfTargets;
131
132 std::vector<itk::SmartPointer<DataNode> > m_ControlNodesVector;
133};
134} // namespace mitk
135
136#endif
Calculates a score for target placement for every vertex of a given surface. The scores are calculate...
bool SetNumberOfTargets(unsigned int numberOfTargets)
Setter for the number of targets to be placed on the target surface. The optimal angle for placing th...
void Reset()
Removes all target positions from the filter and resets the scores.
void RemovePositionOfTarget(unsigned int id)
Removes the position of the target with the current id from the filter.
void SetOptimalAngle(double optimalAngle)
Setter for the optimal angle between to targets on the target surface. This value overwrites the valu...
mitkClassMacroItkParent(USNavigationTargetUpdateFilter, itk::Object)
void SetUseMaximumScore(bool useMaximumScore)
Set whether the maximum score or the minimum score between the targets should be used....
void SetControlNode(unsigned int id, itk::SmartPointer< DataNode > controlNode)
Sets the origin of the given node for the filter. This origin is the position of an already placed ta...
itk::SmartPointer< mitk::BaseGeometry > GetGeometryOfTarget()
void SetScalarArrayIdentifier(std::string scalarArrayIdentifier)
Sets the identifier for the vtkFloatArray of scores. This array is stored as scalars of the vtkPolyDa...
std::vector< itk::SmartPointer< DataNode > > m_ControlNodesVector
void SetTargetStructure(itk::SmartPointer< DataNode > targetStructure)
Set the target surface for which the scores should be calculated.
IGT Exceptions.