22 m_CurrentWindow(nullptr),
29 Superclass::InitializeTimeGeometry();
34 m_ContourPath(other.m_ContourPath),
35 m_CurrentWindow(other.m_CurrentWindow),
36 m_BoundingBox(other.m_BoundingBox),
37 m_Vertices(other.m_Vertices),
38 m_Closed(other.m_Closed),
39 m_Selected(other.m_Selected),
40 m_Width(other.m_Width)
52 m_Vertices->InsertElement(m_Vertices->Size(), p);
54 idx.CastFrom(newPoint);
55 m_ContourPath->AddVertex(idx);
56 m_BoundingBox->SetPoints(m_Vertices);
64 if (m_Vertices->Size() == 0)
75 m_BoundingBox->ComputeBoundingBox();
77 mitkBounds[0] = tmp[0];
78 mitkBounds[1] = tmp[1];
79 mitkBounds[2] = tmp[2];
80 mitkBounds[3] = tmp[3];
81 mitkBounds[4] = tmp[4];
82 mitkBounds[5] = tmp[5];
86 GetTimeGeometry()->Update();
109 return m_ContourPath;
114 m_CurrentWindow = rw;
119 return m_CurrentWindow;
125 m_ContourPath->Initialize();
129 timeGeometry->Initialize(1);
130 SetTimeGeometry(timeGeometry);
135 return m_Vertices->Size();
151 Superclass::PrintSelf(os, indent);
153 os << indent <<
"Number of verticies: " << GetNumberOfPoints() << std::endl;
157 os << indent <<
"Verticies: " << std::endl;
160 while (pointsIt != end)
162 os << indent << indent << i <<
": " << pointsIt.Value() << std::endl;
virtual void SetRequestedRegionToLargestPossibleRegion() override
itk::SmartPointer< Self > Pointer
BoundingBoxType::PointsContainerIterator PointsContainerIterator
Base of all data objects.
PathPointer GetContourPath() const
void SetCurrentWindow(vtkRenderWindow *rw)
itk::PolyLineParametricPath< 3 > PathType
unsigned int GetNumberOfPoints() const
void Initialize() override
PathType::ContinuousIndexType ContinuousIndexType
void AddVertex(mitk::Point3D newPoint)
virtual bool RequestedRegionIsOutsideOfTheBufferedRegion() override
Stores vertices for drawing a contour.
itk::BoundingBox< unsigned long, 3, ScalarType, itk::VectorContainer< unsigned long, mitk::Point< ScalarType, 3 > > > BoundingBoxType
vtkRenderWindow * GetCurrentWindow() const
PointsContainerPointer GetPoints() const
BoundingBoxType::PointsContainer::Pointer PointsContainerPointer
void SetBounds(const BoundsArrayType &bounds)
Set the bounding box (in index/unit coordinates)
virtual void SetRequestedRegion(const itk::DataObject *data) override
void SetPoints(PointsContainerPointer points)
virtual void PrintSelf(std::ostream &os, itk::Indent indent) const override
virtual bool VerifyRequestedRegion() override
virtual void UpdateOutputInformation() override
BoundingBoxType::PointsContainer PointsContainer
BaseGeometry Describes the geometry of a data object.
BoundingBoxType::BoundsArrayType BoundsArrayType
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.