Main Page   Class Hierarchy   Compound List   File List   Compound Members  

CVectorField Class Reference

A class representing a vectorfield. More...

#include <VectorField.h>

List of all members.

Public Methods

void CalcMinMaxScalars ()
void InitMinMaxPos ()
 Allocates memory for the field.

float GetXRange ()
 Returns range of field in x-dimension.

float GetYRange ()
 Returns range of field in y-dimension.

float GetZRange ()
 Returns range of field in z-dimension.

float GetWindowXRange ()
 Returns range of field window in x-dimension.

float GetWindowYRange ()
 Returns range of field window in y-dimension.

float GetWindowZRange ()
 Returns range of field window in z-dimension.

void SetMinAdditional (int index, float value)
 Sets minimal additional info value on specified index.

void SetMaxAdditional (int index, float value)
 Sets minimal additional info value on specified index.

float GetMinAdditional (int index)
 Returns minimal additional info value on specified index.

float GetMaxAdditional (int index)
 Returns maximal additional info value on specified index.

void SetMinVectorLength (float vectorLength)
 Sets minimal vector length of field.

float GetMinVectorLength ()
 Returns minimal vector length of field.

void SetMaxVectorLength (float vectorLength)
 Sets maximal vector length of field.

float GetMaxVectorLength ()
 Returns maximal vector length of field.

void SetWinMinMaxPos (CPoint3D &minPos, CPoint3D &maxPos)
 Sets minimum and maximum positions for window of interest in vectorfield.

void SetMinMaxPos (CPoint3D &minPos, CPoint3D &maxPos)
 Sets minimum and maximum positions in vectorfield.

void SetSeedMinMaxPos (CPoint3D &minPos, CPoint3D &maxPos)
 Sets minimum and maximum seedpoint positions in vectorfield.

CSamplePoint ** GetSamplePoints (CPoint3D &pos)
 Returns the 8 samplepoints surrounding the position pos. More...

void CreateField (CSampler *sampler, CProgressCtrl *progress)
 Creates field with analytical formula given by sampler. More...

void SetDim (int XDim, int YDim, int ZDim)
 Sets dimensions of vectorfield.

void SetVField (CSamplePoint &sp, int xIndex, int yIndex, int zIndex)
 Sets samplepoint sp on index xIndex, yIndex, zIndex ín samplepoint-grid.

int GetXDim ()
 Returns x-dimension of samplepoints-grid.

int GetYDim ()
 Returns y-dimension of samplepoints-grid.

int GetZDim ()
 Returns z-dimension of samplepoints-grid.

CSamplePointGetVField (int xIndex, int yIndex, int zIndex)
 Returns samplepoint on specified index ín samplepoint-grid.

 CVectorField ()
 Initialises vectorfield with samplepoint-grid = NULL.

 CVectorField (int xDim, int yDim, int zDim)
 Initialises vectorfield with dimensions xDim,yDim,zDim.

virtual ~CVectorField ()

Public Attributes

CPoint3D m_MaxPos
 Maximal position value of the samplepoints.

CPoint3D m_MinPos
 Minimal position value of the samplepoints.

CPoint3D m_WinMaxPos
 Maximal position value of the calculation window.

CPoint3D m_WinMinPos
 Minimal position value of the calculation window.

CPoint3D m_SeedMaxPos
 Maximal position value of a new seedpoint.

CPoint3D m_SeedMinPos
 Minimal xosition value of a new seedpoint.


Detailed Description

A class representing a vectorfield.

This class consists of samplepoints approximating a 3D-flowfield The grid can be rectilinear or cartesian. The class also contains a grid with cell size dSep. which is used for the valitation of new samplepoints. This dSep grid stores a list of samplepoint for every grid cell.


Member Function Documentation

void CVectorField::CreateField CSampler   sampler,
CProgressCtrl *    progress
 

Creates field with analytical formula given by sampler.

Creates field with analytical formula given by sampler. if sampler is NULL, only the memory for the field is allocated. CProgressCtrl progress is updated each time the x-index of he loop is increased. It must be set to NULL if not wanted.

CSamplePoint ** CVectorField::GetSamplePoints CPoint3D   pos
 

Returns the 8 samplepoints surrounding the position pos.

Function uses binary search to get surrounding samplepoints in vector with 8 samplepoints for example: array[5] = array[B_101] = samplepoint an den Koordinaten [upper-x][upper-y][lower-z]


The documentation for this class was generated from the following files:
Generated on Fri Aug 9 10:12:40 2002 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002