VTK
vtkOpenGLActor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLActor.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 =========================================================================*/
23 #ifndef vtkOpenGLActor_h
24 #define vtkOpenGLActor_h
25 
26 #include "vtkRenderingOpenGL2Module.h" // For export macro
27 #include "vtkActor.h"
28 
30 class vtkOpenGLRenderer;
31 class vtkMatrix4x4;
32 class vtkMatrix3x3;
33 
34 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLActor : public vtkActor
35 {
36 public:
37  static vtkOpenGLActor *New();
38  vtkTypeMacro(vtkOpenGLActor, vtkActor);
39  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
40 
44  void Render(vtkRenderer *ren, vtkMapper *mapper);
45 
46  void GetKeyMatrices(vtkMatrix4x4 *&WCVCMatrix, vtkMatrix3x3 *&normalMatrix);
47 
62  static vtkInformationIntegerKey* GLDepthMaskOverride();
63 
64 protected:
66  ~vtkOpenGLActor();
67 
72 
73 private:
74  vtkOpenGLActor(const vtkOpenGLActor&) VTK_DELETE_FUNCTION;
75  void operator=(const vtkOpenGLActor&) VTK_DELETE_FUNCTION;
76 };
77 
78 #endif
virtual void Render(vtkRenderer *, vtkMapper *)
This causes the actor to be rendered.
Definition: vtkActor.h:90
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:41
record modification and/or execution time
Definition: vtkTimeStamp.h:35
abstract specification for renderers
Definition: vtkRenderer.h:63
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:60
static vtkActor * New()
Creates an actor with the following defaults: origin(0,0,0) position=(0,0,0) scale=(1,1,1) visibility=1 pickable=1 dragable=1 orientation=(0,0,0).
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkTransform * NormalTransform
OpenGL actor.
a simple class to control print indentation
Definition: vtkIndent.h:39
Key for integer values in vtkInformation.
vtkMatrix3x3 * NormalMatrix
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:91
vtkTimeStamp KeyMatrixTime
vtkMatrix4x4 * MCWCMatrix
OpenGL renderer.
represent and manipulate 3x3 transformation matrices
Definition: vtkMatrix3x3.h:36