OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    HLRAlgo_Projector Class Reference

    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 &v1v1, const gp_Vec2d &v2v2, const gp_Vec2d &v3v3)
     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_TrsfTransformation () const
     Returns the active transformation.
    const gp_TrsfInvertedTransformation () const
     Returns the active inverted transformation.
    const gp_TrsfFullTransformation () 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>.

    Detailed Description

    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:

    Constructor & Destructor Documentation

    ◆ HLRAlgo_Projector() [1/5]

    HLRAlgo_Projector::HLRAlgo_Projector ( )

    ◆ HLRAlgo_Projector() [2/5]

    HLRAlgo_Projector::HLRAlgo_Projector ( const gp_Ax2 & CS)

    Creates an axonometric projector. <CS> is the viewing coordinate system.

    ◆ HLRAlgo_Projector() [3/5]

    HLRAlgo_Projector::HLRAlgo_Projector ( const gp_Ax2 & CS,
    const double Focus )

    Creates a perspective projector. <CS> is the viewing coordinate system.

    ◆ HLRAlgo_Projector() [4/5]

    HLRAlgo_Projector::HLRAlgo_Projector ( const gp_Trsf & T,
    const bool Persp,
    const double Focus )

    build a Projector with automatic minmax directions.

    ◆ HLRAlgo_Projector() [5/5]

    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.

    Member Function Documentation

    ◆ Directions()

    void HLRAlgo_Projector::Directions ( gp_Vec2d & D1,
    gp_Vec2d & D2,
    gp_Vec2d & D3 ) const

    ◆ Focus()

    double HLRAlgo_Projector::Focus ( ) const

    Returns the focal length.

    ◆ FullTransformation()

    const gp_Trsf & HLRAlgo_Projector::FullTransformation ( ) const

    Returns the original transformation.

    ◆ InvertedTransformation()

    const gp_Trsf & HLRAlgo_Projector::InvertedTransformation ( ) const

    Returns the active inverted transformation.

    ◆ Perspective()

    bool HLRAlgo_Projector::Perspective ( ) const

    Returns True if there is a perspective transformation.

    ◆ Project() [1/3]

    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.

    ◆ Project() [2/3]

    void HLRAlgo_Projector::Project ( const gp_Pnt & P,
    double & X,
    double & Y,
    double & Z ) const

    Transform and apply perspective if needed.

    ◆ Project() [3/3]

    void HLRAlgo_Projector::Project ( const gp_Pnt & P,
    gp_Pnt2d & Pout ) const

    Transform and apply perspective if needed.

    ◆ Scaled()

    void HLRAlgo_Projector::Scaled ( const bool On = false)

    to compute with the given scale and translation.

    ◆ Set()

    void HLRAlgo_Projector::Set ( const gp_Trsf & T,
    const bool Persp,
    const double Focus )

    ◆ Shoot()

    gp_Lin HLRAlgo_Projector::Shoot ( const double X,
    const double Y ) const

    return a line going through the eye towards the 2d point <X,Y>.

    ◆ Transform() [1/2]

    void HLRAlgo_Projector::Transform ( gp_Pnt & Pnt) const

    ◆ Transform() [2/2]

    void HLRAlgo_Projector::Transform ( gp_Vec & D) const

    ◆ Transformation()

    const gp_Trsf & HLRAlgo_Projector::Transformation ( ) const

    Returns the active transformation.


    The documentation for this class was generated from the following file: