Open CASCADE Technology 7.8.2.dev
GeomFill_LocationDraft Class Reference

#include <GeomFill_LocationDraft.hxx>

Inheritance diagram for GeomFill_LocationDraft:

Public Member Functions

 GeomFill_LocationDraft (const gp_Dir &Direction, const Standard_Real Angle)
 
void SetStopSurf (const Handle< Adaptor3d_Surface > &Surf)
 
void SetAngle (const Standard_Real Angle)
 
virtual Standard_Boolean SetCurve (const Handle< Adaptor3d_Curve > &C) override
 calculation of poles on locking surfaces (the intersection between the generatrixand the surface at the cross - section points myNbPts)
 
virtual const Handle< Adaptor3d_Curve > & GetCurve () const override
 
virtual void SetTrsf (const gp_Mat &Transfo) override
 Set a transformation Matrix like the law M(t) become Mat * M(t)
 
virtual Handle< GeomFill_LocationLawCopy () const override
 
virtual Standard_Boolean D0 (const Standard_Real Param, gp_Mat &M, gp_Vec &V) override
 compute Location
 
virtual Standard_Boolean D0 (const Standard_Real Param, gp_Mat &M, gp_Vec &V, TColgp_Array1OfPnt2d &Poles2d) override
 compute Location and 2d points
 
virtual Standard_Boolean D1 (const Standard_Real Param, gp_Mat &M, gp_Vec &V, gp_Mat &DM, gp_Vec &DV, TColgp_Array1OfPnt2d &Poles2d, TColgp_Array1OfVec2d &DPoles2d) override
 compute location 2d points and associated first derivatives. Warning : It used only for C1 or C2 approximation
 
virtual Standard_Boolean D2 (const Standard_Real Param, gp_Mat &M, gp_Vec &V, gp_Mat &DM, gp_Vec &DV, gp_Mat &D2M, gp_Vec &D2V, TColgp_Array1OfPnt2d &Poles2d, TColgp_Array1OfVec2d &DPoles2d, TColgp_Array1OfVec2d &D2Poles2d) override
 compute location 2d points and associated first and seconde derivatives. Warning : It used only for C2 approximation
 
virtual Standard_Boolean HasFirstRestriction () const override
 Say if the first restriction is defined in this class. If it is true the first element of poles array in D0,D1,D2... Correspond to this restriction. Returns Standard_False (default implementation)
 
virtual Standard_Boolean HasLastRestriction () const override
 Say if the last restriction is defined in this class. If it is true the last element of poles array in D0,D1,D2... Correspond to this restriction. Returns Standard_False (default implementation)
 
virtual Standard_Integer TraceNumber () const override
 Give the number of trace (Curves 2d which are not restriction) Returns 1 (default implementation)
 
virtual Standard_Integer NbIntervals (const GeomAbs_Shape S) const override
 Returns the number of intervals for continuity . May be one if Continuity(me) >=
 
virtual void Intervals (TColStd_Array1OfReal &T, const GeomAbs_Shape S) const override
 Stores in <T> the parameters bounding the intervals of continuity .
 
virtual void SetInterval (const Standard_Real First, const Standard_Real Last) override
 Sets the bounds of the parametric interval on the function This determines the derivatives in these values if the function is not Cn.
 
virtual void GetInterval (Standard_Real &First, Standard_Real &Last) const override
 Gets the bounds of the parametric interval on the function.
 
virtual void GetDomain (Standard_Real &First, Standard_Real &Last) const override
 Gets the bounds of the function parametric domain. Warning: This domain it is not modified by the SetValue method.
 
virtual void Resolution (const Standard_Integer Index, const Standard_Real Tol, Standard_Real &TolU, Standard_Real &TolV) const override
 Returns the resolutions in the sub-space 2d <Index> This information is usfull to find an good tolerance in 2d approximation. Warning: Used only if Nb2dCurve > 0.
 
virtual Standard_Real GetMaximalNorm () override
 Get the maximum Norm of the matrix-location part. It is usful to find an good Tolerance to approx M(t).
 
virtual void GetAverageLaw (gp_Mat &AM, gp_Vec &AV) override
 Get average value of M(t) and V(t) it is usfull to make fast approximation of rational surfaces.
 
virtual Standard_Boolean IsTranslation (Standard_Real &Error) const override
 Say if the Location Law, is an translation of Location The default implementation is " returns False ".
 
virtual Standard_Boolean IsRotation (Standard_Real &Error) const override
 Say if the Location Law, is a rotation of Location The default implementation is " returns False ".
 
