VTK
vtkOpenGLProjectedPolyDataRayBounder.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLProjectedPolyDataRayBounder.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 =========================================================================*/
32 #ifndef __vtkOpenGLProjectedPolyDataRayBounder_h
33 #define __vtkOpenGLProjectedPolyDataRayBounder_h
34 
35 #include "vtkRenderingOpenGLModule.h" // For export macro
36 #include "vtkProjectedPolyDataRayBounder.h"
37 #ifdef __APPLE__
38 # include <OpenGL/gl.h> //Needed for GLUint
39 #else
40 # include <GL/gl.h> //Needed for GLUint
41 #endif
42 
43 class vtkWindow;
44 
45 class VTKRENDERINGOPENGL_EXPORT vtkOpenGLProjectedPolyDataRayBounder : public vtkProjectedPolyDataRayBounder
46 {
47 public:
48  vtkTypeMacro(vtkOpenGLProjectedPolyDataRayBounder,vtkProjectedPolyDataRayBounder);
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
54 
58  void ReleaseGraphicsResources(vtkWindow *);
59 
60 
61 protected:
64 
65  GLuint DisplayList;
67 
69  void Build( vtkPolyData *pdata );
70 
72  float *Draw( vtkRenderer *ren, vtkMatrix4x4 *matrix );
73 
74 private:
76  void operator=(const vtkOpenGLProjectedPolyDataRayBounder&); // Not implemented.
77 };
78 
79 #endif