VTK  9.3.0
vtkOpenGLActor.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkOpenGLActor_h
12 #define vtkOpenGLActor_h
13 
14 #include "vtkActor.h"
15 #include "vtkRenderingOpenGL2Module.h" // For export macro
16 
17 VTK_ABI_NAMESPACE_BEGIN
19 class vtkOpenGLRenderer;
20 class vtkMatrix4x4;
21 class vtkMatrix3x3;
22 
23 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLActor : public vtkActor
24 {
25 public:
26  static vtkOpenGLActor* New();
27  vtkTypeMacro(vtkOpenGLActor, vtkActor);
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
33  void Render(vtkRenderer* ren, vtkMapper* mapper) override;
34 
35  virtual void GetKeyMatrices(vtkMatrix4x4*& WCVCMatrix, vtkMatrix3x3*& normalMatrix);
36 
52 
53 protected:
55  ~vtkOpenGLActor() override;
56 
61 
62 private:
63  vtkOpenGLActor(const vtkOpenGLActor&) = delete;
64  void operator=(const vtkOpenGLActor&) = delete;
65 };
66 
67 VTK_ABI_NAMESPACE_END
68 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:41
a simple class to control print indentation
Definition: vtkIndent.h:29
Key for integer values in vtkInformation.
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:77
represent and manipulate 3x3 transformation matrices
Definition: vtkMatrix3x3.h:26
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:31
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:62
record modification and/or execution time
Definition: vtkTimeStamp.h:25
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:50