MeshCore::PolynomialFit Class Reference

#include <Approximation.h>

Inheritance diagram for MeshCore::PolynomialFit:
MeshCore::Approximation

List of all members.

Public Member Functions

float Fit ()
 Pure virtual function to fit the geometry to the given points.
 PolynomialFit ()
 Construction.
float Value (float x, float y) const
virtual ~PolynomialFit ()
 Destruction.

Protected Attributes

float _fCoeff [9]

Detailed Description

Definition at line 472 of file Approximation.h.


Constructor & Destructor Documentation

PolynomialFit::PolynomialFit (  ) 

Construction.

Definition at line 686 of file Approximation.cpp.

References _fCoeff, and SketcherExample::f.

PolynomialFit::~PolynomialFit (  )  [virtual]

Destruction.

Definition at line 692 of file Approximation.cpp.


Member Function Documentation

float PolynomialFit::Fit (  )  [virtual]

Pure virtual function to fit the geometry to the given points.

This function must be implemented by every subclass.

Implements MeshCore::Approximation.

Definition at line 696 of file Approximation.cpp.

References _fCoeff, MeshCore::Approximation::_vPoints, FLOAT_MAX, Wm4::PolyFit3< float >(), MovieTool::x, and MovieTool::y.

Referenced by MeshCore::AbstractPolygonTriangulator::ProjectOntoSurface().

float PolynomialFit::Value ( float  x,
float  y 
) const

Definition at line 720 of file Approximation.cpp.

References _fCoeff.

Referenced by MeshCore::AbstractPolygonTriangulator::ProjectOntoSurface().


Member Data Documentation

float MeshCore::PolynomialFit::_fCoeff[9] [protected]

Definition at line 488 of file Approximation.h.

Referenced by Fit(), PolynomialFit(), and Value().


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

Generated on Wed Nov 23 19:02:26 2011 for FreeCAD by  doxygen 1.6.1