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:
53  static vtkProp3DFollower *New();
54 
56 
60  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
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  int RenderOpaqueGeometry(vtkViewport *viewport) VTK_OVERRIDE;
87  int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) VTK_OVERRIDE;
88  int RenderVolumetricGeometry(vtkViewport *viewport) VTK_OVERRIDE;
90 
94  int HasTranslucentPolygonalGeometry() VTK_OVERRIDE;
95 
99  void ReleaseGraphicsResources(vtkWindow*) VTK_OVERRIDE;
100 
105  void ComputeMatrix() VTK_OVERRIDE;
106 
110  void ShallowCopy(vtkProp *prop) VTK_OVERRIDE;
111 
115  double *GetBounds() VTK_OVERRIDE;
116 
118 
122  void InitPathTraversal() VTK_OVERRIDE;
123  vtkAssemblyPath *GetNextPath() VTK_OVERRIDE;
125 
126 protected:
128  ~vtkProp3DFollower() VTK_OVERRIDE;
129 
130  vtkCamera *Camera;
131  vtkProp3D *Device;
132 
133  //Internal matrices to avoid New/Delete for performance reasons
134  vtkMatrix4x4 *InternalMatrix;
135 
136 private:
137  vtkProp3DFollower(const vtkProp3DFollower&) VTK_DELETE_FUNCTION;
138  void operator=(const vtkProp3DFollower&) VTK_DELETE_FUNCTION;
139 };
140 
141 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:41
abstract specification for Viewports
Definition: vtkViewport.h:47
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:222
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:294
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:46
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
virtual int RenderVolumetricGeometry(vtkViewport *)
Definition: vtkProp.h:226
a list of nodes that form an assembly path
a simple class to control print indentation
Definition: vtkIndent.h:39
a virtual camera for 3D rendering
Definition: vtkCamera.h:50
a vtkProp3D that always faces the camera
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:91
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:224
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...