OCC Main Page | ModelingData | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingData
TKG3d
AdvApprox


AdvApprox_ApproxAFunction Class Reference

#include <AdvApprox_ApproxAFunction.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT AdvApprox_ApproxAFunction (const Standard_Integer Num1DSS, const Standard_Integer Num2DSS, const Standard_Integer Num3DSS, const Handle(TColStd_HArray1OfReal)&OneDTol, const Handle(TColStd_HArray1OfReal)&TwoDTol, const Handle(TColStd_HArray1OfReal)&ThreeDTol, const Standard_Real First, const Standard_Real Last, const GeomAbs_Shape Continuity, const Standard_Integer MaxDeg, const Standard_Integer MaxSeg, const AdvApprox_EvaluatorFunction &Func)
 Warning:
the Function of type
EvaluatorFunction from Approx
must be an extern "C" function otherwise
this will NOT WORK
.
Standard_EXPORT AdvApprox_ApproxAFunction (const Standard_Integer Num1DSS, const Standard_Integer Num2DSS, const Standard_Integer Num3DSS, const Handle(TColStd_HArray1OfReal)&OneDTol, const Handle(TColStd_HArray1OfReal)&TwoDTol, const Handle(TColStd_HArray1OfReal)&ThreeDTol, const Standard_Real First, const Standard_Real Last, const GeomAbs_Shape Continuity, const Standard_Integer MaxDeg, const Standard_Integer MaxSeg, const AdvApprox_EvaluatorFunction &Func, const AdvApprox_Cutting &CutTool)
 Approximation with user methode of cutting
.
Standard_Boolean IsDone () const
Standard_Boolean HasResult () const
Handle_TColStd_HArray2OfReal Poles1d () const
 returns the poles from the algorithms as is

Handle_TColgp_HArray2OfPnt2d Poles2d () const
 returns the poles from the algorithms as is

Handle_TColgp_HArray2OfPnt Poles () const
 -- returns the poles from the algorithms as is

Standard_EXPORT Standard_Integer NbPoles () const
 as the name says

Standard_EXPORT void Poles1d (const Standard_Integer Index, TColStd_Array1OfReal &P) const
 returns the poles at Index from the 1d subspace

Standard_EXPORT void Poles2d (const Standard_Integer Index, TColgp_Array1OfPnt2d &P) const
 returns the poles at Index from the 2d subspace

Standard_EXPORT void Poles (const Standard_Integer Index, TColgp_Array1OfPnt &P) const
 returns the poles at Index from the 3d subspace

Standard_Integer Degree () const
Standard_Integer NbKnots () const
Standard_Integer NumSubSpaces (const Standard_Integer Dimension) const
Handle_TColStd_HArray1OfReal Knots () const
Handle_TColStd_HArray1OfInteger Multiplicities () const
Standard_EXPORT Handle_TColStd_HArray1OfReal MaxError (const Standard_Integer Dimension) const
 returns the error as is in the algorithms

Standard_EXPORT Handle_TColStd_HArray1OfReal AverageError (const Standard_Integer Dimension) const
 returns the error as is in the algorithms

Standard_EXPORT Standard_Real MaxError (const Standard_Integer Dimension, const Standard_Integer Index) const
Standard_EXPORT Standard_Real AverageError (const Standard_Integer Dimension, const Standard_Integer Index) const
Standard_EXPORT void Dump (Standard_OStream &o) const
 diplay information on approximation.


Static Public Member Functions

static Standard_EXPORT void Approximation (const Standard_Integer TotalDimension, const Standard_Integer TotalNumSS, const TColStd_Array1OfInteger &LocalDimension, const Standard_Real First, const Standard_Real Last, const AdvApprox_EvaluatorFunction &Evaluator, const AdvApprox_Cutting &CutTool, const Standard_Integer ContinuityOrder, const Standard_Integer NumMaxCoeffs, const Standard_Integer MaxSegments, const TColStd_Array1OfReal &TolerancesArray, const Standard_Integer code_precis, Standard_Integer &NumCurves, TColStd_Array1OfInteger &NumCoeffPerCurveArray, TColStd_Array1OfReal &LocalCoefficientArray, TColStd_Array1OfReal &IntervalsArray, TColStd_Array1OfReal &ErrorMaxArray, TColStd_Array1OfReal &AverageErrorArray, Standard_Integer &ErrorCode)

Private Member Functions

Standard_EXPORT void Perform (const Standard_Integer Num1DSS, const Standard_Integer Num2DSS, const Standard_Integer Num3DSS, const AdvApprox_Cutting &CutTool)

Private Attributes

