VTK
vtkProp3DFollower.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkProp3DFollower.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 =========================================================================*/
34 #ifndef vtkProp3DFollower_h
35 #define vtkProp3DFollower_h
36 
37 #include "vtkRenderingCoreModule.h" // For export macro
38 #include "vtkProp3D.h"
39 
40 class vtkCamera;
41 class vtkMapper;
42 
43 
44 class VTKRENDERINGCORE_EXPORT vtkProp3DFollower : public vtkProp3D
45 {
46  public:
50  static vtkProp3DFollower *New();
51 
53 
57  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
59 
61 
64  virtual void SetProp3D(vtkProp3D *prop);
65  virtual vtkProp3D *GetProp3D();
67 
69 
73  virtual void SetCamera(vtkCamera*);
74  vtkGetObjectMacro(Camera, vtkCamera);
76 
78 
83  int RenderOpaqueGeometry(vtkViewport *viewport) VTK_OVERRIDE;
84  int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) VTK_OVERRIDE;
85  int RenderVolumetricGeometry(vtkViewport *viewport) VTK_OVERRIDE;
87 
91  int HasTranslucentPolygonalGeometry() VTK_OVERRIDE;
92 
96  void ReleaseGraphicsResources(vtkWindow*) VTK_OVERRIDE;
97 
102  void ComputeMatrix() VTK_OVERRIDE;
103 
107  void ShallowCopy(vtkProp *prop) VTK_OVERRIDE;
108 
112  double *GetBounds() VTK_OVERRIDE;
113 
115 
119  void InitPathTraversal() VTK_OVERRIDE;
120  vtkAssemblyPath *GetNextPath() VTK_OVERRIDE;
122 
123 protected:
125  ~vtkProp3DFollower() VTK_OVERRIDE;
126 
127  vtkCamera *Camera;
128  vtkProp3D *Device;
129 
130  //Internal matrices to avoid New/Delete for performance reasons
131  vtkMatrix4x4 *InternalMatrix;
132 
133 private:
134  vtkProp3DFollower(const vtkProp3DFollower&) VTK_DELETE_FUNCTION;
135  void operator=(const vtkProp3DFollower&) VTK_DELETE_FUNCTION;
136 };
137 
138 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:44
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:35
abstract specification for Viewports
Definition: vtkViewport.h:44
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:216
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:288
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:43
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
virtual int RenderVolumetricGeometry(vtkViewport *)
Definition: vtkProp.h:220
a list of nodes that form an assembly path
a simple class to control print indentation
Definition: vtkIndent.h:33
a virtual camera for 3D rendering
Definition: vtkCamera.h:44
a vtkProp3D that always faces the camera
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:85
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:218
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...