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:
48  vtkTypeMacro(vtkFollower,vtkActor);
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
52  static vtkFollower *New();
53 
55 
57  virtual void SetCamera(vtkCamera*);
58  vtkGetObjectMacro(Camera, vtkCamera);
60 
62 
65  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
66  virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport);
67  virtual void Render(vtkRenderer *ren);
69 
71  virtual int HasTranslucentPolygonalGeometry();
72 
75  virtual void ReleaseGraphicsResources(vtkWindow*);
76 
80  virtual void ComputeMatrix();
81 
83  void ShallowCopy(vtkProp *prop);
84 
85 protected:
86  vtkFollower();
87  ~vtkFollower();
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
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:52
virtual void Render(vtkRenderer *, vtkMapper *)
Definition: vtkActor.h:80
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:38
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
abstract specification for Viewports
Definition: vtkViewport.h:46
abstract specification for renderers
Definition: vtkRenderer.h:62
vtkCamera * Camera
Definition: vtkFollower.h:89
static vtkActor * New()
vtkActor * Device
Definition: vtkFollower.h:90
void PrintSelf(ostream &os, vtkIndent indent)
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
virtual void ComputeMatrix()
a simple class to control print indentation
Definition: vtkIndent.h:38
a virtual camera for 3D rendering
Definition: vtkCamera.h:49
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:89
a subclass of actor that always faces the camera
Definition: vtkFollower.h:45
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
virtual int HasTranslucentPolygonalGeometry()
#define VTKRENDERINGCORE_EXPORT
void ReleaseGraphicsResources(vtkWindow *)
void ShallowCopy(vtkProp *prop)