Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes
GeomAdaptor_TransformedCurve Class Reference

An adaptor for curves with an applied transformation. More...

#include <GeomAdaptor_TransformedCurve.hxx>

Inheritance diagram for GeomAdaptor_TransformedCurve:
Inheritance graph
[legend]

Public Member Functions

 GeomAdaptor_TransformedCurve ()
 Creates an undefined curve with identity transformation.
 
 GeomAdaptor_TransformedCurve (const occ::handle< Geom_Curve > &theCurve, const gp_Trsf &theTrsf)
 Creates a curve adaptor with transformation.
 
 GeomAdaptor_TransformedCurve (const occ::handle< Geom_Curve > &theCurve, const double theFirst, const double theLast, const gp_Trsf &theTrsf)
 Creates a curve adaptor with transformation and parameter bounds.
 
occ::handle< Adaptor3d_CurveShallowCopy () const override
 Shallow copy of adaptor.
 
void Load (const occ::handle< Geom_Curve > &theCurve)
 Loads the curve geometry.
 
void Load (const occ::handle< Geom_Curve > &theCurve, const double theFirst, const double theLast)
 Loads the curve geometry with parameter bounds.
 
void LoadCurveOnSurface (const occ::handle< Adaptor3d_CurveOnSurface > &theConSurf)
 Sets the curve on surface adaptor.
 
void SetTrsf (const gp_Trsf &theTrsf)
 Sets the transformation.
 
const gp_TrsfTrsf () const
 Returns the transformation.
 
bool Is3DCurve () const
 Returns true if the geometry is a 3D curve (not curve on surface).
 
bool IsCurveOnSurface () const
 Returns true if the geometry is a curve on surface.
 
const GeomAdaptor_CurveCurve () const
 Returns the underlying GeomAdaptor_Curve.
 
GeomAdaptor_CurveChangeCurve ()
 Returns the underlying GeomAdaptor_Curve for modification.
 
const Adaptor3d_CurveOnSurfaceCurveOnSurface () const
 Returns the CurveOnSurface adaptor.
 
const occ::handle< Geom_Curve > & GeomCurve () const
 Returns the underlying Geom_Curve.
 
double FirstParameter () const override
 
double LastParameter () const override
 
GeomAbs_Shape Continuity () const override
 
int NbIntervals (const GeomAbs_Shape theS) const override
 Returns the number of intervals for continuity . May be one if Continuity(me) >=
 
void Intervals (NCollection_Array1< double > &theT, const GeomAbs_Shape theS) const override
 Stores in <T> the parameters bounding the intervals of continuity .
 
occ::handle< Adaptor3d_CurveTrim (const double theFirst, const double theLast, const double theTol) const override
 Returns a curve equivalent of <me> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>
 
bool IsClosed () const override
 
bool IsPeriodic () const override
 
double Period () const override
 
gp_Pnt EvalD0 (const double theU) const final
 Point evaluation. Applies transformation after evaluation.
 
Geom_Curve::ResD1 EvalD1 (const double theU) const final
 D1 evaluation. Applies transformation after evaluation.
 
Geom_Curve::ResD2 EvalD2 (const double theU) const final
 D2 evaluation. Applies transformation after evaluation.
 
Geom_Curve::ResD3 EvalD3 (const double theU) const final
 D3 evaluation. Applies transformation after evaluation.
 
gp_Vec EvalDN (const double theU, const int theN) const final
 DN evaluation. Applies transformation after evaluation.
 
double Resolution (const double theR3d) const override
 Returns the parametric resolution corresponding to the real space resolution <R3d>.
 
GeomAbs_CurveType GetType () const override
 Returns the type of the curve in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.
 
gp_Lin Line () const override
 
gp_Circ Circle () const override
 
gp_Elips Ellipse () const override
 
gp_Hypr Hyperbola () const override
 
gp_Parab Parabola () const override
 
int Degree () const override
 
bool IsRational () const override
 
int NbPoles () const override
 
int NbKnots () const override
 
occ::handle< Geom_BezierCurveBezier () const override
 
