Open CASCADE Technology
6.5.4
|
Creates and modifies a perspective
See the methods of the class View
#include <V3d_PerspectiveView.hxx>
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 Viewer 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 |
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 | ||
) |
Handle_V3d_PerspectiveView V3d_PerspectiveView::Copy | ( | ) | const |
void V3d_PerspectiveView::SetPerspective | ( | const Quantity_PlaneAngle | Angle, |
const Standard_Real | UVRatio, | ||
const Standard_Real | ZNear, | ||
const Standard_Real | ZFar | ||
) |