17 #ifndef MITKPointSet_H_HEADER_INCLUDED
18 #define MITKPointSet_H_HEADER_INCLUDED
22 #include <itkDefaultDynamicMeshTraits.h>
84 itkFactorylessNewMacro(
Self) itkCloneMacro(
Self)
89 static const
unsigned int PointDimension = 3;
90 static const
unsigned int MaxTopologicalDimension = 3;
101 bool operator==(
const PointDataType &other)
const;
126 MaxTopologicalDimension,
131 typedef itk::Mesh<PointDataType, PointDimension, MeshTraits>
MeshType;
143 virtual void Expand(
unsigned int timeSteps)
override;
146 virtual void ExecuteOperation(
Operation *operation)
override;
149 virtual int GetSize(
unsigned int t = 0)
const;
151 virtual unsigned int GetPointSetSeriesSize()
const;
156 PointsIterator Begin(
int t = 0);
158 PointsConstIterator Begin(
int t = 0)
const;
160 PointsIterator End(
int t = 0);
162 PointsConstIterator End(
int t = 0)
const;
167 PointsIterator GetMaxId(
int t = 0);
174 PointType GetPoint(PointIdentifier
id,
int t = 0)
const;
182 bool GetPointIfExists(PointIdentifier
id, PointType *point,
int t = 0)
const;
187 void SetPoint(PointIdentifier
id, PointType point,
int t = 0);
197 void InsertPoint(PointIdentifier
id, PointType point,
int t = 0);
207 PointIdentifier InsertPoint(PointType point,
int t = 0);
212 bool RemovePointIfExists(PointIdentifier
id,
int t = 0);
217 PointsIterator RemovePointAtEnd(
int t = 0);
224 bool SwapPointPosition(PointIdentifier
id,
bool moveUpwards,
int t = 0);
230 virtual int SearchSelectedPoint(
int t = 0)
const;
233 virtual bool IndexExists(
int position,
int t = 0)
const;
238 virtual bool GetSelectInfo(
int position,
int t = 0)
const;
240 virtual void SetSelectInfo(
int position,
bool selected,
int t = 0);
246 virtual int GetNumberOfSelected(
int t = 0)
const;
258 virtual bool IsEmptyTimeStep(
unsigned int t)
const override;
261 virtual void UpdateOutputInformation()
override;
262 virtual void SetRequestedRegionToLargestPossibleRegion()
override;
263 virtual bool RequestedRegionIsOutsideOfTheBufferedRegion()
override;
264 virtual bool VerifyRequestedRegion()
override;
265 virtual void SetRequestedRegion(
const itk::DataObject *data)
override;
277 virtual void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
279 virtual void ClearData()
override;
281 virtual void InitializeEmpty()
override;
284 bool SwapPointContents(PointIdentifier id1, PointIdentifier id2,
int t = 0);
320 bool checkGeometry =
true));
342 bool checkGeometry =
true);
DataType::PointsContainerIterator PointsIterator
itk::SmartPointer< Self > Pointer
DataType::PointDataContainer PointDataContainer
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
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
DataType::PointDataContainerIterator PointDataConstIterator
DataType::PointIdentifier PointIdentifier
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. Superclass of mitk::Mesh.
#define mitkClassMacro(className, SuperClassName)
SelectedLinesType selectedLines
itkEventMacro(ContourModelEvent, itk::AnyEvent)
#define mitkCloneMacro(classname)
DataType::PointsContainer PointsContainer
mitk::ScalarType InterpolationWeightType
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.
DataType::PointsContainer::Pointer m_EmptyPointsContainer
MITKCORE_EXPORT const ScalarType eps
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