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 "vtkActor.h"
41 
42 class vtkCamera;
43 
45 {
46  public:
47  vtkTypeMacro(vtkFollower,vtkActor);
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51  static vtkFollower *New();
52 
54 
56  virtual void SetCamera(vtkCamera*);
57  vtkGetObjectMacro(Camera,vtkCamera);
59 
61 
64  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
65  virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport);
66  virtual void Render(vtkRenderer *ren);
68 
70  virtual int HasTranslucentPolygonalGeometry();
71 
74  virtual void ReleaseGraphicsResources(vtkWindow*);
75 
79  virtual void ComputeMatrix();
80 
82  void ShallowCopy(vtkProp *prop);
83 
84 protected:
85  vtkFollower();
86  ~vtkFollower();
87 
90 
91 private:
92  vtkFollower(const vtkFollower&); // Not implemented.
93  void operator=(const vtkFollower&); // Not implemented.
94 
95  // hide the two parameter Render() method from the user and the compiler.
96  virtual void Render(vtkRenderer *, vtkMapper *) {};
97 
98  //Internal matrices to avoid New/Delete for performance reasons
99  vtkMatrix4x4 *InternalMatrix;
100 
101 };
102 
103 #endif
104 
105 
106 
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:49
virtual void Render(vtkRenderer *, vtkMapper *)
Definition: vtkActor.h:79
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:49
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:37
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
abstract specification for Viewports
Definition: vtkViewport.h:45
abstract specification for renderers
Definition: vtkRenderer.h:69
vtkCamera * Camera
Definition: vtkFollower.h:88
static vtkActor * New()
vtkActor * Device
Definition: vtkFollower.h:89
void PrintSelf(ostream &os, vtkIndent indent)
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
virtual void ComputeMatrix()
a simple class to control print indentation
Definition: vtkIndent.h:37
a virtual camera for 3D rendering
Definition: vtkCamera.h:47
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:85
#define VTK_RENDERING_EXPORT
a subclass of actor that always faces the camera
Definition: vtkFollower.h:44
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
virtual int HasTranslucentPolygonalGeometry()
void ReleaseGraphicsResources(vtkWindow *)
void ShallowCopy(vtkProp *prop)