13 #ifndef MITKPointSet_H_HEADER_INCLUDED 14 #define MITKPointSet_H_HEADER_INCLUDED 18 #include <itkDefaultDynamicMeshTraits.h> 76 itkFactorylessNewMacro(
Self);
83 static const unsigned int PointDimension = 3;
84 static const unsigned int MaxTopologicalDimension = 3;
120 MaxTopologicalDimension,
122 InterpolationWeightType,
125 typedef itk::Mesh<PointDataType, PointDimension, MeshTraits>
MeshType;
137 void Expand(
unsigned int timeSteps)
override;
140 void ExecuteOperation(
Operation *operation)
override;
143 virtual int GetSize(
unsigned int t = 0)
const;
145 virtual unsigned int GetPointSetSeriesSize()
const;
148 virtual DataType::Pointer GetPointSet(
int t = 0)
const;
150 PointsIterator Begin(
int t = 0);
152 PointsConstIterator Begin(
int t = 0)
const;
154 PointsIterator End(
int t = 0);
156 PointsConstIterator End(
int t = 0)
const;
161 PointsIterator GetMaxId(
int t = 0);
168 PointType GetPoint(PointIdentifier
id,
int t = 0)
const;
176 bool GetPointIfExists(PointIdentifier
id, PointType *point,
int t = 0)
const;
181 void SetPoint(PointIdentifier
id, PointType point,
int t = 0);
191 void InsertPoint(PointIdentifier
id, PointType point,
int t = 0);
201 PointIdentifier InsertPoint(PointType point,
int t = 0);
206 bool RemovePointIfExists(PointIdentifier
id,
int t = 0);
211 PointsIterator RemovePointAtEnd(
int t = 0);
218 bool SwapPointPosition(PointIdentifier
id,
bool moveUpwards,
int t = 0);
224 virtual int SearchSelectedPoint(
int t = 0)
const;
227 virtual bool IndexExists(
int position,
int t = 0)
const;
232 virtual bool GetSelectInfo(
int position,
int t = 0)
const;
234 virtual void SetSelectInfo(
int position,
bool selected,
int t = 0);
240 virtual int GetNumberOfSelected(
int t = 0)
const;
253 bool IsEmptyTimeStep(
unsigned int t)
const override;
256 void UpdateOutputInformation()
override;
257 void SetRequestedRegionToLargestPossibleRegion()
override;
258 bool RequestedRegionIsOutsideOfTheBufferedRegion()
override;
259 bool VerifyRequestedRegion()
override;
260 void SetRequestedRegion(
const itk::DataObject *data)
override;
272 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
274 void ClearData()
override;
276 void InitializeEmpty()
override;
279 bool SwapPointContents(PointIdentifier id1, PointIdentifier id2,
int t = 0);
315 bool checkGeometry =
true));
337 bool checkGeometry =
true);
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
DataType::PointsContainerIterator PointsIterator
MITKCORE_EXPORT const ScalarType eps
DataType::PointDataContainer PointDataContainer
itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent)
Base of all data objects.
Base class of all Operation-classes.
bool m_CalculateBoundingBox
flag to indicate the right time to call SetBounds
mitk::ScalarType CoordinateType
DataCollection - Class to facilitate loading/accessing structured data.
struct for data of a point
virtual void OnPointSetChange()
SelectedLinesType::iterator SelectedLinesIter
mitk::PointSpecificationType pointSpec
DataType::PointsContainer::ConstIterator PointsConstIterator
PointSetSeries m_PointSetSeries
itk::Mesh< PointDataType, PointDimension, MeshTraits > MeshType
DataType::PointDataContainerIterator PointDataConstIterator
DataType::PointIdentifier PointIdentifier
MITKNEWMODULE_EXPORT bool Equal(mitk::ExampleDataStructure *leftHandSide, mitk::ExampleDataStructure *rightHandSide, mitk::ScalarType eps, bool verbose)
Returns true if the example data structures are considered equal.
std::vector< unsigned int > SelectedLinesType
cellDataType, that stores all indexes of the lines, that are selected e.g.: points A...
Data structure which stores a set of points.
#define mitkClassMacro(className, SuperClassName)
SelectedLinesType selectedLines
#define mitkCloneMacro(classname)
DataType::PointsContainer PointsContainer
mitk::ScalarType InterpolationWeightType
DataType::PointsContainer::Pointer m_EmptyPointsContainer
itk::DefaultDynamicMeshTraits< PointDataType, PointDimension, MaxTopologicalDimension, CoordinateType, InterpolationWeightType, CellDataType > MeshTraits
std::vector< DataType::Pointer > PointSetSeries
DataType::PointDataContainerIterator PointDataIterator
PointSpecificationType
enumeration of the type a point can be