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 =========================================================================*/
37 #ifndef vtkProp3DFollower_h
38 #define vtkProp3DFollower_h
39 
40 #include "vtkRenderingCoreModule.h" // For export macro
41 #include "vtkProp3D.h"
42 
43 class vtkCamera;
44 class vtkMapper;
45 
46 
47 class VTKRENDERINGCORE_EXPORT vtkProp3DFollower : public vtkProp3D
48 {
49  public:
54 
56 
60  void PrintSelf(ostream& os, vtkIndent indent);
62 
64 
67  virtual void SetProp3D(vtkProp3D *prop);
68  virtual vtkProp3D *GetProp3D();
70 
72 
76  virtual void SetCamera(vtkCamera*);
77  vtkGetObjectMacro(Camera, vtkCamera);
79 
81 
86  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
88  virtual int RenderVolumetricGeometry(vtkViewport *viewport);
90 
95 
100 
105  virtual void ComputeMatrix();
106 
110  void ShallowCopy(vtkProp *prop);
111 
115  virtual double *GetBounds();
116 
118 
125 
126 protected:
129 
132 
133  //Internal matrices to avoid New/Delete for performance reasons
135 
136 private:
137  vtkProp3DFollower(const vtkProp3DFollower&) VTK_DELETE_FUNCTION;
138  void operator=(const vtkProp3DFollower&) VTK_DELETE_FUNCTION;
139 };
140 
141 #endif
a list of nodes that form an assembly path
a virtual camera for 3D rendering
Definition: vtkCamera.h:51
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:92
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:42
a vtkProp3D that always faces the camera
static vtkProp3DFollower * New()
Creates a follower with no camera set.
virtual double * GetBounds()
Return the bounds of this vtkProp3D.
virtual vtkAssemblyPath * GetNextPath()
virtual void ComputeMatrix()
Generate the matrix based on ivars.
void InitPathTraversal()
Overload vtkProp's method for setting up assembly paths.
virtual vtkProp3D * GetProp3D()
virtual void SetProp3D(vtkProp3D *prop)
Set/Get the vtkProp3D to control (i.e., face the camera).
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void SetCamera(vtkCamera *)
Set/Get the camera to follow.
vtkMatrix4x4 * InternalMatrix
void ShallowCopy(vtkProp *prop)
Shallow copy of a follower.
virtual int HasTranslucentPolygonalGeometry()
Does this prop have some translucent polygonal geometry?
virtual int RenderVolumetricGeometry(vtkViewport *viewport)
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
This causes the actor to be rendered.
virtual void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources associated with this vtkProp3DFollower.
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:47
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
abstract specification for Viewports
Definition: vtkViewport.h:48
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35