#include <VectorField.h>
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. | |
CSamplePoint * | GetVField (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. |
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.
|
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. |
|
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] |