VTK  9.3.20240418
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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
17 
18 VTK_ABI_NAMESPACE_BEGIN
20 class vtkOpenGLRenderer;
21 class vtkMatrix4x4;
22 class vtkMatrix3x3;
23 
24 class VTKRENDERINGOPENGL2_EXPORT VTK_MARSHALAUTO vtkOpenGLActor : public vtkActor
25 {
26 public:
27  static vtkOpenGLActor* New();
28  vtkTypeMacro(vtkOpenGLActor, vtkActor);
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
34  void Render(vtkRenderer* ren, vtkMapper* mapper) override;
35 
36  virtual void GetKeyMatrices(vtkMatrix4x4*& WCVCMatrix, vtkMatrix3x3*& normalMatrix);
37 
53 
54 protected:
56  ~vtkOpenGLActor() override;
57 
62 
63 private:
64  vtkOpenGLActor(const vtkOpenGLActor&) = delete;
65  void operator=(const vtkOpenGLActor&) = delete;
66 };
67 
68 VTK_ABI_NAMESPACE_END
69 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:151
a simple class to control print indentation
Definition: vtkIndent.h:108
Key for integer values in vtkInformation.
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:137
represent and manipulate 3x3 transformation matrices
Definition: vtkMatrix3x3.h:56
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:141
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:172
record modification and/or execution time
Definition: vtkTimeStamp.h:44
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:160
#define VTK_MARSHALAUTO