OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    ShapeAnalysis_TransferParametersProj Class Reference

    This tool is used for transferring parameters from 3d curve of the edge to pcurve and vice versa. This tool transfers parameters with help of projection points from curve 3d on curve 2d and vice versa. More...

    #include <ShapeAnalysis_TransferParametersProj.hxx>

    Inheritance diagram for ShapeAnalysis_TransferParametersProj:

    Public Member Functions

     ShapeAnalysis_TransferParametersProj ()
     Creates empty constructor.
     ShapeAnalysis_TransferParametersProj (const TopoDS_Edge &E, const TopoDS_Face &F)
    void Init (const TopoDS_Edge &E, const TopoDS_Face &F) override
     Initialize a tool with edge and face.
    occ::handle< NCollection_HSequence< double > > Perform (const occ::handle< NCollection_HSequence< double > > &Papams, const bool To2d) override
     Transfers parameters given by sequence Params from 3d curve to pcurve (if To2d is True) or back (if To2d is False).
    double Perform (const double Param, const bool To2d) override
     Transfers parameter given by Param from 3d curve to pcurve (if To2d is True) or back (if To2d is False).
    bool & ForceProjection ()
     Returns modifiable flag forcing projection If it is False (default), projection is done only if edge is not SameParameter or if tolerance of edge is greater than MaxTolerance().
    void TransferRange (TopoDS_Edge &newEdge, const double prevPar, const double currPar, const bool Is2d) override
     Recomputes range of curves from NewEdge. If Is2d equals True parameters are recomputed by curve2d else by curve3d.
    bool IsSameRange () const override
     Returns False;.
    Public Member Functions inherited from ShapeAnalysis_TransferParameters
     ShapeAnalysis_TransferParameters ()
     Creates empty tool with myShift = 0 and myScale = 1.
     ShapeAnalysis_TransferParameters (const TopoDS_Edge &E, const TopoDS_Face &F)
     Creates a tool and initializes it with edge and face.
    void SetMaxTolerance (const double maxtol)
     Sets maximal tolerance to use linear recomputation of parameters.
    Public Member Functions inherited from Standard_Transient
     Standard_Transient ()
     Empty constructor.
     Standard_Transient (const Standard_Transient &)
     Copy constructor – does nothing.
    Standard_Transient & operator= (const Standard_Transient &)
     Assignment operator, needed to avoid copying reference counter.
    virtual ~Standard_Transient ()=default
     Destructor must be virtual.
    virtual const opencascade::handle< Standard_Type > & DynamicType () const
     Returns a type descriptor about this object.
    bool IsInstance (const opencascade::handle< Standard_Type > &theType) const
     Returns a true value if this is an instance of Type.
    bool IsInstance (const char *const theTypeName) const
     Returns a true value if this is an instance of TypeName.
    bool IsKind (const opencascade::handle< Standard_Type > &theType) const
     Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
    bool IsKind (const char *const theTypeName) const
     Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
    Standard_Transient * This () const
     Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
    int GetRefCount () const noexcept
     Get the reference counter of this object.
    void IncrementRefCounter () noexcept
     Increments the reference counter of this object. Uses relaxed memory ordering since incrementing only requires atomicity, not synchronization with other memory operations.
    int DecrementRefCounter () noexcept
     Decrements the reference counter of this object; returns the decremented value. Uses release ordering for the decrement to ensure all writes to the object are visible before the count reaches zero. An acquire fence is added only when the count reaches zero, ensuring proper synchronization before deletion. This is more efficient than using acq_rel for every decrement.
    virtual void Delete () const
     Memory deallocator for transient classes.

    Static Public Member Functions

    static TopoDS_Vertex CopyNMVertex (const TopoDS_Vertex &theVert, const TopoDS_Edge &toedge, const TopoDS_Edge &fromedge)
     Make a copy of non-manifold vertex theVert (i.e. create new TVertex and replace PointRepresentations for this vertex from fromedge to toedge. Other representations were copied).
    static TopoDS_Vertex CopyNMVertex (const TopoDS_Vertex &theVert, const TopoDS_Face &toFace, const TopoDS_Face &fromFace)
     Make a copy of non-manifold vertex theVert (i.e. create new TVertex and replace PointRepresentations for this vertex from fromFace to toFace. Other representations were copied).
    static constexpr const char * get_type_name ()
     Returns a type descriptor about this object.
    static const opencascade::handle< Standard_Type > & get_type_descriptor ()
     Returns type descriptor of Standard_Transient class.

    Additional Inherited Members

    typedef void base_type
     Returns a type descriptor about this object.
    Protected Attributes inherited from ShapeAnalysis_TransferParameters
    double myFirst
    double myLast
    TopoDS_Edge myEdge
    double myMaxTolerance

    Detailed Description

    This tool is used for transferring parameters from 3d curve of the edge to pcurve and vice versa. This tool transfers parameters with help of projection points from curve 3d on curve 2d and vice versa.

    Constructor & Destructor Documentation

    ◆ ShapeAnalysis_TransferParametersProj() [1/2]

    ShapeAnalysis_TransferParametersProj::ShapeAnalysis_TransferParametersProj ( )

    Creates empty constructor.

    ◆ ShapeAnalysis_TransferParametersProj() [2/2]

    ShapeAnalysis_TransferParametersProj::ShapeAnalysis_TransferParametersProj ( const TopoDS_Edge & E,
    const TopoDS_Face & F )

    Member Function Documentation

    ◆ CopyNMVertex() [1/2]

    TopoDS_Vertex ShapeAnalysis_TransferParametersProj::CopyNMVertex ( const TopoDS_Vertex & theVert,
    const TopoDS_Edge & toedge,
    const TopoDS_Edge & fromedge )
    static

    Make a copy of non-manifold vertex theVert (i.e. create new TVertex and replace PointRepresentations for this vertex from fromedge to toedge. Other representations were copied).

    ◆ CopyNMVertex() [2/2]

    TopoDS_Vertex ShapeAnalysis_TransferParametersProj::CopyNMVertex ( const TopoDS_Vertex & theVert,
    const TopoDS_Face & toFace,
    const TopoDS_Face & fromFace )
    static

    Make a copy of non-manifold vertex theVert (i.e. create new TVertex and replace PointRepresentations for this vertex from fromFace to toFace. Other representations were copied).

    ◆ ForceProjection()

    bool & ShapeAnalysis_TransferParametersProj::ForceProjection ( )

    Returns modifiable flag forcing projection If it is False (default), projection is done only if edge is not SameParameter or if tolerance of edge is greater than MaxTolerance().

    ◆ Init()

    void ShapeAnalysis_TransferParametersProj::Init ( const TopoDS_Edge & E,
    const TopoDS_Face & F )
    overridevirtual

    Initialize a tool with edge and face.

    Reimplemented from ShapeAnalysis_TransferParameters.

    ◆ IsSameRange()

    bool ShapeAnalysis_TransferParametersProj::IsSameRange ( ) const
    overridevirtual

    Returns False;.

    Reimplemented from ShapeAnalysis_TransferParameters.

    ◆ Perform() [1/2]

    double ShapeAnalysis_TransferParametersProj::Perform ( const double Param,
    const bool To2d )
    overridevirtual

    Transfers parameter given by Param from 3d curve to pcurve (if To2d is True) or back (if To2d is False).

    Reimplemented from ShapeAnalysis_TransferParameters.

    ◆ Perform() [2/2]

    occ::handle< NCollection_HSequence< double > > ShapeAnalysis_TransferParametersProj::Perform ( const occ::handle< NCollection_HSequence< double > > & Papams,
    const bool To2d )
    overridevirtual

    Transfers parameters given by sequence Params from 3d curve to pcurve (if To2d is True) or back (if To2d is False).

    Reimplemented from ShapeAnalysis_TransferParameters.

    ◆ TransferRange()

    void ShapeAnalysis_TransferParametersProj::TransferRange ( TopoDS_Edge & newEdge,
    const double prevPar,
    const double currPar,
    const bool Is2d )
    overridevirtual

    Recomputes range of curves from NewEdge. If Is2d equals True parameters are recomputed by curve2d else by curve3d.

    Reimplemented from ShapeAnalysis_TransferParameters.


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