Open CASCADE Technology  6.9.0
Public Member Functions | Protected Attributes
GeomFill_LocationGuide Class Reference

#include <GeomFill_LocationGuide.hxx>

Inheritance diagram for GeomFill_LocationGuide:
Inheritance graph
[legend]

Public Member Functions

 GeomFill_LocationGuide (const Handle< GeomFill_TrihedronWithGuide > &Triedre)
 
void Set (const Handle< GeomFill_SectionLaw > &Section, const Standard_Boolean rotat, const Standard_Real SFirst, const Standard_Real SLast, const Standard_Real PrecAngle, Standard_Real &LastAngle)
 
void EraseRotation ()
 
virtual void SetCurve (const Handle< Adaptor3d_HCurve > &C)
 
virtual const Handle
< Adaptor3d_HCurve > & 
GetCurve () const
 
virtual void SetTrsf (const gp_Mat &Transfo)
 Set a transformation Matrix like the law M(t) become Mat * M(t) More...
 
virtual Handle
< GeomFill_LocationLaw
Copy () const
 
virtual Standard_Boolean D0 (const Standard_Real Param, gp_Mat &M, gp_Vec &V)
 compute Location More...
 
virtual Standard_Boolean D0 (const Standard_Real Param, gp_Mat &M, gp_Vec &V, TColgp_Array1OfPnt2d &Poles2d)
 compute Location and 2d points More...
 
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)
 compute location 2d points and associated first derivatives. Warning : It used only for C1 or C2 aproximation More...
 
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)
 compute location 2d points and associated first and seconde derivatives. Warning : It used only for C2 aproximation More...
 
virtual Standard_Boolean HasFirstRestriction () const
 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) More...
 
virtual Standard_Boolean HasLastRestriction () const
 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) More...
 
virtual Standard_Integer TraceNumber () const
 Give the number of trace (Curves 2d wich are not restriction) Returns 1 (default implementation) More...
 
virtual GeomFill_PipeError ErrorStatus () const
 Give a status to the Law Returns PipeOk (default implementation) More...
 
virtual Standard_Integer NbIntervals (const GeomAbs_Shape S) const
 Returns the number of intervals for continuity <S>. May be one if Continuity(me) >= <S> More...
 
virtual void Intervals (TColStd_Array1OfReal &T, const GeomAbs_Shape S) const
 Stores in <T> the parameters bounding the intervals of continuity <S>. More...
 
virtual void SetInterval (const Standard_Real First, const Standard_Real Last)
 Sets the bounds of the parametric interval on the function This determines the derivatives in these values if the function is not Cn. More...
 
virtual void GetInterval (Standard_Real &First, Standard_Real &Last) const
 Gets the bounds of the parametric interval on the function. More...
 
virtual void GetDomain (Standard_Real &First, Standard_Real &Last) const
 Gets the bounds of the function parametric domain. Warning: This domain it is not modified by the SetValue method. More...
 
virtual void SetTolerance (const Standard_Real Tol3d, const Standard_Real Tol2d)
 Is usefull, if (me) have to run numerical algorithm to perform D0, D1 or D2 The default implementation make nothing. More...
 
virtual void Resolution (const Standard_Integer Index, const Standard_Real Tol, Standard_Real &TolU, Standard_Real &TolV) const
 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. More...
 
virtual Standard_Real GetMaximalNorm ()
 Get the maximum Norm of the matrix-location part. It is usful to find an good Tolerance to approx M(t). More...
 
virtual void GetAverageLaw (gp_Mat &AM, gp_Vec &AV)
 Get average value of M(t) and V(t) it is usfull to make fast approximation of rational surfaces. More...
 
virtual Standard_Boolean IsTranslation (Standard_Real &Error) const
 Say if the Location Law, is an translation of Location The default implementation is " returns False ". More...
 
virtual Standard_Boolean IsRotation (Standard_Real &Error) const
 Say if the Location Law, is a rotation of Location The default implementation is " returns False ". More...
 
virtual void Rotation (gp_Pnt &Center) const
 
Handle< Geom_CurveSection () const
 
Handle< Adaptor3d_HCurveGuide () const
 
void SetOrigine (const Standard_Real Param1, const Standard_Real Param2)
 
GeomFill_PipeError ComputeAutomaticLaw (Handle< TColgp_HArray1OfPnt2d > &ParAndRad) const
 
- Public Member Functions inherited from GeomFill_LocationLaw
Standard_Integer Nb2dCurves () const
 get the number of 2d curves (Restrictions + Traces) to approximate. More...
 
- Public Member Functions inherited from MMgt_TShared
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual const
Handle_Standard_Type & 
DynamicType () const
 Returns a type information object about this object. More...
 
