Open CASCADE Technology
6.5.4
|
defines IGESPerspectiveView, Type <410> Form <1>
in package IGESDraw
Supports a perspective view.
Any geometric projection is defined by a view plane
and the projectors that pass through the view plane.
Projectors can be visualized as rays of light that
form an image by passing through the viewed object
and striking the view plane.
The projectors are defined via a point called the
Centre-of-Projection or the eye-point.
A perspective view is formed by all projectors that
emanate from the Centre-of-Projection and pass
through the view plane.
#include <IGESDraw_PerspectiveView.hxx>
Public Member Functions | |
IGESDraw_PerspectiveView () | |
void | Init (const Standard_Integer aViewNumber, const Standard_Real aScaleFactor, const gp_XYZ &aViewNormalVector, const gp_XYZ &aViewReferencePoint, const gp_XYZ &aCenterOfProjection, const gp_XYZ &aViewUpVector, const Standard_Real aViewPlaneDistance, const gp_XY &aTopLeft, const gp_XY &aBottomRight, const Standard_Integer aDepthClip, const Standard_Real aBackPlaneDistance, const Standard_Real aFrontPlaneDistance) |
This method is used to set the fields of the class PerspectiveView | |
Standard_Boolean | IsSingle () const |
Returns True (for a single view) | |
Standard_Integer | NbViews () const |
Returns 1 (single view) | |
Handle_IGESData_ViewKindEntity | ViewItem (const Standard_Integer num) const |
For a single view, returns <me> whatever <num> | |
Standard_Integer | ViewNumber () const |
returns the view number associated with <me> | |
Standard_Real | ScaleFactor () const |
returns the scale factor associated with <me> | |
gp_Vec | ViewNormalVector () const |
returns the View plane normal vector (model space) | |
gp_Pnt | ViewReferencePoint () const |
returns the View reference point (model space) | |
gp_Pnt | CenterOfProjection () const |
returns the Center Of Projection (model space) | |
gp_Vec | ViewUpVector () const |
returns the View up vector (model space) | |
Standard_Real | ViewPlaneDistance () const |
returns the View plane distance (model space) | |
gp_Pnt2d | TopLeft () const |
returns the top left point of the clipping window | |
gp_Pnt2d | BottomRight () const |
returns the bottom right point of the clipping window | |
Standard_Integer | DepthClip () const |
returns the Depth clipping indicator 0 = No depth clipping 1 = Back clipping plane ON 2 = Front clipping plane ON 3 = Back and front clipping planes ON | |
Standard_Real | BackPlaneDistance () const |
returns the View coordinate denoting the location of the back clipping plane | |
Standard_Real | FrontPlaneDistance () const |
returns the View coordinate denoting the location of the front clipping plane | |
Handle_IGESData_TransfEntity | ViewMatrix () const |
returns the Transformation Matrix | |
gp_XYZ | ModelToView (const gp_XYZ &coords) const |
returns XYX from the Model space to the View space by applying the View Matrix |
void IGESDraw_PerspectiveView::Init | ( | const Standard_Integer | aViewNumber, |
const Standard_Real | aScaleFactor, | ||
const gp_XYZ & | aViewNormalVector, | ||
const gp_XYZ & | aViewReferencePoint, | ||
const gp_XYZ & | aCenterOfProjection, | ||
const gp_XYZ & | aViewUpVector, | ||
const Standard_Real | aViewPlaneDistance, | ||
const gp_XY & | aTopLeft, | ||
const gp_XY & | aBottomRight, | ||
const Standard_Integer | aDepthClip, | ||
const Standard_Real | aBackPlaneDistance, | ||
const Standard_Real | aFrontPlaneDistance | ||
) |
Standard_Boolean IGESDraw_PerspectiveView::IsSingle | ( | ) | const [virtual] |
Implements IGESData_ViewKindEntity.
gp_XYZ IGESDraw_PerspectiveView::ModelToView | ( | const gp_XYZ & | coords | ) | const |
Standard_Integer IGESDraw_PerspectiveView::NbViews | ( | ) | const [virtual] |
Implements IGESData_ViewKindEntity.
gp_Pnt2d IGESDraw_PerspectiveView::TopLeft | ( | ) | const |
Handle_IGESData_ViewKindEntity IGESDraw_PerspectiveView::ViewItem | ( | const Standard_Integer | num | ) | const [virtual] |
Implements IGESData_ViewKindEntity.
Handle_IGESData_TransfEntity IGESDraw_PerspectiveView::ViewMatrix | ( | ) | const |
gp_Vec IGESDraw_PerspectiveView::ViewUpVector | ( | ) | const |