VTK
vtkFollower.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkFollower.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 vtkFollower_h
38 #define vtkFollower_h
39 
40 #include "vtkRenderingCoreModule.h" // For export macro
41 #include "vtkActor.h"
42 
43 class vtkCamera;
44 
46 {
47  public:
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
52  static vtkFollower *New();
53 
55 
57  virtual void SetCamera(vtkCamera*);
60 
62 
65  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
67  virtual void Render(vtkRenderer *ren);
69 
72 
76 
80  virtual void ComputeMatrix();
81 
83  void ShallowCopy(vtkProp *prop);
84 
85 protected:
88 
91 
92 private:
93  vtkFollower(const vtkFollower&); // Not implemented.
94  void operator=(const vtkFollower&); // Not implemented.
95 
96  // hide the two parameter Render() method from the user and the compiler.
97  virtual void Render(vtkRenderer *, vtkMapper *) {}
98 
99  //Internal matrices to avoid New/Delete for performance reasons
100  vtkMatrix4x4 *InternalMatrix;
101 };
102 
103 #endif
vtkFollower::ComputeMatrix
virtual void ComputeMatrix()
vtkFollower
a subclass of actor that always faces the camera
Definition: vtkFollower.h:46
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkFollower::Render
virtual void Render(vtkRenderer *ren)
vtkFollower::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkFollower::SetCamera
virtual void SetCamera(vtkCamera *)
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkFollower::Device
vtkActor * Device
Definition: vtkFollower.h:90
vtkFollower::Camera
vtkCamera * Camera
Definition: vtkFollower.h:89
vtkFollower::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
vtkFollower::vtkFollower
vtkFollower()
vtkFollower::ShallowCopy
void ShallowCopy(vtkProp *prop)
vtkMapper
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:90
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:39
vtkRenderingCoreModule.h
vtkCamera
a virtual camera for 3D rendering
Definition: vtkCamera.h:49
vtkActor.h
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkFollower::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
vtkFollower::New
static vtkFollower * New()
vtkFollower::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
VTKRENDERINGCORE_EXPORT
#define VTKRENDERINGCORE_EXPORT
Definition: vtkRenderingCoreModule.h:15
vtkFollower::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
vtkFollower::~vtkFollower
~vtkFollower()
vtkActor::Render
virtual void Render(vtkRenderer *, vtkMapper *)
Definition: vtkActor.h:80