VTK  9.0.20200807
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 
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) override;
40 
44  void Render(vtkRenderer* ren, vtkMapper* mapper) override;
45 
46  virtual void GetKeyMatrices(vtkMatrix4x4*& WCVCMatrix, vtkMatrix3x3*& normalMatrix);
47 
62  static vtkInformationIntegerKey* GLDepthMaskOverride();
63 
64 protected:
66  ~vtkOpenGLActor() override;
67 
72 
73 private:
74  vtkOpenGLActor(const vtkOpenGLActor&) = delete;
75  void operator=(const vtkOpenGLActor&) = delete;
76 };
77 
78 #endif
vtkOpenGLActor::MCWCMatrix
vtkMatrix4x4 * MCWCMatrix
Definition: vtkOpenGLActor.h:68
vtkOpenGLActor::NormalTransform
vtkTransform * NormalTransform
Definition: vtkOpenGLActor.h:70
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:32
vtkTransform
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:54
vtkMatrix3x3
represent and manipulate 3x3 transformation matrices
Definition: vtkMatrix3x3.h:33
vtkActor::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkActor::New
static vtkActor * New()
Creates an actor with the following defaults: origin(0,0,0) position=(0,0,0) scale=(1,...
vtkMapper
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:81
vtkInformationIntegerKey
Key for integer values in vtkInformation.
Definition: vtkInformationIntegerKey.h:31
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:35
vtkOpenGLRenderer
OpenGL renderer.
Definition: vtkOpenGLRenderer.h:47
vtkActor.h
vtkOpenGLActor::NormalMatrix
vtkMatrix3x3 * NormalMatrix
Definition: vtkOpenGLActor.h:69
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:67
vtkOpenGLActor::KeyMatrixTime
vtkTimeStamp KeyMatrixTime
Definition: vtkOpenGLActor.h:71
vtkOpenGLActor
OpenGL actor.
Definition: vtkOpenGLActor.h:34
vtkActor::Render
virtual void Render(vtkRenderer *, vtkMapper *)
This causes the actor to be rendered.
Definition: vtkActor.h:87