69 Superclass::MitkRender(renderer, type);
99 glGetIntegerv(GL_VIEWPORT, vp);
103 glMatrixMode(GL_PROJECTION);
107 glOrtho(vp[0], vp[2] + vp[0], vp[1], vp[3] + vp[1], -2000, 2000);
109 glMatrixMode(GL_MODELVIEW);
115 glPushAttrib(GL_DEPTH_BUFFER_BIT | GL_LIGHTING_BIT);
116 glDisable(GL_DEPTH_TEST);
117 glDisable(GL_LIGHTING);
120 glDisable(GL_TEXTURE_1D);
121 glDisable(GL_TEXTURE_2D);
134 glMatrixMode(GL_PROJECTION);
136 glMatrixMode(GL_MODELVIEW);
virtual void Update(BaseRenderer *renderer) override
Calls the time step of the input data for the specified renderer and checks whether the time step is ...
L * GetLocalStorage(mitk::BaseRenderer *forRenderer)
Retrieves a LocalStorage for a specific BaseRenderer.
virtual DataNode * GetDataNode() const override
Get the DataNode containing the data to map. Method only returns valid DataNode Pointer if the mapper...
virtual void SetDataNode(DataNode *node) override
Set the DataNode containing the data to map.
virtual void ApplyColorAndOpacityProperties(mitk::BaseRenderer *renderer, vtkActor *actor) override
Apply color and opacity properties read from the PropertyList. Called by mapper subclasses.
mitk::LocalStorageHandler< LocalStorage > m_LSH
The LocalStorageHandler holds all (three) LocalStorages for the three 2D render windows.
Organizes the rendering process.
static void Update(vtkPolyData *)
Internal class holding the mapper, actor, etc. for each of the 3 2D render windows.
VtkGLMapperWrapper(GLMapper::Pointer mitkGLMapper)
void Enable2DOpenGL(mitk::BaseRenderer *)
Enable2DOpenGL() and Disable2DOpenGL() are used to switch between 2D rendering (orthographic projecti...
void MitkRender(mitk::BaseRenderer *renderer, mitk::VtkPropRenderer::RenderType type) override
Determines which geometry should be rendered (opaque, translucent, volumetric, overlay) and calls the...
vtkSmartPointer< vtkGLMapperProp > m_GLMapperProp
virtual vtkProp * GetVtkProp(mitk::BaseRenderer *renderer) override
returns the a prop assembly
void Disable2DOpenGL()
Initialize the VtkPropRenderer.
virtual ~VtkGLMapperWrapper()
GLMapper::Pointer m_MitkGLMapper
Class for nodes of the DataTree.
virtual void GenerateDataForRenderer(mitk::BaseRenderer *renderer) override
Generate the data needed for rendering into renderer.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.