#include <DTGrid1D.hpp>
Protected Member Functions | |
void | set_value_list_1D (K *, int) |
DTGrid1D 'value' array setup. | |
void | set_xcoord_list (K *, int) |
xCoord array setup | |
void | set_ptr_list_1D (K *, int) |
acc (1D) array setup | |
ArrayPrs< K >::PairArray * | accessx (int) |
Reset pointers for random access. Similar to that for DT-Grid2D. | |
ArrayPrs< K >::PairArray * | accessx2 (int) |
A more compact version of the random access function of DTGrid1D class. | |
T * | getVoxelxyz (T *, int, int, int) |
void | Reset_pointers_1D (void) |
Protected Attributes | |
ArrayPrs< K > * | Value_List_1D |
ArrayPrs< K > * | Xcoord_List |
ArrayPtr< T, K > * | Ptr_List_1D |
int | Length_of_Value_List_1D |
int | Length_of_Xcoord_List |
int | Length_of_Ptr_List_1D |
int | set_countdown_1 |
Private Member Functions | |
~DTGrid1D () | |
DTGrid3D destructor. | |
Friends | |
template<class M , class H > | |
class | DTGrid2D |
template<class M , class H > | |
class | DTGrid3D |
class | DTGrid3Dex |
Reset pointers for random access. Similar to that for DT-Grid2D.
The function is not required when the pointers are not used as global variables. Random access function of DTGrid1D class.
a | index x of the data value to be returned |
A more compact version of the random access function of DTGrid1D class.
a | index x of the data value to be returned. |
1D DT-Grid is assumed to consist only of one connected component.
Therefore no iteration required. Computational gain is not significant.
acc (1D) array setup
Read and store the list of pointers to the first member of each of the connected components in a 1D DT-Grid.
values | pointer to the array that stores the acc array indices. |
length | length of the acc array. |
xCoord array setup
Read and store the xCoord array that stores in minimum and maximum coordinates of the connected components in x direction.
values | the pointer that addresses to the values of xCoord array. |
length | the length of the xCoord array. |