MeshCore::FunctionContainer Class Reference

Hilfs-Klasse für den Quadric-Fit. More...

#include <Approximation.h>

List of all members.

Public Types

typedef float(* Function )(float, float, float)
 Die MGC-Algorithmen arbeiten mit Funktionen dieses Types.

Public Member Functions

void Assign (const float *pKoef)
 Übernehmen der Quadric-Parameter.
bool CurvatureInfo (float x, float y, float z, float &rfCurv0, float &rfCurv1)
bool CurvatureInfo (float x, float y, float z, float &rfCurv0, float &rfCurv1, Wm4::Vector3< float > &rkDir0, Wm4::Vector3< float > &rkDir1, float &dDistance)
 Redirector auf eine Methode der MGC Bibliothek.
 FunctionContainer (const float *pKoef)
 Der parametrisierte Konstruktor.
Base::Vector3f GetGradient (float x, float y, float z) const
Base::Matrix4D GetHessian (float x, float y, float z) const
float & operator[] (int idx)
 Zugriff auf die Koeffizienten der Quadric.
virtual ~FunctionContainer ()
 Destruktor.

Static Public Member Functions

static float F (float x, float y, float z)
static float Fx (float x, float y, float z)
static float Fxx (float x, float y, float z)
static float Fxy (float x, float y, float z)
static float Fxz (float x, float y, float z)
static float Fy (float x, float y, float z)
static float Fyy (float x, float y, float z)
static float Fyz (float x, float y, float z)
static float Fz (float x, float y, float z)
static float Fzz (float x, float y, float z)

Protected Attributes

Wm4::ImplicitSurface< float > * pImplSurf
 Zugriff auf die MGC-Bibliothek.

Static Protected Attributes

static float dKoeff [10]
 Koeffizienten der Quadric.

Detailed Description

Hilfs-Klasse für den Quadric-Fit.

Beinhaltet die partiellen Ableitungen der Quadric und dient zur Berechnung der Quadrik-Eigenschaften.

Definition at line 296 of file Approximation.h.


Member Typedef Documentation

typedef float(* MeshCore::FunctionContainer::Function)(float, float, float)

Die MGC-Algorithmen arbeiten mit Funktionen dieses Types.

Definition at line 303 of file Approximation.h.


Constructor & Destructor Documentation

MeshCore::FunctionContainer::FunctionContainer ( const float *  pKoef  )  [inline]

Der parametrisierte Konstruktor.

Erwartet ein Array mit den Quadric-Koeffizienten.

Parameters:
pKoef Zeiger auf die Quadric-Parameter (float [10])

Definition at line 310 of file Approximation.h.

References Assign(), dKoeff, and pImplSurf.

virtual MeshCore::FunctionContainer::~FunctionContainer (  )  [inline, virtual]

Destruktor.

Löscht die ImpicitSurface Klasse der MGC-Bibliothek wieder

Definition at line 347 of file Approximation.h.

References pImplSurf.


Member Function Documentation

void MeshCore::FunctionContainer::Assign ( const float *  pKoef  )  [inline]

Übernehmen der Quadric-Parameter.

Parameters:
pKoef Zeiger auf die Quadric-Parameter (doube [10])

Definition at line 338 of file Approximation.h.

References dKoeff.

Referenced by FunctionContainer().

bool MeshCore::FunctionContainer::CurvatureInfo ( float  x,
float  y,
float  z,
float &  rfCurv0,
float &  rfCurv1 
) [inline]

Definition at line 390 of file Approximation.h.

References dKoeff, Fx(), Fy(), Fz(), and KDL::sqrt().

bool MeshCore::FunctionContainer::CurvatureInfo ( float  x,
float  y,
float  z,
float &  rfCurv0,
float &  rfCurv1,
Wm4::Vector3< float > &  rkDir0,
Wm4::Vector3< float > &  rkDir1,
float &  dDistance 
) [inline]

Redirector auf eine Methode der MGC Bibliothek.

Ermittelt die Hauptkrümmungen und ihre Richtungen im angegebenen Punkt.

