18 m_CurrentWindow(nullptr),
25 Superclass::InitializeTimeGeometry();
30 m_ContourPath(other.m_ContourPath),
31 m_CurrentWindow(other.m_CurrentWindow),
32 m_BoundingBox(other.m_BoundingBox),
33 m_Vertices(other.m_Vertices),
34 m_Closed(other.m_Closed),
35 m_Selected(other.m_Selected),
36 m_Width(other.m_Width)
46 BoundingBoxType::PointType p;
48 m_Vertices->InsertElement(m_Vertices->Size(), p);
50 idx.CastFrom(newPoint);
51 m_ContourPath->AddVertex(idx);
52 m_BoundingBox->SetPoints(m_Vertices);
60 if (m_Vertices->Size() == 0)
71 m_BoundingBox->ComputeBoundingBox();
73 mitkBounds[0] = tmp[0];
74 mitkBounds[1] = tmp[1];
75 mitkBounds[2] = tmp[2];
76 mitkBounds[3] = tmp[3];
77 mitkBounds[4] = tmp[4];
78 mitkBounds[5] = tmp[5];
105 return m_ContourPath;
110 m_CurrentWindow = rw;
115 return m_CurrentWindow;
120 m_ContourPath = PathType::New();
121 m_ContourPath->Initialize();
122 m_BoundingBox = BoundingBoxType::New();
123 m_Vertices = BoundingBoxType::PointsContainer::New();
125 timeGeometry->Initialize(1);
131 return m_Vertices->Size();
147 Superclass::PrintSelf(os, indent);
153 os << indent <<
"Verticies: " << std::endl;
156 while (pointsIt != end)
158 os << indent << indent << i <<
": " << pointsIt.Value() << std::endl;
void SetRequestedRegionToLargestPossibleRegion() override
BoundingBoxType::PointsContainerIterator PointsContainerIterator
Base of all data objects.
unsigned int GetNumberOfPoints() const
void SetCurrentWindow(vtkRenderWindow *rw)
virtual void SetTimeGeometry(TimeGeometry *geometry)
Set the TimeGeometry of the data, which will be referenced (not copied!).
itk::PolyLineParametricPath< 3 > PathType
void Initialize() override
PathType::ContinuousIndexType ContinuousIndexType
void AddVertex(mitk::Point3D newPoint)
bool RequestedRegionIsOutsideOfTheBufferedRegion() override
Stores vertices for drawing a contour.
PointsContainerPointer GetPoints() const
const mitk::TimeGeometry * GetTimeGeometry() const
Return the TimeGeometry of the data as const pointer.
itk::BoundingBox< unsigned long, 3, ScalarType, itk::VectorContainer< unsigned long, mitk::Point< ScalarType, 3 > > > BoundingBoxType
BoundingBoxType::PointsContainer::Pointer PointsContainerPointer
void SetBounds(const BoundsArrayType &bounds)
Set the bounding box (in index/unit coordinates)
void SetRequestedRegion(const itk::DataObject *data) override
void SetPoints(PointsContainerPointer points)
void PrintSelf(std::ostream &os, itk::Indent indent) const override
bool VerifyRequestedRegion() override
PathPointer GetContourPath() const
void Update()
Updates the geometry.
mitk::BaseGeometry * GetGeometry(int t=0) const
Return the geometry, which is a TimeGeometry, of the data as non-const pointer.
void UpdateOutputInformation() override
vtkRenderWindow * GetCurrentWindow() const
BoundingBoxType::PointsContainer PointsContainer
BaseGeometry Describes the geometry of a data object.
BoundingBoxType::BoundsArrayType BoundsArrayType