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 =========================================================================*/
36 #ifndef __vtkProp3DFollower_h
37 #define __vtkProp3DFollower_h
38 
39 #include "vtkProp3D.h"
40 
41 class vtkCamera;
42 class vtkMapper;
43 
44 
46 {
47  public:
49  static vtkProp3DFollower *New();
50 
52 
54  void PrintSelf(ostream& os, vtkIndent indent);
56 
58 
59  virtual void SetProp3D(vtkProp3D *prop);
60  virtual vtkProp3D *GetProp3D();
62 
64 
66  virtual void SetCamera(vtkCamera*);
67  vtkGetObjectMacro(Camera,vtkCamera);
69 
71 
74  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
75  virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport);
76  virtual int RenderVolumetricGeometry(vtkViewport *viewport);
78 
80  virtual int HasTranslucentPolygonalGeometry();
81 
84  virtual void ReleaseGraphicsResources(vtkWindow*);
85 
89  virtual void ComputeMatrix();
90 
92  void ShallowCopy(vtkProp *prop);
93 
95  virtual double *GetBounds();
96 
98 
100  void InitPathTraversal();
101  virtual vtkAssemblyPath *GetNextPath();
103 
104 protected:
107 
110 
111 private:
112  vtkProp3DFollower(const vtkProp3DFollower&); // Not implemented.
113  void operator=(const vtkProp3DFollower&); // Not implemented.
114 
115  //Internal matrices to avoid New/Delete for performance reasons
116  vtkMatrix4x4 *InternalMatrix;
117 
118 };
119 
120 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:49
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:37
abstract specification for Viewports
Definition: vtkViewport.h:45
virtual int RenderOpaqueGeometry(vtkViewport *)
Definition: vtkProp.h:171
virtual int HasTranslucentPolygonalGeometry()
Definition: vtkProp.h:230
virtual vtkAssemblyPath * GetNextPath()
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:41
void InitPathTraversal()
virtual void ReleaseGraphicsResources(vtkWindow *)
Definition: vtkProp.h:236
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
virtual int RenderVolumetricGeometry(vtkViewport *)
Definition: vtkProp.h:173
void ShallowCopy(vtkProp *prop)
a list of nodes that form an assembly path
virtual void ComputeMatrix()
a simple class to control print indentation
Definition: vtkIndent.h:37
void PrintSelf(ostream &os, vtkIndent indent)
a virtual camera for 3D rendering
Definition: vtkCamera.h:47
a vtkProp3D that always faces the camera
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:85
#define VTK_RENDERING_EXPORT
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:172
virtual double * GetBounds()=0
static vtkObject * New()