Standard_Integer myNumSubSpaces [3]
Handle_TColStd_HArray1OfReal my1DTolerances
Handle_TColStd_HArray1OfReal my2DTolerances
Handle_TColStd_HArray1OfReal my3DTolerances
Standard_Real myFirst
Standard_Real myLast
GeomAbs_Shape myContinuity
Standard_Integer myMaxDegree
Standard_Integer myMaxSegments
Standard_Boolean myDone
Standard_Boolean myHasResult
Handle_TColStd_HArray2OfReal my1DPoles
Handle_TColgp_HArray2OfPnt2d my2DPoles
Handle_TColgp_HArray2OfPnt my3DPoles
Handle_TColStd_HArray1OfReal myKnots
Handle_TColStd_HArray1OfInteger myMults
Standard_Integer myDegree
AdvApprox_EvaluatorFunction myEvaluator
Handle_TColStd_HArray1OfReal my1DMaxError
Handle_TColStd_HArray1OfReal my1DAverageError
Handle_TColStd_HArray1OfReal my2DMaxError
Handle_TColStd_HArray1OfReal my2DAverageError
Handle_TColStd_HArray1OfReal my3DMaxError
Handle_TColStd_HArray1OfReal my3DAverageError


Constructor & Destructor Documentation

Standard_EXPORT AdvApprox_ApproxAFunction::AdvApprox_ApproxAFunction const Standard_Integer  Num1DSS,
const Standard_Integer  Num2DSS,
const Standard_Integer  Num3DSS,
const Handle(TColStd_HArray1OfReal)&  OneDTol,
const Handle(TColStd_HArray1OfReal)&  TwoDTol,
const Handle(TColStd_HArray1OfReal)&  ThreeDTol,
const Standard_Real  First,
const Standard_Real  Last,
const GeomAbs_Shape  Continuity,
const Standard_Integer  MaxDeg,
const Standard_Integer  MaxSeg,
const AdvApprox_EvaluatorFunction Func
 

Standard_EXPORT AdvApprox_ApproxAFunction::AdvApprox_ApproxAFunction const Standard_Integer  Num1DSS,
const Standard_Integer  Num2DSS,
const Standard_Integer  Num3DSS,
const Handle(TColStd_HArray1OfReal)&  OneDTol,
const Handle(TColStd_HArray1OfReal)&  TwoDTol,
const Handle(TColStd_HArray1OfReal)&  ThreeDTol,
const Standard_Real  First,
const Standard_Real  Last,
const GeomAbs_Shape  Continuity,
const Standard_Integer  MaxDeg,
const Standard_Integer  MaxSeg,
const AdvApprox_EvaluatorFunction Func,
const AdvApprox_Cutting CutTool
 


Member Function Documentation

static Standard_EXPORT void AdvApprox_ApproxAFunction::Approximation const Standard_Integer  TotalDimension,
const Standard_Integer  TotalNumSS,
const TColStd_Array1OfInteger &  LocalDimension,
const Standard_Real  First,
const Standard_Real  Last,
const AdvApprox_EvaluatorFunction Evaluator,
const AdvApprox_Cutting CutTool,
const Standard_Integer  ContinuityOrder,
const Standard_Integer  NumMaxCoeffs,
const Standard_Integer  MaxSegments,
const TColStd_Array1OfReal &  TolerancesArray,
const Standard_Integer  code_precis,
Standard_Integer &  NumCurves,
TColStd_Array1OfInteger &  NumCoeffPerCurveArray,
TColStd_Array1OfReal &  LocalCoefficientArray,
TColStd_Array1OfReal &  IntervalsArray,
TColStd_Array1OfReal &  ErrorMaxArray,
TColStd_Array1OfReal &  AverageErrorArray,
Standard_Integer &  ErrorCode
[static]
 

Standard_EXPORT Standard_Real AdvApprox_ApproxAFunction::AverageError const Standard_Integer  Dimension,
const Standard_Integer  Index
const
 

Standard_EXPORT Handle_TColStd_HArray1OfReal AdvApprox_ApproxAFunction::AverageError const Standard_Integer  Dimension  )  const
 

Standard_Integer AdvApprox_ApproxAFunction::Degree  )  const [inline]
 

Standard_EXPORT void AdvApprox_ApproxAFunction::Dump Standard_OStream &  o  )  const
 

Standard_Boolean AdvApprox_ApproxAFunction::HasResult  )  const [inline]
 

Standard_Boolean AdvApprox_ApproxAFunction::IsDone  )  const [inline]
 

Handle_TColStd_HArray1OfReal AdvApprox_ApproxAFunction::Knots  )  const
 

Standard_EXPORT Standard_Real AdvApprox_ApproxAFunction::MaxError const Standard_Integer  Dimension,
const Standard_Integer  Index
const
 

