VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Rendering/OpenGL2/vtkOpenGLProperty.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkOpenGLProperty.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 =========================================================================*/
00022 #ifndef vtkOpenGLProperty_h
00023 #define vtkOpenGLProperty_h
00024 
00025 #include "vtkRenderingOpenGL2Module.h" // For export macro
00026 #include "vtkProperty.h"
00027 
00028 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLProperty : public vtkProperty
00029 {
00030 public:
00031   static vtkOpenGLProperty *New();
00032   vtkTypeMacro(vtkOpenGLProperty, vtkProperty);
00033   virtual void PrintSelf(ostream& os, vtkIndent indent);
00034 
00036   void Render(vtkActor *a, vtkRenderer *ren);
00037 
00039   void BackfaceRender(vtkActor *a, vtkRenderer *ren);
00040 
00042 
00044   virtual void PostRender(vtkActor *a,
00045                           vtkRenderer *r);
00047 
00051   virtual void ReleaseGraphicsResources(vtkWindow *win);
00052 
00053 protected:
00054   vtkOpenGLProperty();
00055   ~vtkOpenGLProperty();
00056 
00059   bool RenderTextures(vtkActor* actor, vtkRenderer* renderer);
00060 
00061 private:
00062   vtkOpenGLProperty(const vtkOpenGLProperty&);  // Not implemented.
00063   void operator=(const vtkOpenGLProperty&);  // Not implemented.
00064 };
00065 
00066 #endif