#include <BALL/DATATYPE/contourSurface.h>
Public Member Functions | |
Cube (const TRegularData3D< T > &grid) | |
void | setTo (Position p) |
Vector3 | getOrigin () const |
const Vector3 & | getSpacing () const |
Vector3 | getCoordinates (Position index) const |
Position | getIndex (Position corner) const |
Return the absolute grid position for a given corner. | |
void | shift () |
Position | computeTopology (double threshold) |
Compute the topology code for the current cube. | |
Public Attributes | |
double | values [8] |
Protected Attributes | |
const TRegularData3D< T > * | grid_ |
Position | current_position_ |
Position | grid_offset_ [8] |
const T * | ptr_ |
Vector3 | spacing_ |
A cube in the grid. This class is used to extract information from the grid, store the values of the eight corners of a cube, and determine the topology and the triangles in the cube.
BALL::TContourSurface< T >::Cube::Cube | ( | const TRegularData3D< T > & | grid | ) | [inline] |
Position BALL::TContourSurface< T >::Cube::computeTopology | ( | double | threshold | ) | [inline] |
Compute the topology code for the current cube.
References BALL::TContourSurface< T >::Cube::values.
Vector3 BALL::TContourSurface< T >::Cube::getCoordinates | ( | Position | index | ) | const [inline] |
Position BALL::TContourSurface< T >::Cube::getIndex | ( | Position | corner | ) | const [inline] |
Return the absolute grid position for a given corner.
References BALL::TContourSurface< T >::Cube::current_position_, and BALL::TContourSurface< T >::Cube::grid_offset_.
Vector3 BALL::TContourSurface< T >::Cube::getOrigin | ( | ) | const [inline] |
const Vector3& BALL::TContourSurface< T >::Cube::getSpacing | ( | ) | const [inline] |
References BALL::TContourSurface< T >::Cube::spacing_.
void BALL::TContourSurface< T >::Cube::setTo | ( | Position | p | ) | [inline] |
void BALL::TContourSurface< T >::Cube::shift | ( | ) | [inline] |
Position BALL::TContourSurface< T >::Cube::current_position_ [protected] |
const TRegularData3D<T>* BALL::TContourSurface< T >::Cube::grid_ [protected] |
Position BALL::TContourSurface< T >::Cube::grid_offset_[8] [protected] |
const T* BALL::TContourSurface< T >::Cube::ptr_ [protected] |
Referenced by BALL::TContourSurface< T >::Cube::setTo(), and BALL::TContourSurface< T >::Cube::shift().
Vector3 BALL::TContourSurface< T >::Cube::spacing_ [protected] |
Referenced by BALL::TContourSurface< T >::Cube::getSpacing().
double BALL::TContourSurface< T >::Cube::values[8] |