virtual void Rotation (gp_Pnt &Center) const override
 
Standard_Boolean IsIntersec () const
 Say if the generatrice interset the surface.
 
gp_Dir Direction () const
 
- Public Member Functions inherited from GeomFill_LocationLaw
Standard_Integer Nb2dCurves () const
 get the number of 2d curves (Restrictions + Traces) to approximate.
 
virtual GeomFill_PipeError ErrorStatus () const
 Give a status to the Law Returns PipeOk (default implementation)
 
virtual void SetTolerance (const Standard_Real Tol3d, const Standard_Real Tol2d)
 Is useful, if (me) have to run numerical algorithm to perform D0, D1 or D2 The default implementation make nothing.
 
- 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 ()
 Destructor must be virtual.
 
virtual const opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object.
 
Standard_Boolean IsInstance (const opencascade::handle< Standard_Type > &theType) const
 Returns a true value if this is an instance of Type.
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName.
 
Standard_Boolean 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.
 
Standard_Boolean IsKind (const Standard_CString 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.
 
Standard_Integer GetRefCount () const noexcept
 Get the reference counter of this object.
 
void IncrementRefCounter () noexcept
 Increments the reference counter of this object.
 
Standard_Integer DecrementRefCounter () noexcept
 Decrements the reference counter of this object; returns the decremented value.
 
virtual void Delete () const
 Memory deallocator for transient classes.
 

Protected Attributes

Handle< TColgp_HArray1OfPnt2d > myPoles2d
 

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 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.
 

Constructor & Destructor Documentation

◆ GeomFill_LocationDraft()

GeomFill_LocationDraft::GeomFill_LocationDraft ( const gp_Dir & Direction,
const Standard_Real Angle )

Member Function Documentation

◆ Copy()

virtual Handle< GeomFill_LocationLaw > GeomFill_LocationDraft::Copy ( ) const
overridevirtual

Implements GeomFill_LocationLaw.

◆ D0() [1/2]

virtual Standard_Boolean GeomFill_LocationDraft::D0 ( const Standard_Real Param,
gp_Mat & M,
gp_Vec & V )
overridevirtual

compute Location

Implements GeomFill_LocationLaw.

◆ D0() [2/2]

virtual Standard_Boolean GeomFill_LocationDraft::D0 ( const Standard_Real Param,
gp_Mat & M,
gp_Vec & V,
TColgp_Array1OfPnt2d & Poles2d )
overridevirtual

compute Location and 2d points

Implements GeomFill_LocationLaw.

◆ D1()

virtual Standard_Boolean GeomFill_LocationDraft::D1 ( const Standard_Real Param,
gp_Mat & M,
gp_Vec & V,
gp_Mat & DM,
gp_Vec & DV,
TColgp_Array1OfPnt2d & Poles2d,
TColgp_Array1OfVec2d & DPoles2d )
overridevirtual

compute location 2d points and associated first derivatives. Warning : It used only for C1 or C2 approximation

Reimplemented from GeomFill_LocationLaw.

◆ D2()

virtual Standard_Boolean GeomFill_LocationDraft::D2 ( const Standard_Real Param,
gp_Mat & M,
gp_Vec & V,
gp_Mat & DM,
gp_Vec & DV,
gp_Mat & D2M,
gp_Vec & D2V,
TColgp_Array1OfPnt2d & Poles2d,
TColgp_Array1OfVec2d & DPoles2d,
TColgp_Array1OfVec2d & D2Poles2d )
overridevirtual

compute location 2d points and associated first and seconde derivatives. Warning : It used only for C2 approximation

Reimplemented from GeomFill_LocationLaw.

◆ Direction()

gp_Dir GeomFill_LocationDraft::Direction ( ) const

◆ GetAverageLaw()

virtual void GeomFill_LocationDraft::GetAverageLaw ( gp_Mat & AM,
gp_Vec & AV )
overridevirtual

Get average value of M(t) and V(t) it is usfull to make fast approximation of rational surfaces.

Implements GeomFill_LocationLaw.

◆ GetCurve()

virtual const Handle< Adaptor3d_Curve > & GeomFill_LocationDraft::GetCurve ( ) const
overridevirtual

Implements GeomFill_LocationLaw.

◆ GetDomain()

virtual void GeomFill_LocationDraft::GetDomain ( Standard_Real & First,
Standard_Real & Last ) const
overridevirtual

Gets the bounds of the function parametric domain. Warning: This domain it is not modified by the SetValue method.

Implements GeomFill_LocationLaw.

◆ GetInterval()

virtual void GeomFill_LocationDraft::GetInterval ( Standard_Real & First,
Standard_Real & Last ) const
overridevirtual

Gets the bounds of the parametric interval on the function.

Implements GeomFill_LocationLaw.

◆ GetMaximalNorm()

virtual Standard_Real GeomFill_LocationDraft::GetMaximalNorm ( )
overridevirtual

Get the maximum Norm of the matrix-location part. It is usful to find an good Tolerance to approx M(t).

Implements GeomFill_LocationLaw.

◆ HasFirstRestriction()

virtual Standard_Boolean GeomFill_LocationDraft::HasFirstRestriction ( ) const
overridevirtual

Say if the first restriction is defined in this class. If it is true the first element of poles array in D0,D1,D2... Correspond to this restriction. Returns Standard_False (default implementation)

Reimplemented from GeomFill_LocationLaw.

◆ HasLastRestriction()

virtual Standard_Boolean GeomFill_LocationDraft::HasLastRestriction ( ) const
overridevirtual

Say if the last restriction is defined in this class. If it is true the last element of poles array in D0,D1,D2... Correspond to this restriction. Returns Standard_False (default implementation)

Reimplemented from GeomFill_LocationLaw.

◆ Intervals()

virtual void GeomFill_LocationDraft::Intervals ( TColStd_Array1OfReal & 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()

Implements GeomFill_LocationLaw.

◆ IsIntersec()

Standard_Boolean GeomFill_LocationDraft::IsIntersec ( ) const

Say if the generatrice interset the surface.

◆ IsRotation()

virtual Standard_Boolean GeomFill_LocationDraft::IsRotation ( Standard_Real & Error) const
overridevirtual

Say if the Location Law, is a rotation of Location The default implementation is " returns False ".

Reimplemented from GeomFill_LocationLaw.

◆ IsTranslation()

virtual Standard_Boolean GeomFill_LocationDraft::IsTranslation ( Standard_Real & Error) const
overridevirtual

Say if the Location Law, is an translation of Location The default implementation is " returns False ".

Reimplemented from GeomFill_LocationLaw.

◆ NbIntervals()

virtual Standard_Integer GeomFill_LocationDraft::NbIntervals ( const GeomAbs_Shape S) const
overridevirtual

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

Implements GeomFill_LocationLaw.

◆ Resolution()

virtual void GeomFill_LocationDraft::Resolution ( const Standard_Integer Index,
const Standard_Real Tol,
Standard_Real & TolU,
Standard_Real & TolV ) const
overridevirtual

Returns the resolutions in the sub-space 2d <Index> This information is usfull to find an good tolerance in 2d approximation. Warning: Used only if Nb2dCurve > 0.

Reimplemented from GeomFill_LocationLaw.

◆ Rotation()

virtual void GeomFill_LocationDraft::Rotation ( gp_Pnt & Center) const
overridevirtual

Reimplemented from GeomFill_LocationLaw.

◆ SetAngle()

void GeomFill_LocationDraft::SetAngle ( const Standard_Real Angle)

◆ SetCurve()

virtual Standard_Boolean GeomFill_LocationDraft::SetCurve ( const Handle< Adaptor3d_Curve > & C)
overridevirtual

calculation of poles on locking surfaces (the intersection between the generatrixand the surface at the cross - section points myNbPts)

Returns
Standard_True in case if execution end correctly

Implements GeomFill_LocationLaw.

◆ SetInterval()

virtual void GeomFill_LocationDraft::SetInterval ( const Standard_Real First,
const Standard_Real Last )
overridevirtual

Sets the bounds of the parametric interval on the function This determines the derivatives in these values if the function is not Cn.

Implements GeomFill_LocationLaw.

◆ SetStopSurf()

void GeomFill_LocationDraft::SetStopSurf ( const Handle< Adaptor3d_Surface > & Surf)

◆ SetTrsf()

virtual void GeomFill_LocationDraft::SetTrsf ( const gp_Mat & Transfo)
overridevirtual

Set a transformation Matrix like the law M(t) become Mat * M(t)

Implements GeomFill_LocationLaw.

◆ TraceNumber()

virtual Standard_Integer GeomFill_LocationDraft::TraceNumber ( ) const
overridevirtual

Give the number of trace (Curves 2d which are not restriction) Returns 1 (default implementation)

Reimplemented from GeomFill_LocationLaw.

Field Documentation

◆ myPoles2d

Handle< TColgp_HArray1OfPnt2d > GeomFill_LocationDraft::myPoles2d
protected

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