![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Implements a projector object. To transform and project Points and Planes. This object is designed to be used in the removal of hidden lines and is returned by the Prs3d_Projector::Projector function. You define the projection of the selected shape by calling one of the following functions: More...
#include <HLRAlgo_Projector.hxx>
Public Member Functions | |
| HLRAlgo_Projector () | |
| HLRAlgo_Projector (const gp_Ax2 &CS) | |
| Creates an axonometric projector. <CS> is the viewing coordinate system. | |
| HLRAlgo_Projector (const gp_Ax2 &CS, const double Focus) | |
| Creates a perspective projector. <CS> is the viewing coordinate system. | |
| HLRAlgo_Projector (const gp_Trsf &T, const bool Persp, const double Focus) | |
| build a Projector with automatic minmax directions. | |
| HLRAlgo_Projector (const gp_Trsf &T, const bool Persp, const double Focus, const gp_Vec2d &v1, const gp_Vec2d &v2, const gp_Vec2d &v3) | |
| build a Projector with given minmax directions. | |
| void | Set (const gp_Trsf &T, const bool Persp, const double Focus) |
| void | Directions (gp_Vec2d &D1, gp_Vec2d &D2, gp_Vec2d &D3) const |
| void | Scaled (const bool On=false) |
| to compute with the given scale and translation. | |
| bool | Perspective () const |
| Returns True if there is a perspective transformation. | |
| const gp_Trsf & | Transformation () const |
| Returns the active transformation. | |
| const gp_Trsf & | InvertedTransformation () const |
| Returns the active inverted transformation. | |
| const gp_Trsf & | FullTransformation () const |
| Returns the original transformation. | |
| double | Focus () const |
| Returns the focal length. | |
| void | Transform (gp_Vec &D) const |
| void | Transform (gp_Pnt &Pnt) const |
| void | Project (const gp_Pnt &P, gp_Pnt2d &Pout) const |
| Transform and apply perspective if needed. | |
| void | Project (const gp_Pnt &P, double &X, double &Y, double &Z) const |
| Transform and apply perspective if needed. | |
| void | Project (const gp_Pnt &P, const gp_Vec &D1, gp_Pnt2d &Pout, gp_Vec2d &D1out) const |
| Transform and apply perspective if needed. | |
| gp_Lin | Shoot (const double X, const double Y) const |
| return a line going through the eye towards the 2d point <X,Y>. | |
Implements a projector object. To transform and project Points and Planes. This object is designed to be used in the removal of hidden lines and is returned by the Prs3d_Projector::Projector function. You define the projection of the selected shape by calling one of the following functions:
| HLRAlgo_Projector::HLRAlgo_Projector | ( | ) |
| HLRAlgo_Projector::HLRAlgo_Projector | ( | const gp_Ax2 & | CS | ) |
Creates an axonometric projector. <CS> is the viewing coordinate system.
Creates a perspective projector. <CS> is the viewing coordinate system.
build a Projector with automatic minmax directions.
| HLRAlgo_Projector::HLRAlgo_Projector | ( | const gp_Trsf & | T, |
| const bool | Persp, | ||
| const double | Focus, | ||
| const gp_Vec2d & | v1, | ||
| const gp_Vec2d & | v2, | ||
| const gp_Vec2d & | v3 ) |
build a Projector with given minmax directions.
| double HLRAlgo_Projector::Focus | ( | ) | const |
Returns the focal length.
| const gp_Trsf & HLRAlgo_Projector::FullTransformation | ( | ) | const |
Returns the original transformation.
| const gp_Trsf & HLRAlgo_Projector::InvertedTransformation | ( | ) | const |
Returns the active inverted transformation.
| bool HLRAlgo_Projector::Perspective | ( | ) | const |
Returns True if there is a perspective transformation.
| void HLRAlgo_Projector::Project | ( | const gp_Pnt & | P, |
| const gp_Vec & | D1, | ||
| gp_Pnt2d & | Pout, | ||
| gp_Vec2d & | D1out ) const |
Transform and apply perspective if needed.
Transform and apply perspective if needed.
Transform and apply perspective if needed.
to compute with the given scale and translation.
return a line going through the eye towards the 2d point <X,Y>.
| const gp_Trsf & HLRAlgo_Projector::Transformation | ( | ) | const |
Returns the active transformation.