Diffpack Documentation


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

ParametricTPSurface Class Reference

parametric tensor product B-spline surface. More...

#include <ParametricTPSurface.h>

List of all members.

Public Methods

 ParametricTPSurface ()
 ~ParametricTPSurface ()
bool redim (const SplineSpace &space1_, const SplineSpace &space2_)
bool ok () const
Ptv(NUMT) operator() (real t1, real t2)
Ptv(NUMT) derivative (int order1, int order2, real t1, real t2)
void makeTable (int num1, int num2, MatSimple(NUMT) &xtable, MatSimple(NUMT) &ytable, MatSimple(NUMT) &ztable)
void interpolation (const MatSimple(NUMT) &xm, const MatSimple(NUMT) &ym, const MatSimple(NUMT) &zm, int k1=4, int k2=4, const char *method1="Uniform", const char *method2="Uniform", bool repeat=false)
void scan (Is is)
void setCoef (const MatSimple(NUMT) &xc, const MatSimple(NUMT) &yc, const MatSimple(NUMT) &zc)
void getCoef (MatSimple(NUMT) &xc, MatSimple(NUMT) &yc, MatSimple(NUMT) &zc)


Detailed Description

parametric tensor product B-spline surface.

NAME: ParametricTPSurface - parametric tensor product B-spline surface

DESCRIPTION:

A class for representation of the parametric tensor product surface. It is built on the basis of class TPSurface


Constructor & Destructor Documentation

ParametricTPSurface::ParametricTPSurface ( ) [inline]
 

No special initialization is needed.

ParametricTPSurface::~ParametricTPSurface ( ) [inline]
 


Member Function Documentation

Ptv(NUMT) ParametricTPSurface::derivative ( int order1,
int order2,
real t1,
real t2 )
 

returns also a "Ptv(NUMT)" as result which contains the corresponding derivatives to the two parameters.

void ParametricTPSurface::getCoef ( MatSimple(NUMT) & xc,
MatSimple(NUMT) & yc,
MatSimple(NUMT) & zc )
 

gets the coefficients.

void ParametricTPSurface::interpolation ( const MatSimple(NUMT) & xm,
const MatSimple(NUMT) & ym,
const MatSimple(NUMT) & zm,
int k1 = 4,
int k2 = 4,
const char * method1 = "Uniform",
const char * method2 = "Uniform",
bool repeat = false )
 

carries out interpolation according to input data. This is the only interpolation function in the class. The orders for the two spline spaces can be specified as input. The function operates in two modes:

(i) If both of the Spline spaces are already built up and the input data are suitable, an interpolation is taken out using the original spline spaces.

(ii) Otherwise, new spline spaces will be created and used in the inpolation process.

void ParametricTPSurface::makeTable ( int num1,
int num2,
MatSimple(NUMT) & xtable,
MatSimple(NUMT) & ytable,
MatSimple(NUMT) & ztable )
 

fills three "MatSimple(NUMT)" objects with x,y and z values.

bool ParametricTPSurface::ok ( ) const
 

checks whether the surface is ready for usage.

Ptv(NUMT) ParametricTPSurface::operator() ( real t1,
real t2 )
 

bool ParametricTPSurface::redim ( const SplineSpace & space1_,
const SplineSpace & space2_ ) [inline]
 

attaches new spline spaces.

void ParametricTPSurface::scan ( Is is )
 

reads interpolating data directly from an ASCII file and carries out cubic interpolation.

void ParametricTPSurface::setCoef ( const MatSimple(NUMT) & xc,
const MatSimple(NUMT) & yc,
const MatSimple(NUMT) & zc )
 

assigns the three coefficient matrices.


The documentation for this class was generated from the following file:
Copyright © 2003 inuTech GmbH. All rights reserved.