105 return (prop == myProp);
112 auto *prop =
dynamic_cast<vtkProp3D *
>(
GetVtkProp(renderer));
114 prop->SetUserTransform(vtktransform);
119 float rgba[4] = {1.0f, 1.0f, 1.0f, 1.0f};
123 node->
GetColor(rgba, renderer,
"color");
125 node->
GetOpacity(rgba[3], renderer,
"opacity");
127 double drgba[4] = {rgba[0], rgba[1], rgba[2], rgba[3]};
128 actor->GetProperty()->SetColor(drgba);
129 actor->GetProperty()->SetOpacity(drgba[3]);
virtual void MitkRenderTranslucentGeometry(BaseRenderer *renderer)
Checks visiblity and renders transparent geometry.
virtual bool HasVtkProp(const vtkProp *prop, BaseRenderer *renderer)
Returns true if this mapper owns the specified vtkProp for the given BaseRenderer.
vtkRenderer * GetVtkRenderer() const
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.
void ApplyColorAndOpacityProperties(mitk::BaseRenderer *renderer, vtkActor *actor) override
Apply color and opacity properties read from the PropertyList. Called by mapper subclasses.
void MitkRender(mitk::BaseRenderer *renderer, mitk::VtkPropRenderer::RenderType type) override
Determines which geometry should be rendered (opaque, translucent, volumetric, overlay) and calls the...
bool GetOpacity(float &opacity, const mitk::BaseRenderer *renderer, const char *propertyKey="opacity") const
Convenience access method for opacity properties (instances of FloatProperty)
virtual bool IsVtkBased() const override
Returns whether this is an vtk-based mapper.
virtual void MitkRenderVolumetricGeometry(BaseRenderer *renderer)
Checks visibility and renders volumes.
bool GetColor(float rgb[3], const mitk::BaseRenderer *renderer=nullptr, const char *propertyKey="color") const
Convenience access method for color properties (instances of ColorProperty)
virtual bool GetVisibility(bool &visible, BaseRenderer *renderer, const char *name="visible") const
Convenience access method for visibility properties (instances of BoolProperty)
virtual void MitkRenderOverlay(BaseRenderer *renderer)
Checks visibility and renders the overlay.
virtual vtkProp * GetVtkProp(mitk::BaseRenderer *renderer)=0
bool GetVisibility(bool &visible, const mitk::BaseRenderer *renderer, const char *propertyKey="visible") const
Convenience access method for visibility properties (instances of BoolProperty with property-key "vis...
vtkLinearTransform * GetVtkTransform(int t=0) const
Get the transformation applied prior to displaying the data as a vtkTransform.
virtual void UpdateVtkTransform(mitk::BaseRenderer *renderer)
Set the vtkTransform of the m_Prop3D for the current time step of renderer.
int GetTimestep() const
Returns the current time step as calculated from the renderer.
virtual void MitkRenderOpaqueGeometry(BaseRenderer *renderer)
Checks visibility and renders untransparent geometry.
Class for nodes of the DataTree.