21 mitk::SimulationVtkMapper2D::LocalStorage::LocalStorage()
22 : m_Actor(vtkSmartPointer<vtkActor>::
New())
26 mitk::SimulationVtkMapper2D::LocalStorage::~LocalStorage()
35 Superclass::SetDefaultProperties(node, renderer, overwrite);
39 mitk::SimulationVtkMapper2D::SimulationVtkMapper2D()
43 mitk::SimulationVtkMapper2D::~SimulationVtkMapper2D()
53 DataNode* dataNode = this->GetDataNode();
60 if (simulation == NULL)
63 LocalStorage* localStorage = m_LocalStorageHandler.GetLocalStorage(renderer);
66 dataNode->
GetBoolProperty(
"Simulation.Visual.2D Rendering", enabled, renderer);
70 localStorage->m_Actor->SetMapper(NULL);
74 if (localStorage->m_Mapper == NULL)
77 localStorage->m_Mapper->SetSimulation(simulation);
80 if (localStorage->m_Actor->GetMapper() == NULL)
81 localStorage->m_Actor->SetMapper(localStorage->m_Mapper);
86 return m_LocalStorageHandler.GetLocalStorage(renderer)->m_Actor;
void GenerateDataForRenderer(BaseRenderer *renderer) override
Generate the data needed for rendering into renderer.
void ApplyColorAndOpacityProperties(BaseRenderer *, vtkActor *) override
Apply color and opacity properties read from the PropertyList. Called by mapper subclasses.
Organizes the rendering process.
vtkProp * GetVtkProp(BaseRenderer *renderer) override
bool GetBoolProperty(const char *propertyKey, bool &boolValue, const mitk::BaseRenderer *renderer=nullptr) const
Convenience access method for bool properties (instances of BoolProperty)
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 ...
static void SetDefaultProperties(DataNode *node, BaseRenderer *renderer=NULL, bool overwrite=false)
Class for nodes of the DataTree.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.