Standard_Boolean IsInstance (const Handle_Standard_Type &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean IsKind (const 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. More...
 
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. More...
 
virtual Handle_Standard_Transient This () const
 Returns a Handle which references this object. Must never be called to objects created in stack. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 

Protected Attributes

Handle< TColgp_HArray2OfPnt2dmyPoles2d
 

Constructor & Destructor Documentation

GeomFill_LocationGuide::GeomFill_LocationGuide ( const Handle< GeomFill_TrihedronWithGuide > &  Triedre)

Member Function Documentation

GeomFill_PipeError GeomFill_LocationGuide::ComputeAutomaticLaw ( Handle< TColgp_HArray1OfPnt2d > &  ParAndRad) const
virtual Handle< GeomFill_LocationLaw > GeomFill_LocationGuide::Copy ( ) const
virtual

Implements GeomFill_LocationLaw.

virtual Standard_Boolean GeomFill_LocationGuide::D0 ( const Standard_Real  Param,
gp_Mat M,
gp_Vec V 
)
virtual

compute Location

Implements GeomFill_LocationLaw.

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

compute Location and 2d points

Implements GeomFill_LocationLaw.

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

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

Reimplemented from GeomFill_LocationLaw.

virtual Standard_Boolean GeomFill_LocationGuide::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 
)
virtual

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

Reimplemented from GeomFill_LocationLaw.

void GeomFill_LocationGuide::EraseRotation ( )
virtual GeomFill_PipeError GeomFill_LocationGuide::ErrorStatus ( ) const
virtual

Give a status to the Law Returns PipeOk (default implementation)

Reimplemented from GeomFill_LocationLaw.

virtual void GeomFill_LocationGuide::GetAverageLaw ( gp_Mat AM,
gp_Vec AV 
)
virtual

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

Implements GeomFill_LocationLaw.

virtual const Handle< Adaptor3d_HCurve >& GeomFill_LocationGuide::GetCurve ( ) const
virtual

Implements GeomFill_LocationLaw.

virtual void GeomFill_LocationGuide::GetDomain ( Standard_Real First,
Standard_Real Last 
) const
virtual

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

Implements GeomFill_LocationLaw.

virtual void GeomFill_LocationGuide::GetInterval ( Standard_Real First,
Standard_Real Last 
) const
virtual

Gets the bounds of the parametric interval on the function.

Implements GeomFill_LocationLaw.

virtual Standard_Real GeomFill_LocationGuide::GetMaximalNorm ( )
virtual

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

Implements GeomFill_LocationLaw.

Handle< Adaptor3d_HCurve > GeomFill_LocationGuide::Guide ( ) const
virtual Standard_Boolean GeomFill_LocationGuide::HasFirstRestriction ( ) const
virtual

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.

virtual Standard_Boolean GeomFill_LocationGuide::HasLastRestriction ( ) const
virtual

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.

virtual void GeomFill_LocationGuide::Intervals ( TColStd_Array1OfReal T,
const GeomAbs_Shape  S 
) const
virtual

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

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

Implements GeomFill_LocationLaw.

virtual Standard_Boolean GeomFill_LocationGuide::IsRotation ( Standard_Real Error) const
virtual

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

Reimplemented from GeomFill_LocationLaw.

virtual Standard_Boolean GeomFill_LocationGuide::IsTranslation ( Standard_Real Error) const
virtual

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

Reimplemented from GeomFill_LocationLaw.

virtual Standard_Integer GeomFill_LocationGuide::NbIntervals ( const GeomAbs_Shape  S) const
virtual

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

Implements GeomFill_LocationLaw.

virtual void GeomFill_LocationGuide::Resolution ( const Standard_Integer  Index,
const Standard_Real  Tol,
Standard_Real TolU,
Standard_Real TolV 
) const
virtual

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.

virtual void GeomFill_LocationGuide::Rotation ( gp_Pnt Center) const
virtual

Reimplemented from GeomFill_LocationLaw.

Handle< Geom_Curve > GeomFill_LocationGuide::Section ( ) const
void GeomFill_LocationGuide::Set ( const Handle< GeomFill_SectionLaw > &  Section,
const Standard_Boolean  rotat,
const Standard_Real  SFirst,
const Standard_Real  SLast,
const Standard_Real  PrecAngle,
Standard_Real LastAngle 
)
virtual void GeomFill_LocationGuide::SetCurve ( const Handle< Adaptor3d_HCurve > &  C)
virtual

Implements GeomFill_LocationLaw.

virtual void GeomFill_LocationGuide::SetInterval ( const Standard_Real  First,
const Standard_Real  Last 
)
virtual

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.

void GeomFill_LocationGuide::SetOrigine ( const Standard_Real  Param1,
const Standard_Real  Param2 
)
virtual void GeomFill_LocationGuide::SetTolerance ( const Standard_Real  Tol3d,
const Standard_Real  Tol2d 
)
virtual

Is usefull, if (me) have to run numerical algorithm to perform D0, D1 or D2 The default implementation make nothing.

Reimplemented from GeomFill_LocationLaw.

virtual void GeomFill_LocationGuide::SetTrsf ( const gp_Mat Transfo)
virtual

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

Implements GeomFill_LocationLaw.

virtual Standard_Integer GeomFill_LocationGuide::TraceNumber ( ) const
virtual

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

Reimplemented from GeomFill_LocationLaw.

Field Documentation

Handle< TColgp_HArray2OfPnt2d > GeomFill_LocationGuide::myPoles2d
protected

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