23 #include <vtkLinearTransform.h>
38 GetDataNode()->GetVisibility(visible, renderer,
"visible");
44 bool updateNeccesary =
true;
49 ApplyColorAndOpacityProperties(renderer);
55 while (contourIt != contourVec.end())
58 vtkLinearTransform *transform = GetDataNode()->GetVtkTransform();
66 glLineWidth(nextContour->GetWidth());
68 if (nextContour->GetClosed())
70 glBegin(GL_LINE_LOOP);
74 glBegin(GL_LINE_STRIP);
89 while (pointsIt != points->End())
91 point = pointsIt.Value();
94 transform->TransformPoint(vtkp, vtkp);
99 if (diff.GetSquaredNorm() < 1.0)
103 glVertex2f(pt2d[0], pt2d[1]);
BoundingBoxType::PointsContainerIterator PointsContainerIterator
const mitk::ContourSet * GetInput(void)
ContourVectorType::iterator ContourIterator
Organizes the rendering process.
virtual const PlaneGeometry * GetCurrentWorldPlaneGeometry()
Get the current 2D-worldgeometry (m_CurrentWorldPlaneGeometry) used for 2D-rendering.
virtual void Paint(mitk::BaseRenderer *renderer) override
void WorldToDisplay(const Point3D &worldIndex, Point2D &displayPoint) const
This method converts a 3D world index to the display point using the geometry of the renderWindow...
void vtk2itk(const Tin &in, Tout &out)
virtual ~ContourSetMapper2D()
std::map< unsigned long, Contour::Pointer > ContourVectorType
BoundingBoxType::PointsContainer::Pointer PointsContainerPointer
virtual bool Project(const mitk::Point3D &pt3d_mm, mitk::Point3D &projectedPt3d_mm) const
Project a 3D point given in mm (pt3d_mm) onto the 2D geometry. The result is a 3D point in mm (projec...
void itk2vtk(const Tin &in, Tout &out)
itk::SmartPointer< Self > Pointer