13 #ifndef MITKPointSet_H_HEADER_INCLUDED 14 #define MITKPointSet_H_HEADER_INCLUDED 18 #include <itkDefaultDynamicMeshTraits.h> 80 itkFactorylessNewMacro(
Self);
87 static const unsigned int PointDimension = 3;
88 static const unsigned int MaxTopologicalDimension = 3;
124 MaxTopologicalDimension,
126 InterpolationWeightType,
129 typedef itk::Mesh<PointDataType, PointDimension, MeshTraits>
MeshType;
141 void Expand(
unsigned int timeSteps)
override;
144 void ExecuteOperation(
Operation *operation)
override;
147 virtual int GetSize(
unsigned int t = 0)
const;
149 virtual unsigned int GetPointSetSeriesSize()
const;
152 virtual DataType::Pointer GetPointSet(
int t = 0)
const;
154 PointsIterator Begin(
int t = 0);
156 PointsConstIterator Begin(
int t = 0)
const;
158 PointsIterator End(
int t = 0);
160 PointsConstIterator End(
int t = 0)
const;
165 PointsIterator GetMaxId(
int t = 0);
172 PointType GetPoint(PointIdentifier
id,
int t = 0)
const;
180 bool GetPointIfExists(PointIdentifier
id, PointType *point,
int t = 0)
const;
185 void SetPoint(PointIdentifier
id, PointType point,
int t = 0);
195 void InsertPoint(PointIdentifier
id, PointType point,
int t = 0);
205 PointIdentifier InsertPoint(PointType point,
int t = 0);
210 bool RemovePointIfExists(PointIdentifier
id,
int t = 0);
215 PointsIterator RemovePointAtEnd(
int t = 0);
222 bool SwapPointPosition(PointIdentifier
id,
bool moveUpwards,
int t = 0);
228 virtual int SearchSelectedPoint(
int t = 0)
const;
231 virtual bool IndexExists(
int position,
int t = 0)
const;
236 virtual bool GetSelectInfo(
int position,
int t = 0)
const;
238 virtual void SetSelectInfo(
int position,
bool selected,
int t = 0);
244 virtual int GetNumberOfSelected(
int t = 0)
const;
256 bool IsEmptyTimeStep(
unsigned int t)
const override;
259 void UpdateOutputInformation()
override;
260 void SetRequestedRegionToLargestPossibleRegion()
override;
261 bool RequestedRegionIsOutsideOfTheBufferedRegion()
override;
262 bool VerifyRequestedRegion()
override;
263 void SetRequestedRegion(
const itk::DataObject *data)
override;
275 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
277 void ClearData()
override;
279 void InitializeEmpty()
override;
282 bool SwapPointContents(PointIdentifier id1, PointIdentifier id2,
int t = 0);
318 bool checkGeometry =
true));
340 bool checkGeometry =
true);
DataType::PointsContainerIterator PointsIterator
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
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
#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