VTK
vtkOpenGLImageMapper.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkOpenGLImageMapper.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
30#ifndef vtkOpenGLImageMapper_h
31#define vtkOpenGLImageMapper_h
32
33#include "vtkRenderingOpenGL2Module.h" // For export macro
34#include "vtkImageMapper.h"
35
36class vtkActor2D;
38
39class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLImageMapper : public vtkImageMapper
40{
41public:
44 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
45
49 void RenderOverlay(vtkViewport* viewport, vtkActor2D* actor)
50 { this->RenderStart(viewport, actor); }
51
57 vtkActor2D* actor);
58
63 void DrawPixels(vtkViewport *vp, int width, int height, int numComponents, void *data);
64
70
71protected:
74
76
77private:
78 vtkOpenGLImageMapper(const vtkOpenGLImageMapper&) VTK_DELETE_FUNCTION;
79 void operator=(const vtkOpenGLImageMapper&) VTK_DELETE_FUNCTION;
80};
81
82#endif
a actor that draws 2D data
Definition: vtkActor2D.h:46
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
2D image display
void RenderStart(vtkViewport *viewport, vtkActor2D *actor)
Draw the image to the screen.
a simple class to control print indentation
Definition: vtkIndent.h:40
2D image display support for OpenGL
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void RenderOverlay(vtkViewport *viewport, vtkActor2D *actor)
Handle the render method.
void RenderData(vtkViewport *viewport, vtkImageData *data, vtkActor2D *actor)
Called by the Render function in vtkImageMapper.
static vtkOpenGLImageMapper * New()
vtkTexturedActor2D * Actor
void DrawPixels(vtkViewport *vp, int width, int height, int numComponents, void *data)
draw the data once it has been converted to uchar, windowed leveled used internally by the templated ...
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper, the image texture in particula...
actor that draws 2D data with texture support
abstract specification for Viewports
Definition: vtkViewport.h:48
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
@ height
Definition: vtkX3D.h:254
@ data
Definition: vtkX3D.h:315