19 #include <vtkLinearTransform.h> 37 dataNode->GetVisibility(visible,
nullptr);
45 auto it = input->Begin();
47 auto end = input->End();
52 auto currentZValue = (*it)->GetVertexAt(0)->Coordinates[2];
53 double acceptedDeviationInMM = 5.0;
55 if (currentZValue - acceptedDeviationInMM < centerOfViewPointZ && currentZValue + acceptedDeviationInMM > centerOfViewPointZ){
61 if (input->GetSize() < 1)
91 Superclass::SetDefaultProperties(node, renderer, overwrite);
LocalStorageHandler< BaseLocalStorage > m_LSH
void MitkRender(mitk::BaseRenderer *renderer, mitk::VtkPropRenderer::RenderType type) override
L * GetLocalStorage(mitk::BaseRenderer *forRenderer)
Retrieves a LocalStorage for a specific BaseRenderer.
Base class for mapper specific rendering ressources.
ContourModelSetGLMapper2D()
virtual DataNode * GetDataNode() const
Get the DataNode containing the data to map. Method only returns valid DataNode Pointer if the mapper...
Organizes the rendering process.
~ContourModelSetGLMapper2D() override
virtual const PlaneGeometry * GetCurrentWorldPlaneGeometry()
Get the current 2D-worldgeometry (m_CurrentWorldPlaneGeometry) used for 2D-rendering.
Point3D GetCenter() const
Get the center of the bounding-box in mm.
BaseData * GetData() const
Get the data object (instance of BaseData, e.g., an Image) managed by this DataNode.
void AddProperty(const char *propertyKey, BaseProperty *property, const mitk::BaseRenderer *renderer=nullptr, bool overwrite=false)
Add the property (instance of BaseProperty) if it does not exist (or always ifoverwrite istrue) with ...
void DrawContour(mitk::ContourModel *contour, mitk::BaseRenderer *renderer)
void UpdateGenerateDataTime()
static void SetDefaultProperties(mitk::DataNode *node, mitk::BaseRenderer *renderer=nullptr, bool overwrite=false)
Class for nodes of the DataTree.