VTK  9.7.1
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;
24 class VTKRENDERINGOPENGL2_EXPORT VTK_MARSHALAUTO vtkOpenGLActor : public vtkActor
25 {
26 public:
27  static vtkOpenGLActor* New();
29  static vtkOverrideAttribute* CreateOverrideAttributes();
30  vtkTypeMacro(vtkOpenGLActor, vtkActor);
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
36  void Render(vtkRenderer* ren, vtkMapper* mapper) override;
37 
38  virtual void GetKeyMatrices(vtkMatrix4x4*& WCVCMatrix, vtkMatrix3x3*& normalMatrix);
39 
56  static vtkInformationIntegerKey* GLDepthMaskOverride();
57 
58 protected:
60  ~vtkOpenGLActor() override;
61 
66 
67 private:
68  vtkOpenGLActor(const vtkOpenGLActor&) = delete;
69  void operator=(const vtkOpenGLActor&) = delete;
70 };
71 
72 #define vtkOpenGLActor_OVERRIDE_ATTRIBUTES vtkOpenGLActor::CreateOverrideAttributes()
73 VTK_ABI_NAMESPACE_END
74 #endif
Attribute for vtkObjectFactory overrides.
virtual void Render(vtkRenderer *, vtkMapper *)
This causes the actor to be rendered.
Definition: vtkActor.h:83
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:41
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:31
record modification and/or execution time
Definition: vtkTimeStamp.h:24
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract specification for renderers
Definition: vtkRenderer.h:63
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:50
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).
vtkTransform * NormalTransform
OpenGL actor.
a simple class to control print indentation
Definition: vtkIndent.h:28
Key for integer values in vtkInformation.
vtkMatrix3x3 * NormalMatrix
#define VTK_NEWINSTANCE
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:77
vtkTimeStamp KeyMatrixTime
vtkMatrix4x4 * MCWCMatrix
#define VTK_MARSHALAUTO
OpenGL renderer.
represent and manipulate 3x3 transformation matrices
Definition: vtkMatrix3x3.h:26