VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Rendering/OpenGL2/vtkOpenGLActor.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkOpenGLActor.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 vtkOpenGLActor_h
00023 #define vtkOpenGLActor_h
00024 
00025 #include "vtkRenderingOpenGL2Module.h" // For export macro
00026 #include "vtkActor.h"
00027 
00028 class vtkOpenGLRenderer;
00029 class vtkMatrix4x4;
00030 class vtkMatrix3x3;
00031 
00032 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLActor : public vtkActor
00033 {
00034 public:
00035   static vtkOpenGLActor *New();
00036   vtkTypeMacro(vtkOpenGLActor, vtkActor);
00037   virtual void PrintSelf(ostream& os, vtkIndent indent);
00038 
00040   void Render(vtkRenderer *ren, vtkMapper *mapper);
00041 
00042   void GetKeyMatrices(vtkMatrix4x4 *&WCVCMatrix, vtkMatrix3x3 *&normalMatrix);
00043 
00047   virtual vtkIdType GetConvertedPickValue(vtkIdType idIn, int fieldassociation);
00048 
00049 protected:
00050   vtkOpenGLActor();
00051   ~vtkOpenGLActor();
00052 
00053   vtkMatrix4x4 *MCWCMatrix;
00054   vtkMatrix3x3 *NormalMatrix;
00055   vtkTransform *NormalTransform;
00056   vtkTimeStamp KeyMatrixTime;
00057 
00058 private:
00059   vtkOpenGLActor(const vtkOpenGLActor&);  // Not implemented.
00060   void operator=(const vtkOpenGLActor&);  // Not implemented.
00061 };
00062 
00063 #endif