// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _V3d_PerspectiveView_HeaderFile #define _V3d_PerspectiveView_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_V3d_PerspectiveView_HeaderFile #include #endif #ifndef _V3d_View_HeaderFile #include #endif #ifndef _Handle_V3d_Viewer_HeaderFile #include #endif #ifndef _Handle_V3d_OrthographicView_HeaderFile #include #endif #ifndef _Quantity_PlaneAngle_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif class Viewer_BadValue; class V3d_Viewer; class V3d_OrthographicView; //! Creates and modifies a perspective
//! See the methods of the class View
class V3d_PerspectiveView : public V3d_View { public: //! Defines a perspective view in a viewer VM.
//! The default angle of opening is given
//! by the viewer.
Standard_EXPORT V3d_PerspectiveView(const Handle(V3d_Viewer)& VM); //! 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.
Standard_EXPORT V3d_PerspectiveView(const Handle(V3d_Viewer)& VM,const Handle(V3d_OrthographicView)& 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.
Standard_EXPORT V3d_PerspectiveView(const Handle(V3d_Viewer)& VM,const Handle(V3d_PerspectiveView)& V); Standard_EXPORT Handle_V3d_PerspectiveView Copy() const; //! 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
Standard_EXPORT void SetAngle(const Quantity_PlaneAngle Angle) ; //! Returns the value of the angle of opening.
Standard_EXPORT Quantity_PlaneAngle Angle() const; //! 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
Standard_EXPORT void SetPerspective(const Quantity_PlaneAngle Angle,const Standard_Real UVRatio,const Standard_Real ZNear,const Standard_Real ZFar) ; DEFINE_STANDARD_RTTI(V3d_PerspectiveView) protected: private: }; // other Inline functions and methods (like "C++: function call" methods) #endif