/usr/include/vtk-6.3/vtkCameraRepresentation.h is in libvtk6-dev 6.3.0+dfsg1-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkCameraRepresentation.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkCameraRepresentation - represent the vtkCameraWidget
// .SECTION Description
// This class provides support for interactively saving a series of camera
// views into an interpolated path (using vtkCameraInterpolator). The class
// typically works in conjunction with vtkCameraWidget. To use this class
// simply specify the camera to interpolate and use the methods
// AddCameraToPath(), AnimatePath(), and InitializePath() to add a new camera
// view, animate the current views, and initialize the interpolation.
// .SECTION See Also
// vtkCameraWidget vtkCameraInterpolator
#ifndef vtkCameraRepresentation_h
#define vtkCameraRepresentation_h
#include "vtkInteractionWidgetsModule.h" // For export macro
#include "vtkBorderRepresentation.h"
class vtkRenderer;
class vtkRenderWindowInteractor;
class vtkCamera;
class vtkCameraInterpolator;
class vtkPoints;
class vtkPolyData;
class vtkTransformPolyDataFilter;
class vtkPolyDataMapper2D;
class vtkProperty2D;
class vtkActor2D;
class VTKINTERACTIONWIDGETS_EXPORT vtkCameraRepresentation : public vtkBorderRepresentation
{
public:
// Description:
// Instantiate this class.
static vtkCameraRepresentation *New();
// Description:
// Standard VTK class methods.
vtkTypeMacro(vtkCameraRepresentation,vtkBorderRepresentation);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Specify the camera to interpolate. This must be specified by
// the user.
void SetCamera(vtkCamera *camera);
vtkGetObjectMacro(Camera,vtkCamera);
// Description:
// Get the vtkCameraInterpolator used to interpolate and save the
// sequence of camera views. If not defined, one is created
// automatically. Note that you can access this object to set
// the interpolation type (linear, spline) and other instance
// variables.
void SetInterpolator(vtkCameraInterpolator *camInt);
vtkGetObjectMacro(Interpolator,vtkCameraInterpolator);
// Description:
// Set the number of frames to generate when playback is initiated.
vtkSetClampMacro(NumberOfFrames,int,1,VTK_INT_MAX);
vtkGetMacro(NumberOfFrames,int);
// Description:
// By obtaining this property you can specify the properties of the
// representation.
vtkGetObjectMacro(Property,vtkProperty2D);
// Description:
// These methods are used to create interpolated camera paths. The
// AddCameraToPath() method adds the view defined by the current camera
// (via SetCamera()) to the interpolated camera path. AnimatePath()
// interpolates NumberOfFrames along the current path. InitializePath()
// resets the interpolated path to its initial, empty configuration.
void AddCameraToPath();
void AnimatePath(vtkRenderWindowInteractor *rwi);
void InitializePath();
// Description:
// Satisfy the superclasses' API.
virtual void BuildRepresentation();
virtual void GetSize(double size[2])
{size[0]=6.0; size[1]=2.0;}
// Description:
// These methods are necessary to make this representation behave as
// a vtkProp.
virtual void GetActors2D(vtkPropCollection*);
virtual void ReleaseGraphicsResources(vtkWindow*);
virtual int RenderOverlay(vtkViewport*);
virtual int RenderOpaqueGeometry(vtkViewport*);
virtual int RenderTranslucentPolygonalGeometry(vtkViewport*);
virtual int HasTranslucentPolygonalGeometry();
protected:
vtkCameraRepresentation();
~vtkCameraRepresentation();
// the camera and the interpolator
vtkCamera *Camera;
vtkCameraInterpolator *Interpolator;
int NumberOfFrames;
double CurrentTime;
// representation of the camera
vtkPoints *Points;
vtkPolyData *PolyData;
vtkTransformPolyDataFilter *TransformFilter;
vtkPolyDataMapper2D *Mapper;
vtkProperty2D *Property;
vtkActor2D *Actor;
private:
vtkCameraRepresentation(const vtkCameraRepresentation&); //Not implemented
void operator=(const vtkCameraRepresentation&); //Not implemented
};
#endif
|