Parameters:
x X-Koordinate
y Y-Koordinate
z Z-Koordinate
rfCurv0 1. Hauptkrümmung
rfCurv1 2. Hauptkrümmung
rkDir0 Richtung der 1. Hauptkrümmung
rkDir1 Richtung der 2. Hauptkrümmung
dDistance Ergebnis das die Entfernung des Punktes von der Quadrik angibt.
Returns:
bool Fehlerfreie Ausfürhung = true, ansonsten false

Definition at line 367 of file Approximation.h.

References Wm4::ImplicitSurface< Real >::ComputePrincipalCurvatureInfo(), and pImplSurf.

Referenced by MeshCore::SurfaceFit::GetCurvatureInfo(), and MeshCore::QuadraticFit::GetCurvatureInfo().

static float MeshCore::FunctionContainer::F ( float  x,
float  y,
float  z 
) [inline, static]

Definition at line 414 of file Approximation.h.

References dKoeff.

Referenced by MeshCore::SurfaceFit::Value().

static float MeshCore::FunctionContainer::Fx ( float  x,
float  y,
float  z 
) [inline, static]

Definition at line 422 of file Approximation.h.

References dKoeff, and SketcherExample::f.

Referenced by CurvatureInfo().

static float MeshCore::FunctionContainer::Fxx ( float  x,
float  y,
float  z 
) [inline, static]

Definition at line 436 of file Approximation.h.

References dKoeff, and SketcherExample::f.

static float MeshCore::FunctionContainer::Fxy ( float  x,
float  y,
float  z 
) [inline, static]

Definition at line 440 of file Approximation.h.

References dKoeff.

static float MeshCore::FunctionContainer::Fxz ( float  x,
float  y,
float  z 
) [inline, static]

Definition at line 444 of file Approximation.h.

References dKoeff.

static float MeshCore::FunctionContainer::Fy ( float  x,
float  y,
float  z 
) [inline, static]

Definition at line 426 of file Approximation.h.

References dKoeff, and SketcherExample::f.

Referenced by CurvatureInfo().

static float MeshCore::FunctionContainer::Fyy ( float  x,
float  y,
float  z 
) [inline, static]

Definition at line 448 of file Approximation.h.

References dKoeff, and SketcherExample::f.

static float MeshCore::FunctionContainer::Fyz ( float  x,
float  y,
float  z 
) [inline, static]

Definition at line 452 of file Approximation.h.

References dKoeff.

static float MeshCore::FunctionContainer::Fz ( float  x,
float  y,
float  z 
) [inline, static]

Definition at line 430 of file Approximation.h.

References dKoeff, and SketcherExample::f.

Referenced by CurvatureInfo().

static float MeshCore::FunctionContainer::Fzz ( float  x,
float  y,
float  z 
) [inline, static]

Definition at line 456 of file Approximation.h.

References dKoeff, and SketcherExample::f.

Base::Vector3f MeshCore::FunctionContainer::GetGradient ( float  x,
float  y,
float  z 
) const [inline]
Base::Matrix4D MeshCore::FunctionContainer::GetHessian ( float  x,
float  y,
float  z 
) const [inline]
float& MeshCore::FunctionContainer::operator[] ( int  idx  )  [inline]

Zugriff auf die Koeffizienten der Quadric.

Parameters:
idx Index des Parameters
Returns:
float& Der Koeffizient

Definition at line 353 of file Approximation.h.

References dKoeff.


Member Data Documentation

float FunctionContainer::dKoeff [static, protected]

Koeffizienten der Quadric.

Definition at line 462 of file Approximation.h.

Referenced by Assign(), CurvatureInfo(), F(), FunctionContainer(), Fx(), Fxx(), Fxy(), Fxz(), Fy(), Fyy(), Fyz(), Fz(), Fzz(), and operator[]().

Zugriff auf die MGC-Bibliothek.

Definition at line 463 of file Approximation.h.

Referenced by CurvatureInfo(), FunctionContainer(), GetGradient(), GetHessian(), and ~FunctionContainer().


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

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