Field3D
|
#include <SparseField.h>
Public Types | |
typedef SparseField< Data_T > | class_type |
typedef SparseField< Data_T > | class_type |
Convenience typedef. | |
typedef CubicGenericFieldInterp< SparseField< Data_T > > | CubicInterp |
typedef LinearSparseFieldInterp< Data_T > | LinearInterp |
typedef boost::intrusive_ptr< SparseField > | Ptr |
typedef std::vector< Ptr > | Vec |
![]() | |
typedef ResizableField< Data_T > | class_type |
typedef boost::intrusive_ptr< ResizableField > | Ptr |
![]() | |
typedef WritableField< Data_T > | class_type |
typedef boost::intrusive_ptr< WritableField > | Ptr |
![]() | |
typedef Field< Data_T > | class_type |
typedef boost::intrusive_ptr< Field > | Ptr |
typedef Data_T | value_type |
Allows us to reference the template class. | |
typedef std::vector< Ptr > | Vec |
This is a convenience typedef for the list that Field3DInputFile::readScalarLayers() and Field3DInputFile::readVectorLayers() will return its data in. | |
![]() | |
typedef FieldRes | class_type |
typedef boost::intrusive_ptr< FieldRes > | Ptr |
typedef std::vector< Ptr > | Vec |
![]() | |
typedef FieldBase | class_type |
typedef boost::intrusive_ptr< FieldBase > | Ptr |
![]() | |
typedef boost::intrusive_ptr< RefBase > | Ptr |
typedef boost::weak_ptr< RefBase > | WeakPtr |
Public Member Functions | |
void | addReference (const std::string &filename, const std::string &layerPath, int valuesPerBlock, int numVoxels, int occupiedBlocks) |
Internal function to create a Reference for the current field, for use in dynamic reading. | |
block_iterator (const class_type &field, const Box3i &window, const V3i ¤tPos) | |
Constructor. | |
const Box3i & | blockBoundingBox () |
Returns a reference to the bounding box representing the current block. | |
Data_T * | blockData (int bi, int bj, int bk) const |
Returns a pointer to the data in a block, or null if the given block is unallocated. | |
Data_T & | fastLValue (int i, int j, int k) |
Write access to voxel. Notice that this is non-virtual. | |
Data_T | fastValue (int i, int j, int k) const |
Read access to voxel. Notice that this is non-virtual. | |
bool | operator!= (const block_iterator &rhs) const |
Inequality check. | |
const block_iterator & | operator++ () |
Increment iterator. | |
bool | operator== (const block_iterator &rhs) const |
Equality check. | |
void | setupReferenceBlocks () |
Internal function to setup the Reference's block pointers, for use with dynamic reading. | |
Constructors & destructor | |
SparseField () | |
Constructs an empty buffer. | |
SparseField (const SparseField &o) | |
Copy constructor. | |
~SparseField () | |
Destructor. | |
SparseField & | operator= (const SparseField &o) |
Assignment operator. For cache-managed fields, it creates a new file reference, and for non-managed fields, it copies the data. | |
virtual void | clear (const Data_T &value) |
Clears all the voxels in the storage. | |
void | setBlockOrder (int order) |
Sets the block order (i.e. the power-of-2 to use as block size. | |
int | blockOrder () const |
Returns the block order. | |
int | blockSize () const |
Returns the block size. | |
bool | voxelIsInAllocatedBlock (int i, int j, int k) const |
Checks if a voxel is in an allocated block. | |
bool | blockIsAllocated (int bi, int bj, int bk) const |
Checks if a block is allocated. | |
const Data_T | getBlockEmptyValue (int bi, int bj, int bk) const |
Returns the constant value of an block, whether it's allocated already or not.. | |
void | setBlockEmptyValue (int bi, int bj, int bk, const Data_T &val) |
Sets the constant value of an block. If the block is already allocated, it gets deallocated. | |
bool | blockIndexIsValid (int bi, int bj, int bk) const |
Returns whether a block index is valid. | |
V3i | blockRes () const |
Returns the resolution of the block array. | |
int | releaseBlocks (Functor_T func) |
Releases any blocks that are deemed empty. This can be used to clean up after algorithms that write "zero" values to the buffer, as well as after any narrow band levelset algorithms. | |
int | blockId (int blockI, int blockJ, int blockK) const |
Calculates the block number based on a block i,j,k index. | |
void | getBlockCoord (int i, int j, int k, int &bi, int &bj, int &bk) const |
Calculates the block coordinates that a given set of voxel coords are in. | |
void | getVoxelInBlock (int i, int j, int k, int &vi, int &vj, int &vk) const |
Calculates the coordinates in a block for the given voxel index. | |
void | applyDataWindowOffset (int &i, int &j, int &k) const |
Applies data window offset. | |
bool | isDynamicLoad () const |
Whether the field is dynamically loaded. | |
void | incBlockRef (const int blockId) const |
Increments the block ref count for the given block. | |
void | activateBlock (const int blockId) const |
Activates a given block. | |
void | decBlockRef (const int blockId) const |
Decrements the block ref count for the given block. | |
size_t | numGrains () const |
Number of 'grains' to use with threaded access. | |
bool | getGrainBounds (const size_t idx, Box3i &vsBounds) const |
Bounding box of the given 'grain'. | |
From Field | |
virtual Data_T | value (int i, int j, int k) const |
Read access to a voxel. The coordinates are in integer voxel space . | |
virtual long long int | memSize () const |
Returns the memory usage (in bytes) | |
virtual size_t | voxelCount () const |
Counts the number of voxels. For most fields, this is just the volume of the data window, but sparse data structures can override this to return a better value. | |
From WritableField | |
virtual Data_T & | lvalue (int i, int j, int k) |
Write access to a voxel. The coordinates are global coordinates. | |
Iterators | |
const_iterator | cbegin () const |
Const iterator to first element. "cbegin" matches the tr1 c++ standard. | |
const_iterator | cbegin (const Box3i &subset) const |
Const iterator to first element of specific subset. | |
const_iterator | cend () const |
Const iterator pointing one element past the last valid one. | |
const_iterator | cend (const Box3i &subset) const |
Const iterator pointing one element past the last valid one (for a subset) | |
iterator | begin () |
Iterator to first element. | |
iterator | begin (const Box3i &subset) |
Iterator to first element of specific subset. | |
iterator | end () |
Iterator pointing one element past the last valid one. | |
iterator | end (const Box3i &subset) |
Iterator pointing one element past the last valid one (for a subset) | |
block_iterator | blockBegin () const |
block_iterator | blockEnd () const |
Const iterator pointing to element one past the last valid block. | |
![]() | |
void | copyFrom (typename Field< Data_T >::Ptr other) |
Copies the data from another Field, also resizes. | |
template<class Data_T2> | |
void | copyFrom (typename Field< Data_T2 >::Ptr other) |
Copies the data from another Field of another template class, also resizes. | |
void | matchDefinition (FieldRes::Ptr fieldToMatch) |
Sets up this field so that resolution and mapping matches the other. | |
void | setSize (const Box3i &extents) |
Resizes the object. | |
void | setSize (const Box3i &extents, const Box3i &dataWindow) |
Resizes the object. | |
void | setSize (const V3i &size) |
Resizes the object. | |
void | setSize (const V3i &size, int padding) |
Resizes the object with padding. | |
![]() | |
iterator | begin () |
Iterator to first element. | |
iterator | begin (const Box3i &subset) |
Iterator to first element of specific subset. | |
iterator | end () |
Iterator pointing one element past the last valid one. | |
iterator | end (const Box3i &subset) |
Iterator pointing one element past the last valid one (for a subset) | |
![]() | |
const_iterator | cbegin () const |
Const iterator to first element. "cbegin" matches the tr1 c++ standard. | |
const_iterator | cbegin (const Box3i &subset) const |
Const iterator to first element of specific subset. | |
const_iterator | cend () const |
Const iterator pointing one element past the last valid one. | |
const_iterator | cend (const Box3i &subset) const |
Const iterator pointing one element past the last valid one (for a subset) | |
virtual std::string | dataTypeString () const |
virtual | ~Field () |
Dtor. | |
![]() | |
V3i const | dataResolution () const |
const Box3i & | dataWindow () const |
Returns the data window. Any coordinate inside this window is safe to pass to value() in the Field subclass. | |
const Box3i & | extents () const |
Returns the extents of the data. This signifies the relevant area that the data exists over. However, the data window (below) may be smaller than the extents, in which case it is only safe to call value() for those coordinate inside the data window. | |
FieldRes () | |
This constructor ensures that we have a valid mapping at all times. | |
FieldRes (const FieldRes &src) | |
Base class copy constructor. | |
bool | isInBounds (int i, int j, int k) const |
Returns true is the indicies are in bounds of the data window. | |
FieldMapping::Ptr | mapping () |
Returns a pointer to the mapping. | |
const FieldMapping::Ptr | mapping () const |
Returns a pointer to the mapping. | |
virtual void | mappingChanged () |
Tells the subclass that the mapping changed. | |
void | setMapping (FieldMapping::Ptr mapping) |
Sets the field's mapping. | |
![]() | |
FieldBase () | |
Constructor. | |
FieldBase (const FieldBase &) | |
Copy Constructor. | |
virtual | ~FieldBase () |
Destructor. | |
virtual std::string | className () const =0 |
Returns the class name of the object. Used by the class pool and when writing the data to disk. | |
virtual std::string | classType () const =0 |
Returns the full class type string. | |
FieldMetadata & | metadata () |
accessor to the m_metadata class | |
const FieldMetadata & | metadata () const |
Read only access to the m_metadata class. | |
void | copyMetadata (const FieldBase &field) |
Copies the metadata from a second field. | |
![]() | |
void | ref () const |
Used by boost::intrusive_pointer. | |
size_t | refcnt () |
Used by boost::intrusive_pointer. | |
void | unref () const |
Used by boost::intrusive_pointer. | |
WeakPtr | weakPtr () const |
RefBase () | |
RefBase (const RefBase &) | |
Copy constructor. | |
RefBase & | operator= (const RefBase &) |
Assignment operator. | |
virtual | ~RefBase () |
Destructor. | |
virtual bool | checkRTTI (const char *typenameStr)=0 |
This function is only implemented by concrete classes and triggers the actual RTTI check through matchRTTI();. | |
bool | matchRTTI (const char *typenameStr) |
Performs a check to see if the given typename string matches this class' This needs to be implemented in -all- subclasses, even abstract ones. | |
![]() | |
virtual void | metadataHasChanged (const std::string &) |
Alerts the callback holder that the metadata has changed. | |
Static Public Member Functions | |
static const char * | staticClassName () |
static const char * | staticClassType () |
![]() | |
static const char * | staticClassName () |
static const char * | staticClassType () |
![]() | |
static const char * | staticClassName () |
static const char * | staticClassType () |
![]() | |
static const char * | staticClassName () |
static const char * | staticClassType () |
![]() | |
static const char * | staticClassName () |
static const char * | staticClassType () |
![]() | |
static const char * | staticClassName () |
static const char * | staticClassType () |
static const char * | staticClassType () |
Public Attributes | |
DEFINE_FIELD_RTTI_CONCRETE_CLASS | |
int | x |
Current block index. | |
int | y |
int | z |
![]() | |
DEFINE_FIELD_RTTI_ABSTRACT_CLASS | |
![]() | |
DEFINE_FIELD_RTTI_ABSTRACT_CLASS | |
![]() | |
DEFINE_FIELD_RTTI_ABSTRACT_CLASS | |
![]() | |
DEFINE_FIELD_RTTI_ABSTRACT_CLASS | |
![]() | |
std::string | attribute |
Optional name of the attribute the field represents. | |
std::string | name |
Optional name of the field. | |
Protected Types | |
typedef ResizableField< Data_T > | base |
typedef Sparse::SparseBlock< Data_T > | Block |
![]() | |
typedef WritableField< Data_T > | base |
![]() | |
typedef MatrixFieldMapping | default_mapping |
Protected Member Functions | |
virtual void | sizeChanged () |
Subclasses should re-implement this if they need to perform memory allocations, etc. every time the size of the storage changes. | |
Convenience methods | |
void | setupBlocks () |
Initializes the block structure. Will clear any existing data. | |
void | deallocBlock (Block &block, const Data_T &emptyValue) |
Deallocated the data of the given block and sets its empty value. | |
Protected Attributes | |
int | m_blockOrder |
Block order (size = 2^blockOrder) | |
V3i | m_blockRes |
Block array resolution. | |
Block * | m_blocks |
Array of blocks. Not using std::vector since SparseBlock is noncopyable. | |
int | m_blockXYSize |
Block array res.x * res.y. | |
Data_T | m_dummy |
Dummy value used when needing to return but indicating a failed call. | |
int | m_fileId |
File id. Used with m_fileManager if active. Otherwise -1. | |
SparseFileManager * | m_fileManager |
Pointer to SparseFileManager. Used when doing dynamic reading. NULL if not in use. | |
size_t | m_numBlocks |
Number of blocks in field. | |
![]() | |
Box3i | m_dataWindow |
Defines the area where data is allocated. This should be treated as a closed (i.e. inclusive) interval. | |
Box3i | m_extents |
Defines the extents of the the storage. This may be larger or smaller than the data window, and in the case where it is larger, care must be taken not to access voxels outside the data window. This should be treated as a closed (i.e. inclusive) interval. | |
FieldMapping::Ptr | m_mapping |
Pointer to the field's mapping. | |
Private Member Functions | |
void | copyBlockStates (const SparseField< Data_T > &o) |
Internal function to copy empty values and allocated flags, without copying data, used when copying a dynamically read field. | |
void | copySparseField (const SparseField &o) |
Copies internal data, including blocks, from another SparseField, used by copy constructor and operator=. | |
void | recomputeBlockBoundingBox () |
Private Attributes | |
Box3i | m_currentBlockWindow |
Bounding box in voxel coordinates for the current block. | |
const class_type & | m_field |
Pointer to field we're traversing. | |
Box3i | m_window |
Bounding box for block indices. | |
Static Private Attributes | |
static TemplatedFieldType< SparseField< Data_T > > | ms_classType |
Friends | |
class | SparseFieldIO |
From FieldBase | |
FIELD3D_CLASSNAME_CLASSTYPE_IMPLEMENTATION | |
virtual FieldBase::Ptr | clone () const |
Returns a pointer to a copy of the field, pure virtual so ensure derived classes properly implement it. | |
Additional Inherited Members | |
![]() | |
static TemplatedFieldType< ResizableField< Data_T > > | ms_classType |
Definition at line 1213 of file SparseField.h.
typedef SparseField<Data_T> SparseField< Data_T >::block_iterator::class_type |
Convenience typedef.
Definition at line 1217 of file SparseField.h.
typedef boost::intrusive_ptr<SparseField> SparseField< Data_T >::Ptr |
Definition at line 357 of file SparseField.h.
typedef std::vector<Ptr> SparseField< Data_T >::Vec |
Definition at line 358 of file SparseField.h.
typedef LinearSparseFieldInterp<Data_T> SparseField< Data_T >::LinearInterp |
Definition at line 360 of file SparseField.h.
typedef CubicGenericFieldInterp<SparseField<Data_T> > SparseField< Data_T >::CubicInterp |
Definition at line 361 of file SparseField.h.
typedef SparseField<Data_T> SparseField< Data_T >::class_type |
Definition at line 365 of file SparseField.h.
|
protected |
Definition at line 582 of file SparseField.h.
|
protected |
Definition at line 583 of file SparseField.h.
|
inline |
Constructor.
Definition at line 1219 of file SparseField.h.
References m_field, m_window, recomputeBlockBoundingBox(), x, y, and z.
Referenced by operator!=(), operator++(), and operator==().
SparseField< Data_T >::~SparseField | ( | ) |
Destructor.
Definition at line 390 of file SparseField.h.
|
inline |
Increment iterator.
Definition at line 1227 of file SparseField.h.
References block_iterator(), m_window, recomputeBlockBoundingBox(), x, y, and z.
|
inline |
|
inline |
|
inline |
Returns a reference to the bounding box representing the current block.
Definition at line 1255 of file SparseField.h.
References m_currentBlockWindow.
|
inlineprivate |
Definition at line 1262 of file SparseField.h.
References blockSize(), FIELD3D_CLIP, m_currentBlockWindow, m_field, x, y, and z.
Referenced by block_iterator(), and operator++().
|
inlinestatic |
Definition at line 368 of file SparseField.h.
|
inlinestatic |
Definition at line 373 of file SparseField.h.
SparseField< Data_T >::SparseField | ( | ) |
Constructs an empty buffer.
Definition at line 384 of file SparseField.h.
SparseField< Data_T >::SparseField | ( | const SparseField & | o | ) |
Copy constructor.
Definition at line 387 of file SparseField.h.
SparseField< Data_T > & SparseField< Data_T >::operator= | ( | const SparseField & | o | ) |
Assignment operator. For cache-managed fields, it creates a new file reference, and for non-managed fields, it copies the data.
Definition at line 394 of file SparseField.h.
|
virtual |
Clears all the voxels in the storage.
Reimplemented from WritableField< Data_T >.
Definition at line 401 of file SparseField.h.
void SparseField< Data_T >::setBlockOrder | ( | int | order | ) |
Sets the block order (i.e. the power-of-2 to use as block size.
Definition at line 405 of file SparseField.h.
int SparseField< Data_T >::blockOrder | ( | ) | const |
Returns the block order.
Definition at line 408 of file SparseField.h.
int SparseField< Data_T >::blockSize | ( | ) | const |
Returns the block size.
Definition at line 411 of file SparseField.h.
Referenced by recomputeBlockBoundingBox().
bool SparseField< Data_T >::voxelIsInAllocatedBlock | ( | int | i, |
int | j, | ||
int | k ) const |
Checks if a voxel is in an allocated block.
Definition at line 414 of file SparseField.h.
bool SparseField< Data_T >::blockIsAllocated | ( | int | bi, |
int | bj, | ||
int | bk ) const |
Checks if a block is allocated.
Definition at line 417 of file SparseField.h.
const Data_T SparseField< Data_T >::getBlockEmptyValue | ( | int | bi, |
int | bj, | ||
int | bk ) const |
void SparseField< Data_T >::setBlockEmptyValue | ( | int | bi, |
int | bj, | ||
int | bk, | ||
const Data_T & | val ) |
Sets the constant value of an block. If the block is already allocated, it gets deallocated.
Definition at line 425 of file SparseField.h.
bool SparseField< Data_T >::blockIndexIsValid | ( | int | bi, |
int | bj, | ||
int | bk ) const |
V3i SparseField< Data_T >::blockRes | ( | ) | const |
Returns the resolution of the block array.
Definition at line 431 of file SparseField.h.
int SparseField< Data_T >::releaseBlocks | ( | Functor_T | func | ) |
Releases any blocks that are deemed empty. This can be used to clean up after algorithms that write "zero" values to the buffer, as well as after any narrow band levelset algorithms.
func | A function object with the method "bool check(SparseBlock&)" |
Definition at line 439 of file SparseField.h.
int SparseField< Data_T >::blockId | ( | int | blockI, |
int | blockJ, | ||
int | blockK ) const |
Calculates the block number based on a block i,j,k index.
Definition at line 442 of file SparseField.h.
void SparseField< Data_T >::getBlockCoord | ( | int | i, |
int | j, | ||
int | k, | ||
int & | bi, | ||
int & | bj, | ||
int & | bk ) const |
Calculates the block coordinates that a given set of voxel coords are in.
Definition at line 447 of file SparseField.h.
void SparseField< Data_T >::getVoxelInBlock | ( | int | i, |
int | j, | ||
int | k, | ||
int & | vi, | ||
int & | vj, | ||
int & | vk ) const |
Calculates the coordinates in a block for the given voxel index.
Definition at line 452 of file SparseField.h.
|
inline |
Applies data window offset.
Definition at line 455 of file SparseField.h.
|
inline |
void SparseField< Data_T >::incBlockRef | ( | const int | blockId | ) | const |
Increments the block ref count for the given block.
Definition at line 467 of file SparseField.h.
void SparseField< Data_T >::activateBlock | ( | const int | blockId | ) | const |
Activates a given block.
Definition at line 470 of file SparseField.h.
void SparseField< Data_T >::decBlockRef | ( | const int | blockId | ) | const |
Decrements the block ref count for the given block.
Definition at line 473 of file SparseField.h.
size_t SparseField< Data_T >::numGrains | ( | ) | const |
Number of 'grains' to use with threaded access.
Definition at line 478 of file SparseField.h.
bool SparseField< Data_T >::getGrainBounds | ( | const size_t | idx, |
Box3i & | vsBounds ) const |
Bounding box of the given 'grain'.
Definition at line 481 of file SparseField.h.
|
virtual |
Read access to a voxel. The coordinates are in integer voxel space .
Implements Field< Data_T >.
Definition at line 487 of file SparseField.h.
|
virtual |
Returns the memory usage (in bytes)
Reimplemented from FieldRes.
Definition at line 488 of file SparseField.h.
|
virtual |
Counts the number of voxels. For most fields, this is just the volume of the data window, but sparse data structures can override this to return a better value.
Reimplemented from FieldRes.
Definition at line 489 of file SparseField.h.
|
virtual |
Write access to a voxel. The coordinates are global coordinates.
Implements WritableField< Data_T >.
Definition at line 496 of file SparseField.h.
Data_T SparseField< Data_T >::fastValue | ( | int | i, |
int | j, | ||
int | k ) const |
Read access to voxel. Notice that this is non-virtual.
Definition at line 502 of file SparseField.h.
Data_T & SparseField< Data_T >::fastLValue | ( | int | i, |
int | j, | ||
int | k ) |
Write access to voxel. Notice that this is non-virtual.
Definition at line 504 of file SparseField.h.
Data_T * SparseField< Data_T >::blockData | ( | int | bi, |
int | bj, | ||
int | bk ) const |
Returns a pointer to the data in a block, or null if the given block is unallocated.
Definition at line 508 of file SparseField.h.
|
inlinevirtual |
Returns a pointer to a copy of the field, pure virtual so ensure derived classes properly implement it.
Implements FieldBase.
Definition at line 517 of file SparseField.h.
SparseField< Data_T >::const_iterator SparseField< Data_T >::cbegin | ( | ) | const |
Const iterator to first element. "cbegin" matches the tr1 c++ standard.
Definition at line 531 of file SparseField.h.
SparseField< Data_T >::const_iterator SparseField< Data_T >::cbegin | ( | const Box3i & | subset | ) | const |
Const iterator to first element of specific subset.
Definition at line 533 of file SparseField.h.
SparseField< Data_T >::const_iterator SparseField< Data_T >::cend | ( | ) | const |
Const iterator pointing one element past the last valid one.
Definition at line 535 of file SparseField.h.
SparseField< Data_T >::const_iterator SparseField< Data_T >::cend | ( | const Box3i & | subset | ) | const |
Const iterator pointing one element past the last valid one (for a subset)
Definition at line 538 of file SparseField.h.
SparseField< Data_T >::iterator SparseField< Data_T >::begin | ( | ) |
Iterator to first element.
Definition at line 546 of file SparseField.h.
SparseField< Data_T >::iterator SparseField< Data_T >::begin | ( | const Box3i & | subset | ) |
Iterator to first element of specific subset.
Definition at line 548 of file SparseField.h.
SparseField< Data_T >::iterator SparseField< Data_T >::end | ( | ) |
Iterator pointing one element past the last valid one.
Definition at line 550 of file SparseField.h.
SparseField< Data_T >::iterator SparseField< Data_T >::end | ( | const Box3i & | subset | ) |
Iterator pointing one element past the last valid one (for a subset)
Definition at line 553 of file SparseField.h.
SparseField< Data_T >::block_iterator SparseField< Data_T >::blockBegin | ( | ) | const |
Definition at line 560 of file SparseField.h.
SparseField< Data_T >::block_iterator SparseField< Data_T >::blockEnd | ( | ) | const |
Const iterator pointing to element one past the last valid block.
Definition at line 562 of file SparseField.h.
void SparseField< Data_T >::addReference | ( | const std::string & | filename, |
const std::string & | layerPath, | ||
int | valuesPerBlock, | ||
int | numVoxels, | ||
int | occupiedBlocks ) |
Internal function to create a Reference for the current field, for use in dynamic reading.
Definition at line 570 of file SparseField.h.
void SparseField< Data_T >::setupReferenceBlocks | ( | ) |
Internal function to setup the Reference's block pointers, for use with dynamic reading.
Definition at line 574 of file SparseField.h.
|
inlineprotectedvirtual |
Subclasses should re-implement this if they need to perform memory allocations, etc. every time the size of the storage changes.
Reimplemented from ResizableField< Data_T >.
Definition at line 587 of file SparseField.h.
|
protected |
Initializes the block structure. Will clear any existing data.
Definition at line 600 of file SparseField.h.
|
protected |
Deallocated the data of the given block and sets its empty value.
Block::clear() deallocates the data
Definition at line 603 of file SparseField.h.
|
private |
Copies internal data, including blocks, from another SparseField, used by copy constructor and operator=.
Definition at line 639 of file SparseField.h.
|
private |
Internal function to copy empty values and allocated flags, without copying data, used when copying a dynamically read field.
Definition at line 643 of file SparseField.h.
|
friend |
Definition at line 578 of file SparseField.h.
int SparseField< Data_T >::block_iterator::x |
Current block index.
Definition at line 1260 of file SparseField.h.
Referenced by block_iterator(), operator!=(), operator++(), operator==(), and recomputeBlockBoundingBox().
int SparseField< Data_T >::block_iterator::y |
Definition at line 1260 of file SparseField.h.
Referenced by block_iterator(), operator!=(), operator++(), operator==(), and recomputeBlockBoundingBox().
int SparseField< Data_T >::block_iterator::z |
Definition at line 1260 of file SparseField.h.
Referenced by block_iterator(), operator!=(), operator++(), operator==(), and recomputeBlockBoundingBox().
|
private |
Bounding box for block indices.
Definition at line 1275 of file SparseField.h.
Referenced by block_iterator(), and operator++().
|
private |
Pointer to field we're traversing.
Definition at line 1277 of file SparseField.h.
Referenced by block_iterator(), and recomputeBlockBoundingBox().
|
private |
Bounding box in voxel coordinates for the current block.
Definition at line 1279 of file SparseField.h.
Referenced by blockBoundingBox(), and recomputeBlockBoundingBox().
SparseField< Data_T >::DEFINE_FIELD_RTTI_CONCRETE_CLASS |
Definition at line 366 of file SparseField.h.
SparseField< Data_T >::FIELD3D_CLASSNAME_CLASSTYPE_IMPLEMENTATION |
Definition at line 515 of file SparseField.h.
|
protected |
Block order (size = 2^blockOrder)
Definition at line 610 of file SparseField.h.
|
protected |
Block array resolution.
Definition at line 612 of file SparseField.h.
|
protected |
Block array res.x * res.y.
Definition at line 614 of file SparseField.h.
|
protected |
Array of blocks. Not using std::vector since SparseBlock is noncopyable.
Definition at line 616 of file SparseField.h.
|
protected |
Number of blocks in field.
Definition at line 618 of file SparseField.h.
|
protected |
Pointer to SparseFileManager. Used when doing dynamic reading. NULL if not in use.
Definition at line 622 of file SparseField.h.
|
protected |
File id. Used with m_fileManager if active. Otherwise -1.
Definition at line 624 of file SparseField.h.
|
protected |
Dummy value used when needing to return but indicating a failed call.
Definition at line 627 of file SparseField.h.
|
staticprivate |
Definition at line 633 of file SparseField.h.