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:
54 
56 
60  void PrintSelf(ostream& os, vtkIndent indent) 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) override;
88  int RenderVolumetricGeometry(vtkViewport *viewport) override;
90 
95 
100 
105  void ComputeMatrix() override;
106 
110  void ShallowCopy(vtkProp *prop) override;
111 
115  double *GetBounds() override;
116 
118 
122  void InitPathTraversal() override;
125 
126 protected:
128  ~vtkProp3DFollower() override;
129 
132 
133  //Internal matrices to avoid New/Delete for performance reasons
135 
136 private:
137  vtkProp3DFollower(const vtkProp3DFollower&) = delete;
138  void operator=(const vtkProp3DFollower&) = delete;
139 };
140 
141 #endif
vtkProp3DFollower::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkProp3DFollower::SetCamera
virtual void SetCamera(vtkCamera *)
Set/Get the camera to follow.
vtkProp3DFollower::GetNextPath
vtkAssemblyPath * GetNextPath() override
vtkProp3DFollower::RenderTranslucentPolygonalGeometry
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
vtkProp3D
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:47
vtkProp3DFollower::RenderVolumetricGeometry
int RenderVolumetricGeometry(vtkViewport *viewport) override
vtkProp3DFollower::HasTranslucentPolygonalGeometry
vtkTypeBool HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
vtkProp3DFollower
a vtkProp3D that always faces the camera
Definition: vtkProp3DFollower.h:48
vtkAssemblyPath
a list of nodes that form an assembly path
Definition: vtkAssemblyPath.h:45
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
vtkProp3DFollower::Camera
vtkCamera * Camera
Definition: vtkProp3DFollower.h:130
vtkProp3DFollower::SetProp3D
virtual void SetProp3D(vtkProp3D *prop)
Set/Get the vtkProp3D to control (i.e., face the camera).
vtkMapper
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:87
vtkProp3DFollower::Device
vtkProp3D * Device
Definition: vtkProp3DFollower.h:131
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:42
vtkCamera
a virtual camera for 3D rendering
Definition: vtkCamera.h:51
vtkProp3DFollower::New
static vtkProp3DFollower * New()
Creates a follower with no camera set.
vtkProp3DFollower::InitPathTraversal
void InitPathTraversal() override
Overload vtkProp's method for setting up assembly paths.
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:48
vtkProp3DFollower::vtkProp3DFollower
vtkProp3DFollower()
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:53
vtkProp3DFollower::ComputeMatrix
void ComputeMatrix() override
Generate the matrix based on ivars.
vtkProp3DFollower::GetBounds
double * GetBounds() override
Return the bounds of this vtkProp3D.
vtkProp3DFollower::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources associated with this vtkProp3DFollower.
vtkProp3DFollower::~vtkProp3DFollower
~vtkProp3DFollower() override
vtkProp3DFollower::RenderOpaqueGeometry
int RenderOpaqueGeometry(vtkViewport *viewport) override
This causes the actor to be rendered.
vtkProp3DFollower::ShallowCopy
void ShallowCopy(vtkProp *prop) override
Shallow copy of a follower.
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkProp3DFollower::GetProp3D
virtual vtkProp3D * GetProp3D()
vtkProp3DFollower::InternalMatrix
vtkMatrix4x4 * InternalMatrix
Definition: vtkProp3DFollower.h:134
vtkProp3D.h