16 #ifndef _mitkContourElement_H_
17 #define _mitkContourElement_H_
43 itkFactorylessNewMacro(Self) itkCloneMacro(Self)
53 : IsControlPoint(other.IsControlPoint), Coordinates(other.Coordinates)
80 virtual VertexIterator
IteratorBegin() {
return this->m_Vertices->begin(); }
83 virtual VertexIterator
IteratorEnd() {
return this->m_Vertices->end(); }
86 virtual int GetSize() {
return this->m_Vertices->size(); }
93 virtual void AddVertex(
mitk::Point3D &point,
bool isControlPoint);
98 virtual void AddVertex(VertexType &vertex);
104 virtual void AddVertexAtFront(
mitk::Point3D &point,
bool isControlPoint);
109 virtual void AddVertexAtFront(VertexType &vertex);
116 virtual void InsertVertexAtIndex(
mitk::Point3D &point,
bool isControlPoint,
int index);
122 virtual void SetVertexAt(
int pointId,
const mitk::Point3D &point);
128 virtual void SetVertexAt(
int pointId,
const VertexType *vertex);
133 virtual VertexType *GetVertexAt(
int index);
145 virtual int GetIndex(
const VertexType *vertex);
149 VertexListType *GetVertexList();
157 virtual bool IsClosed();
168 virtual void Close();
178 virtual void SetClosed(
bool isClosed);
190 virtual bool RemoveVertex(
const VertexType *vertex);
195 virtual bool RemoveVertexAt(
int index);
205 virtual void Clear();
219 VertexListType *GetControlVertices();
225 void RedistributeControlVertices(
const VertexType *vertex,
int period);
239 #endif // _mitkContourElement_H_
std::deque< VertexType * > VertexListType
mitk::Point3D Coordinates
Coordinates in 3D space.
ContourModelVertex VertexType
Represents a contour in 3D space. A ContourElement is consisting of linked vertices implicitely defin...
#define MITKCONTOURMODEL_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
bool IsControlPoint
Treat point special.
VertexListType::const_iterator ConstVertexIterator
virtual ConstVertexIterator ConstIteratorBegin()
Return a const iterator a the front.
#define mitkClassMacroItkParent(className, SuperClassName)
ContourModelVertex(const ContourModelVertex &other)
ContourModelVertex(mitk::Point3D &point, bool active=false)
#define mitkCloneMacro(classname)
virtual VertexIterator IteratorBegin()
Return an iterator a the front.
MITKCORE_EXPORT const ScalarType eps
VertexListType::iterator VertexIterator
virtual ConstVertexIterator ConstIteratorEnd()
Return a const iterator a the end.
virtual VertexIterator IteratorEnd()
Return an iterator a the end.
Represents a single vertex of contour.
virtual int GetSize()
Returns the number of contained vertices.
VertexListType * m_Vertices