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 
39 #include "vtkRenderingContext2DModule.h" // For export macro
41 
44 {
45 public:
47  virtual void PrintSelf(ostream &os, vtkIndent indent);
48 
51 
53  static bool IsSupported(vtkViewport *viewport);
54 
56 
60  virtual void DrawPointSprites(vtkImageData *sprite, float *points, int n,
61  unsigned char* colors = 0, int nc_comps = 0);
63 
66  virtual void DrawImage(float p[2], float scale, vtkImageData *image);
67 
71  void DrawImage(const vtkRectf& pos, vtkImageData *image);
72 
76  virtual void ReleaseGraphicsResources(vtkWindow *window);
77 
78 protected:
80  virtual ~vtkOpenGL2ContextDevice2D();
81 
84 
85 private:
86  vtkOpenGL2ContextDevice2D(const vtkOpenGL2ContextDevice2D &); // Not implemented.
87  void operator=(const vtkOpenGL2ContextDevice2D &); // Not implemented.
88 };
89 
90 #endif //__vtkOpenGL2ContextDevice2D_h
virtual bool LoadExtensions(vtkOpenGLExtensionManager *m)
GLenum GLsizei GLenum GLenum const GLvoid * image
Definition: vtkgl.h:11341
abstract specification for Viewports
Definition: vtkViewport.h:46
virtual void ReleaseGraphicsResources(vtkWindow *window)
GLenum GLenum GLenum GLenum GLenum scale
Definition: vtkgl.h:15942
Class for drawing 2D primitives using OpenGL 1.1+.
static vtkOpenGLContextDevice2D * New()
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
window superclass for vtkRenderWindow
Definition: vtkWindow.h:33
#define VTKRENDERINGCONTEXT2D_EXPORT
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
const GLfloat * m
Definition: vtkgl.h:18169
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
Interface class for querying and using OpenGL extensions.
GLsizei const GLfloat * points
Definition: vtkgl.h:14786
virtual void DrawPointSprites(vtkImageData *sprite, float *points, int n, unsigned char *colors=0, int nc_comps=0)
GLclampd n
Definition: vtkgl.h:14370
Class for drawing 2D primitives using OpenGL 2.
virtual void DrawImage(float p[2], float scale, vtkImageData *image)
GLfloat GLfloat p
Definition: vtkgl.h:15717