VTK  9.2.20230322
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 "vtkActor.h"
27 #include "vtkRenderingOpenGL2Module.h" // For export macro
28 
29 VTK_ABI_NAMESPACE_BEGIN
31 class vtkOpenGLRenderer;
32 class vtkMatrix4x4;
33 class vtkMatrix3x3;
34 
35 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLActor : public vtkActor
36 {
37 public:
38  static vtkOpenGLActor* New();
39  vtkTypeMacro(vtkOpenGLActor, vtkActor);
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
45  void Render(vtkRenderer* ren, vtkMapper* mapper) override;
46 
47  virtual void GetKeyMatrices(vtkMatrix4x4*& WCVCMatrix, vtkMatrix3x3*& normalMatrix);
48 
64 
65 protected:
67  ~vtkOpenGLActor() override;
68 
73 
74 private:
75  vtkOpenGLActor(const vtkOpenGLActor&) = delete;
76  void operator=(const vtkOpenGLActor&) = delete;
77 };
78 
79 VTK_ABI_NAMESPACE_END
80 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:162
a simple class to control print indentation
Definition: vtkIndent.h:120
Key for integer values in vtkInformation.
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:178
represent and manipulate 3x3 transformation matrices
Definition: vtkMatrix3x3.h:67
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:152
OpenGL actor.
vtkMatrix4x4 * MCWCMatrix
static vtkOpenGLActor * New()
virtual void GetKeyMatrices(vtkMatrix4x4 *&WCVCMatrix, vtkMatrix3x3 *&normalMatrix)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMatrix3x3 * NormalMatrix
~vtkOpenGLActor() override
vtkTransform * NormalTransform
vtkTimeStamp KeyMatrixTime
void Render(vtkRenderer *ren, vtkMapper *mapper) override
Actual actor render method.
static vtkInformationIntegerKey * GLDepthMaskOverride()
If this key is set in GetPropertyKeys(), the glDepthMask will be adjusted prior to rendering transluc...
OpenGL renderer.
abstract specification for renderers
Definition: vtkRenderer.h:183
record modification and/or execution time
Definition: vtkTimeStamp.h:56
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:171