occ::handle< Geom_BSplineCurveBSpline () const override
 
occ::handle< Geom_OffsetCurveOffsetCurve () const override
 
- Public Member Functions inherited from Adaptor3d_Curve
gp_Pnt Value (const double theU) const
 Computes the point of parameter U on the curve.
 
void D0 (const double theU, gp_Pnt &theP) const
 Computes the point of parameter U on the curve.
 
void D1 (const double theU, gp_Pnt &theP, gp_Vec &theV) const
 Computes the point of parameter U on the curve with its first derivative. Raised if the continuity of the current interval is not C1.
 
void D2 (const double theU, gp_Pnt &theP, gp_Vec &theV1, gp_Vec &theV2) const
 Returns the point P of parameter U, the first and second derivatives V1 and V2. Raised if the continuity of the current interval is not C2.
 
void D3 (const double theU, gp_Pnt &theP, gp_Vec &theV1, gp_Vec &theV2, gp_Vec &theV3) const
 Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3.
 
gp_Vec DN (const double theU, const int theN) const
 The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1.
 
 ~Adaptor3d_Curve () override
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor.
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing.
 
Standard_Transientoperator= (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_TransientThis () 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.
 

Protected Attributes

GeomAdaptor_Curve myCurve
 
occ::handle< Adaptor3d_CurveOnSurfacemyConSurf
 
gp_Trsf myTrsf
 

Additional Inherited Members

- Public Types inherited from Standard_Transient
typedef void base_type
 Returns a type descriptor about this object.
 
- Static Public Member Functions inherited from Standard_Transient
static constexpr const charget_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.
 

Detailed Description

An adaptor for curves with an applied transformation.

This class wraps a GeomAdaptor_Curve (or an Adaptor3d_CurveOnSurface) and applies a gp_Trsf transformation to all point and derivative evaluations. It serves as a base class for BRepAdaptor_Curve and allows batch evaluation with transformations in GeomGridEval_Curve.

The evaluation methods (Value, D0, D1, D2, D3, DN) are marked final to enable optimizations in grid evaluation.

Constructor & Destructor Documentation

◆ GeomAdaptor_TransformedCurve() [1/3]

GeomAdaptor_TransformedCurve::GeomAdaptor_TransformedCurve ( )

Creates an undefined curve with identity transformation.

◆ GeomAdaptor_TransformedCurve() [2/3]

GeomAdaptor_TransformedCurve::GeomAdaptor_TransformedCurve ( const occ::handle< Geom_Curve > & theCurve,
const gp_Trsf & theTrsf )

Creates a curve adaptor with transformation.

Parameters
theCurveunderlying geometry
theTrsftransformation to apply

◆ GeomAdaptor_TransformedCurve() [3/3]

GeomAdaptor_TransformedCurve::GeomAdaptor_TransformedCurve ( const occ::handle< Geom_Curve > & theCurve,
const double theFirst,
const double theLast,
const gp_Trsf & theTrsf )

Creates a curve adaptor with transformation and parameter bounds.

Parameters
theCurveunderlying geometry
theFirstminimum parameter
theLastmaximum parameter
theTrsftransformation to apply

Member Function Documentation

◆ Bezier()

occ::handle< Geom_BezierCurve > GeomAdaptor_TransformedCurve::Bezier ( ) const
overridevirtual

Reimplemented from Adaptor3d_Curve.

◆ BSpline()

occ::handle< Geom_BSplineCurve > GeomAdaptor_TransformedCurve::BSpline ( ) const
overridevirtual

Reimplemented from Adaptor3d_Curve.

◆ ChangeCurve()

GeomAdaptor_Curve & GeomAdaptor_TransformedCurve::ChangeCurve ( )
inline

Returns the underlying GeomAdaptor_Curve for modification.

◆ Circle()

gp_Circ GeomAdaptor_TransformedCurve::Circle ( ) const
overridevirtual

Reimplemented from Adaptor3d_Curve.

◆ Continuity()

GeomAbs_Shape GeomAdaptor_TransformedCurve::Continuity ( ) const
inlineoverridevirtual

Reimplemented from Adaptor3d_Curve.

◆ Curve()

const GeomAdaptor_Curve & GeomAdaptor_TransformedCurve::Curve ( ) const
inline

Returns the underlying GeomAdaptor_Curve.

◆ CurveOnSurface()

const Adaptor3d_CurveOnSurface & GeomAdaptor_TransformedCurve::CurveOnSurface ( ) const
inline

Returns the CurveOnSurface adaptor.

◆ Degree()

int GeomAdaptor_TransformedCurve::Degree ( ) const
inlineoverridevirtual

Reimplemented from Adaptor3d_Curve.

◆ Ellipse()

gp_Elips GeomAdaptor_TransformedCurve::Ellipse ( ) const
overridevirtual

Reimplemented from Adaptor3d_Curve.

◆ EvalD0()

gp_Pnt GeomAdaptor_TransformedCurve::EvalD0 ( const double theU) const
finalvirtual

Point evaluation. Applies transformation after evaluation.

Reimplemented from Adaptor3d_Curve.

◆ EvalD1()

Geom_Curve::ResD1 GeomAdaptor_TransformedCurve::EvalD1 ( const double theU) const
finalvirtual

D1 evaluation. Applies transformation after evaluation.

Reimplemented from Adaptor3d_Curve.

◆ EvalD2()

Geom_Curve::ResD2 GeomAdaptor_TransformedCurve::EvalD2 ( const double theU) const
finalvirtual

D2 evaluation. Applies transformation after evaluation.

Reimplemented from Adaptor3d_Curve.

◆ EvalD3()

Geom_Curve::ResD3 GeomAdaptor_TransformedCurve::EvalD3 ( const double theU) const
finalvirtual

D3 evaluation. Applies transformation after evaluation.

Reimplemented from Adaptor3d_Curve.

◆ EvalDN()

gp_Vec GeomAdaptor_TransformedCurve::EvalDN ( const double theU,
const int theN ) const
finalvirtual

DN evaluation. Applies transformation after evaluation.

Reimplemented from Adaptor3d_Curve.

◆ FirstParameter()

double GeomAdaptor_TransformedCurve::FirstParameter ( ) const
inlineoverridevirtual

Reimplemented from Adaptor3d_Curve.

◆ GeomCurve()

const occ::handle< Geom_Curve > & GeomAdaptor_TransformedCurve::GeomCurve ( ) const
inline

Returns the underlying Geom_Curve.

◆ GetType()

GeomAbs_CurveType GeomAdaptor_TransformedCurve::GetType ( ) const
inlineoverridevirtual

Returns the type of the curve in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.

Reimplemented from Adaptor3d_Curve.

◆ Hyperbola()

gp_Hypr GeomAdaptor_TransformedCurve::Hyperbola ( ) const
overridevirtual

Reimplemented from Adaptor3d_Curve.

◆ Intervals()

void GeomAdaptor_TransformedCurve::Intervals ( NCollection_Array1< double > & T,
const GeomAbs_Shape S ) const
overridevirtual

Stores in <T> the parameters bounding the intervals of continuity .

The array must provide enough room to accommodate for the parameters. i.e. T.Length() > NbIntervals()

Reimplemented from Adaptor3d_Curve.

◆ Is3DCurve()

bool GeomAdaptor_TransformedCurve::Is3DCurve ( ) const
inline

Returns true if the geometry is a 3D curve (not curve on surface).

◆ IsClosed()

bool GeomAdaptor_TransformedCurve::IsClosed ( ) const
inlineoverridevirtual

Reimplemented from Adaptor3d_Curve.

◆ IsCurveOnSurface()

bool GeomAdaptor_TransformedCurve::IsCurveOnSurface ( ) const
inline

Returns true if the geometry is a curve on surface.

◆ IsPeriodic()

bool GeomAdaptor_TransformedCurve::IsPeriodic ( ) const
inlineoverridevirtual

Reimplemented from Adaptor3d_Curve.

◆ IsRational()

bool GeomAdaptor_TransformedCurve::IsRational ( ) const
inlineoverridevirtual

Reimplemented from Adaptor3d_Curve.

◆ LastParameter()

double GeomAdaptor_TransformedCurve::LastParameter ( ) const
inlineoverridevirtual

Reimplemented from Adaptor3d_Curve.

◆ Line()

gp_Lin GeomAdaptor_TransformedCurve::Line ( ) const
overridevirtual

Reimplemented from Adaptor3d_Curve.

◆ Load() [1/2]

void GeomAdaptor_TransformedCurve::Load ( const occ::handle< Geom_Curve > & theCurve)
inline

Loads the curve geometry.

Parameters
theCurveunderlying geometry

◆ Load() [2/2]

void GeomAdaptor_TransformedCurve::Load ( const occ::handle< Geom_Curve > & theCurve,
const double theFirst,
const double theLast )
inline

Loads the curve geometry with parameter bounds.

Parameters
theCurveunderlying geometry
theFirstminimum parameter
theLastmaximum parameter

◆ LoadCurveOnSurface()

void GeomAdaptor_TransformedCurve::LoadCurveOnSurface ( const occ::handle< Adaptor3d_CurveOnSurface > & theConSurf)
inline

Sets the curve on surface adaptor.

Parameters
theConSurfcurve on surface adaptor

◆ NbIntervals()

int GeomAdaptor_TransformedCurve::NbIntervals ( const GeomAbs_Shape S) const
inlineoverridevirtual

Returns the number of intervals for continuity . May be one if Continuity(me) >=

Reimplemented from Adaptor3d_Curve.

◆ NbKnots()

int GeomAdaptor_TransformedCurve::NbKnots ( ) const
inlineoverridevirtual

Reimplemented from Adaptor3d_Curve.

◆ NbPoles()

int GeomAdaptor_TransformedCurve::NbPoles ( ) const
inlineoverridevirtual

Reimplemented from Adaptor3d_Curve.

◆ OffsetCurve()

occ::handle< Geom_OffsetCurve > GeomAdaptor_TransformedCurve::OffsetCurve ( ) const
overridevirtual

Reimplemented from Adaptor3d_Curve.

◆ Parabola()

gp_Parab GeomAdaptor_TransformedCurve::Parabola ( ) const
overridevirtual

Reimplemented from Adaptor3d_Curve.

◆ Period()

double GeomAdaptor_TransformedCurve::Period ( ) const
inlineoverridevirtual

Reimplemented from Adaptor3d_Curve.

◆ Resolution()

double GeomAdaptor_TransformedCurve::Resolution ( const double R3d) const
inlineoverridevirtual

Returns the parametric resolution corresponding to the real space resolution <R3d>.

Reimplemented from Adaptor3d_Curve.

◆ SetTrsf()

void GeomAdaptor_TransformedCurve::SetTrsf ( const gp_Trsf & theTrsf)
inline

Sets the transformation.

Parameters
theTrsftransformation to apply

◆ ShallowCopy()

occ::handle< Adaptor3d_Curve > GeomAdaptor_TransformedCurve::ShallowCopy ( ) const
overridevirtual

Shallow copy of adaptor.

Reimplemented from Adaptor3d_Curve.

◆ Trim()

occ::handle< Adaptor3d_Curve > GeomAdaptor_TransformedCurve::Trim ( const double First,
const double Last,
const double Tol ) const
overridevirtual

Returns a curve equivalent of <me> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>

Reimplemented from Adaptor3d_Curve.

◆ Trsf()

const gp_Trsf & GeomAdaptor_TransformedCurve::Trsf ( ) const
inline

Returns the transformation.

Field Documentation

◆ myConSurf

occ::handle<Adaptor3d_CurveOnSurface> GeomAdaptor_TransformedCurve::myConSurf
protected

◆ myCurve

GeomAdaptor_Curve GeomAdaptor_TransformedCurve::myCurve
protected

◆ myTrsf

gp_Trsf GeomAdaptor_TransformedCurve::myTrsf
protected

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