Commit 45d59acb authored by Francois Bertel's avatar Francois Bertel
Browse files

STYLE:Be more accurate about viewport coordinates. The range of coordinates...

STYLE:Be more accurate about viewport coordinates. The range of coordinates [-1,+1],[-1,+1],[nearz,farz] is for points located inside the frustum.
parent 8cdb52ef
......@@ -271,7 +271,8 @@ class VTK_RENDERING_EXPORT vtkCamera : public vtkObject
// coordinates to viewport coordinates. The 'aspect' is the
// width/height for the viewport, and the nearz and farz are the
// Z-buffer values that map to the near and far clipping planes.
// The viewport coordinates are in the range ([-1,+1],[-1,+1],[nearz,farz]).
// The viewport coordinates of a point located inside the frustum are in the
// range ([-1,+1],[-1,+1],[nearz,farz]).
virtual vtkMatrix4x4 *GetPerspectiveTransformMatrix(double aspect,
double nearz,
double farz);
......@@ -279,10 +280,11 @@ class VTK_RENDERING_EXPORT vtkCamera : public vtkObject
// Description:
// Return the concatenation of the ViewTransform and the
// PerspectiveTransform. This transform will convert world
// coordinates to view coordinates. The 'aspect' is the
// coordinates to viewport coordinates. The 'aspect' is the
// width/height for the viewport, and the nearz and farz are the
// Z-buffer values that map to the near and far clipping planes.
// The view coordinates are in the range ([-1,+1],[-1,+1],[nearz,farz]).
// The viewport coordinates of a point located inside the frustum are in the
// range ([-1,+1],[-1,+1],[nearz,farz]).
virtual vtkMatrix4x4 *GetCompositePerspectiveTransformMatrix(double aspect,
double nearz,
double farz);
......
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