Standard_EXPORT Handle_TColStd_HArray1OfReal AdvApprox_ApproxAFunction::MaxError const Standard_Integer  Dimension  )  const
 

Handle_TColStd_HArray1OfInteger AdvApprox_ApproxAFunction::Multiplicities  )  const
 

Standard_Integer AdvApprox_ApproxAFunction::NbKnots  )  const [inline]
 

Standard_EXPORT Standard_Integer AdvApprox_ApproxAFunction::NbPoles  )  const
 

Standard_Integer AdvApprox_ApproxAFunction::NumSubSpaces const Standard_Integer  Dimension  )  const [inline]
 

void AdvApprox_ApproxAFunction::operator delete void *  anAddress  )  [inline]
 

void* AdvApprox_ApproxAFunction::operator new size_t  size  )  [inline]
 

void* AdvApprox_ApproxAFunction::operator new size_t  ,
void *  anAddress
[inline]
 

Standard_EXPORT void AdvApprox_ApproxAFunction::Perform const Standard_Integer  Num1DSS,
const Standard_Integer  Num2DSS,
const Standard_Integer  Num3DSS,
const AdvApprox_Cutting CutTool
[private]
 

Standard_EXPORT void AdvApprox_ApproxAFunction::Poles const Standard_Integer  Index,
TColgp_Array1OfPnt &  P
const
 

Handle_TColgp_HArray2OfPnt AdvApprox_ApproxAFunction::Poles  )  const
 

Standard_EXPORT void AdvApprox_ApproxAFunction::Poles1d const Standard_Integer  Index,
TColStd_Array1OfReal &  P
const
 

Handle_TColStd_HArray2OfReal AdvApprox_ApproxAFunction::Poles1d  )  const
 

Standard_EXPORT void AdvApprox_ApproxAFunction::Poles2d const Standard_Integer  Index,
TColgp_Array1OfPnt2d &  P
const
 

Handle_TColgp_HArray2OfPnt2d AdvApprox_ApproxAFunction::Poles2d  )  const
 


Field Documentation

Handle_TColStd_HArray1OfReal AdvApprox_ApproxAFunction::my1DAverageError [private]
 

Handle_TColStd_HArray1OfReal AdvApprox_ApproxAFunction::my1DMaxError [private]
 

Handle_TColStd_HArray2OfReal AdvApprox_ApproxAFunction::my1DPoles [private]
 

Handle_TColStd_HArray1OfReal AdvApprox_ApproxAFunction::my1DTolerances [private]
 

Handle_TColStd_HArray1OfReal AdvApprox_ApproxAFunction::my2DAverageError [private]
 

Handle_TColStd_HArray1OfReal AdvApprox_ApproxAFunction::my2DMaxError [private]
 

Handle_TColgp_HArray2OfPnt2d AdvApprox_ApproxAFunction::my2DPoles [private]
 

Handle_TColStd_HArray1OfReal AdvApprox_ApproxAFunction::my2DTolerances [private]
 

Handle_TColStd_HArray1OfReal AdvApprox_ApproxAFunction::my3DAverageError [private]
 

Handle_TColStd_HArray1OfReal AdvApprox_ApproxAFunction::my3DMaxError [private]
 

Handle_TColgp_HArray2OfPnt AdvApprox_ApproxAFunction::my3DPoles [private]
 

Handle_TColStd_HArray1OfReal AdvApprox_ApproxAFunction::my3DTolerances [private]
 

GeomAbs_Shape AdvApprox_ApproxAFunction::myContinuity [private]
 

Standard_Integer AdvApprox_ApproxAFunction::myDegree [private]
 

Standard_Boolean AdvApprox_ApproxAFunction::myDone [private]
 

AdvApprox_EvaluatorFunction AdvApprox_ApproxAFunction::myEvaluator [private]
 

Standard_Real AdvApprox_ApproxAFunction::myFirst [private]
 

Standard_Boolean AdvApprox_ApproxAFunction::myHasResult [private]
 

Handle_TColStd_HArray1OfReal AdvApprox_ApproxAFunction::myKnots [private]
 

Standard_Real AdvApprox_ApproxAFunction::myLast [private]
 

Standard_Integer AdvApprox_ApproxAFunction::myMaxDegree [private]
 

Standard_Integer AdvApprox_ApproxAFunction::myMaxSegments [private]
 

Handle_TColStd_HArray1OfInteger AdvApprox_ApproxAFunction::myMults [private]
 

Standard_Integer AdvApprox_ApproxAFunction::myNumSubSpaces[3] [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Aug 25 13:22:26 2008 for OpenCASCADE by  doxygen 1.4.1