VTK
dox/Rendering/OpenGL/vtkOpenGLHardwareSelector.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkOpenGLHardwareSelector.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00026 #ifndef __vtkOpenGLHardwareSelector_h
00027 #define __vtkOpenGLHardwareSelector_h
00028 
00029 #include "vtkRenderingOpenGLModule.h" // For export macro
00030 #include "vtkHardwareSelector.h"
00031 
00032 class VTKRENDERINGOPENGL_EXPORT vtkOpenGLHardwareSelector : public vtkHardwareSelector
00033 {
00034 public:
00035   static vtkOpenGLHardwareSelector* New();
00036   vtkTypeMacro(vtkOpenGLHardwareSelector, vtkHardwareSelector);
00037   void PrintSelf(ostream& os, vtkIndent indent);
00038 
00040 
00042   virtual void BeginRenderProp()
00043     { this->vtkHardwareSelector::BeginRenderProp(); }
00045 
00046   virtual void EndRenderProp()
00047     { this->vtkHardwareSelector::EndRenderProp(); }
00048 
00049 protected:
00050   vtkOpenGLHardwareSelector();
00051   virtual ~vtkOpenGLHardwareSelector();
00052 
00053   // Called internally before and after each prop is rendered
00054   // for device specific configuration/preparation etc.
00055   virtual void BeginRenderProp(vtkRenderWindow *);
00056   virtual void EndRenderProp(vtkRenderWindow *);
00057 
00058   // for internal state
00059   class vtkInternals;
00060   vtkInternals* Internals;
00061 
00062 private:
00063   vtkOpenGLHardwareSelector(const vtkOpenGLHardwareSelector&); // Not implemented.
00064   void operator=(const vtkOpenGLHardwareSelector&); // Not implemented.
00065 };
00066 
00067 #endif