Commit 6423612f authored by Ken Martin's avatar Ken Martin
Browse files

fix to user matrix type

parent 2ff33fe4
......@@ -25,7 +25,7 @@
#include <math.h>
vtkCxxRevisionMacro(vtkCamera, "1.104");
vtkCxxRevisionMacro(vtkCamera, "1.104.2.1");
//----------------------------------------------------------------------------
// Needed when we don't use the vtkStandardNewMacro.
......@@ -145,7 +145,7 @@ void vtkCamera::SetPosition(double x, double y, double z)
this->Modified();
}
void vtkCamera::SetUserTransform(vtkLinearTransform *transform)
void vtkCamera::SetUserTransform(vtkHomogeneousTransform *transform)
{
if (transform == this->UserTransform)
{
......
......@@ -35,7 +35,7 @@ class vtkMatrix4x4;
class vtkPerspectiveTransform;
class vtkRenderer;
class vtkTransform;
class vtkLinearTransform;
class vtkHomogeneousTransform;
class VTK_RENDERING_EXPORT vtkCamera : public vtkObject
{
......@@ -315,8 +315,8 @@ class VTK_RENDERING_EXPORT vtkCamera : public vtkObject
// In addition to the instance variables such as position and orientation,
// you can add an additional transformation for your own use. This
// transformation is concatenated to the camera's PerspectiveTransform
void SetUserTransform(vtkLinearTransform *transform);
vtkGetObjectMacro(UserTransform,vtkLinearTransform);
void SetUserTransform(vtkHomogeneousTransform *transform);
vtkGetObjectMacro(UserTransform,vtkHomogeneousTransform);
// Description:
// This method causes the camera to set up whatever is required for
......@@ -404,7 +404,7 @@ protected:
double ViewPlaneNormal[3];
double ViewShear[3];
int UseHorizontalViewAngle;
vtkLinearTransform *UserTransform;
vtkHomogeneousTransform *UserTransform;
vtkTransform *ViewTransform;
vtkPerspectiveTransform *PerspectiveTransform;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment