Open CASCADE Technology 6.6.0
Public Member Functions
V3d_PerspectiveView Class Reference

Creates and modifies a perspective
See the methods of the class View

#include <V3d_PerspectiveView.hxx>

Inheritance diagram for V3d_PerspectiveView:
Inheritance graph
[legend]

Public Member Functions

 V3d_PerspectiveView (const Handle< V3d_Viewer > &VM)
 Defines a perspective view in a viewer VM.
The default angle of opening is given
by the viewer.

 V3d_PerspectiveView (const Handle< V3d_Viewer > &VM, const Handle< V3d_OrthographicView > &V)
 Creates a perspective view from the parameters
of an orthographic view.
The parameters of the original view are duplicated
in the resulting view (Projection,Mapping,Context) .
The view thus created must be activated in a new window.
The default angle of opening is given
by the viewer.

 V3d_PerspectiveView (const Handle< V3d_Viewer > &VM, const Handle< V3d_PerspectiveView > &V)
 Creates one perspective view from another.
The parameters of the original view are duplicated
in the resulting view (Projection,Mapping,Context) .
The view thus created must be activated in a new window.

Handle_V3d_PerspectiveView Copy () const
void SetAngle (const Quantity_PlaneAngle Angle)
 Modifies the angle of opening of the perspective in RADIANS.
The projection window is resized according to the
formula :
TAN(Angle/2) = Size/Length
Size expresses the smallest dimension of the window.
Length expresses the focal length.
//! Warning! raises BadValue from V3d
if the opening angle is <= 0 or >= PI

Quantity_PlaneAngle Angle () const
 Returns the value of the angle of opening.

void SetPerspective (const Quantity_PlaneAngle Angle, const Standard_Real UVRatio, const Standard_Real ZNear, const Standard_Real ZFar)
 Modifies the viewing perspective volume by given
angle of opening of the perspective in RADIANS,
aspect ratio of window width to its height and
near and far clipping planes


Constructor & Destructor Documentation

V3d_PerspectiveView::V3d_PerspectiveView ( const Handle< V3d_Viewer > &  VM)
V3d_PerspectiveView::V3d_PerspectiveView ( const Handle< V3d_Viewer > &  VM,
const Handle< V3d_OrthographicView > &  V 
)
V3d_PerspectiveView::V3d_PerspectiveView ( const Handle< V3d_Viewer > &  VM,
const Handle< V3d_PerspectiveView > &  V 
)

Member Function Documentation

Quantity_PlaneAngle V3d_PerspectiveView::Angle ( ) const
Handle_V3d_PerspectiveView V3d_PerspectiveView::Copy ( ) const
void V3d_PerspectiveView::SetAngle ( const Quantity_PlaneAngle  Angle)
void V3d_PerspectiveView::SetPerspective ( const Quantity_PlaneAngle  Angle,
const Standard_Real  UVRatio,
const Standard_Real  ZNear,
const Standard_Real  ZFar 
)

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines