VTK
vtkOpenGL2ContextDevice2D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGL2ContextDevice2D.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 =========================================================================*/
15 
36 #ifndef vtkOpenGL2ContextDevice2D_h
37 #define vtkOpenGL2ContextDevice2D_h
38 
40 
43 {
44 public:
46  virtual void PrintSelf(ostream &os, vtkIndent indent);
47 
50 
52  static bool IsSupported(vtkViewport *viewport);
53 
55 
59  virtual void DrawPointSprites(vtkImageData *sprite, float *points, int n,
60  unsigned char* colors = 0, int nc_comps = 0);
62 
65  virtual void DrawImage(float p[2], float scale, vtkImageData *image);
66 
70  void DrawImage(const vtkRectf& pos, vtkImageData *image);
71 
75  virtual void ReleaseGraphicsResources(vtkWindow *window);
76 
77 protected:
80 
83 
84 private:
85  vtkOpenGL2ContextDevice2D(const vtkOpenGL2ContextDevice2D &); // Not implemented.
86  void operator=(const vtkOpenGL2ContextDevice2D &); // Not implemented.
87 };
88 
89 #endif //vtkOpenGL2ContextDevice2D_h
vtkOpenGL2ContextDevice2D
Class for drawing 2D primitives using OpenGL 2.
Definition: vtkOpenGL2ContextDevice2D.h:43
vtkgl::m
const GLfloat * m
Definition: vtkgl.h:18169
VTKRENDERINGCONTEXTOPENGL_EXPORT
#define VTKRENDERINGCONTEXTOPENGL_EXPORT
Definition: vtkRenderingContextOpenGLModule.h:15
vtkOpenGLContextDevice2D.h
vtkOpenGL2ContextDevice2D::New
static vtkOpenGL2ContextDevice2D * New()
vtkgl::scale
GLenum GLenum GLenum GLenum GLenum scale
Definition: vtkgl.h:15942
vtkOpenGL2ContextDevice2D::LoadExtensions
virtual bool LoadExtensions(vtkOpenGLExtensionManager *m)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::n
GLclampd n
Definition: vtkgl.h:14370
vtkOpenGL2ContextDevice2D::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *window)
vtkOpenGL2ContextDevice2D::~vtkOpenGL2ContextDevice2D
virtual ~vtkOpenGL2ContextDevice2D()
vtkgl::points
GLsizei const GLfloat * points
Definition: vtkgl.h:14786
vtkOpenGL2ContextDevice2D::DrawImage
void DrawImage(const vtkRectf &pos, vtkImageData *image)
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkOpenGL2ContextDevice2D::DrawImage
virtual void DrawImage(float p[2], float scale, vtkImageData *image)
vtkOpenGLExtensionManager
Interface class for querying and using OpenGL extensions.
vtkOpenGLContextDevice2D
Class for drawing 2D primitives using OpenGL 1.1+.
Definition: vtkOpenGLContextDevice2D.h:48
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkOpenGL2ContextDevice2D::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkOpenGL2ContextDevice2D::IsSupported
static bool IsSupported(vtkViewport *viewport)
vtkOpenGL2ContextDevice2D::DrawPointSprites
virtual void DrawPointSprites(vtkImageData *sprite, float *points, int n, unsigned char *colors=0, int nc_comps=0)
vtkOpenGL2ContextDevice2D::vtkOpenGL2ContextDevice2D
vtkOpenGL2ContextDevice2D()
vtkgl::p
GLfloat GLfloat p
Definition: vtkgl.h:15717
vtkRectf
Definition: vtkRect.h:97
vtkgl::image
GLenum GLsizei GLenum GLenum const GLvoid * image
Definition: vtkgl.h:11341