PolyVox  0.3.0-dev
Open source voxel management library
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PolyVox::BaseVolume< _VoxelType >::Sampler< DerivedVolumeType > Class Template Reference

#include <BaseVolume.h>

+ Collaboration diagram for PolyVox::BaseVolume< _VoxelType >::Sampler< DerivedVolumeType >:

Public Member Functions

 Sampler (DerivedVolumeType *volume)
 
 ~Sampler ()
 
Vector3DInt32 getPosition (void) const
 
VoxelType getVoxel (void) const
 
bool isCurrentPositionValid (void) const
 
void setPosition (const Vector3DInt32 &v3dNewPos)
 
void setPosition (int32_t xPos, int32_t yPos, int32_t zPos)
 
bool setVoxel (VoxelType tValue)
 
void setWrapMode (WrapMode eWrapMode, VoxelType tBorder=VoxelType())
 
void movePositiveX (void)
 
void movePositiveY (void)
 
void movePositiveZ (void)
 
void moveNegativeX (void)
 
void moveNegativeY (void)
 
void moveNegativeZ (void)
 
VoxelType peekVoxel1nx1ny1nz (void) const
 
VoxelType peekVoxel1nx1ny0pz (void) const
 
VoxelType peekVoxel1nx1ny1pz (void) const
 
VoxelType peekVoxel1nx0py1nz (void) const
 
VoxelType peekVoxel1nx0py0pz (void) const
 
VoxelType peekVoxel1nx0py1pz (void) const
 
VoxelType peekVoxel1nx1py1nz (void) const
 
VoxelType peekVoxel1nx1py0pz (void) const
 
VoxelType peekVoxel1nx1py1pz (void) const
 
VoxelType peekVoxel0px1ny1nz (void) const
 
VoxelType peekVoxel0px1ny0pz (void) const
 
VoxelType peekVoxel0px1ny1pz (void) const
 
VoxelType peekVoxel0px0py1nz (void) const
 
VoxelType peekVoxel0px0py0pz (void) const
 
VoxelType peekVoxel0px0py1pz (void) const
 
VoxelType peekVoxel0px1py1nz (void) const
 
VoxelType peekVoxel0px1py0pz (void) const
 
VoxelType peekVoxel0px1py1pz (void) const
 
VoxelType peekVoxel1px1ny1nz (void) const
 
VoxelType peekVoxel1px1ny0pz (void) const
 
VoxelType peekVoxel1px1ny1pz (void) const
 
VoxelType peekVoxel1px0py1nz (void) const
 
VoxelType peekVoxel1px0py0pz (void) const
 
VoxelType peekVoxel1px0py1pz (void) const
 
VoxelType peekVoxel1px1py1nz (void) const
 
VoxelType peekVoxel1px1py0pz (void) const
 
VoxelType peekVoxel1px1py1pz (void) const
 

Protected Member Functions

VoxelType getVoxelAt (int32_t uXPos, int32_t uYPos, int32_t uZPos) const
 

Protected Attributes

DerivedVolumeType * mVolume
 
int32_t mXPosInVolume
 
int32_t mYPosInVolume
 
int32_t mZPosInVolume
 
WrapMode m_eWrapMode
 
VoxelType m_tBorder
 
bool m_bIsCurrentPositionValidInX
 
bool m_bIsCurrentPositionValidInY
 
bool m_bIsCurrentPositionValidInZ
 

Detailed Description

template<typename _VoxelType>
template<typename DerivedVolumeType>
class PolyVox::BaseVolume< _VoxelType >::Sampler< DerivedVolumeType >

Definition at line 58 of file BaseVolume.h.

Constructor & Destructor Documentation

template<typename VoxelType >
template<typename DerivedVolumeType >
PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::Sampler ( DerivedVolumeType *  volume)

Definition at line 30 of file BaseVolumeSampler.inl.

template<typename VoxelType >
template<typename DerivedVolumeType >
PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::~Sampler ( )

Definition at line 45 of file BaseVolumeSampler.inl.

Member Function Documentation

template<typename VoxelType >
template<typename DerivedVolumeType >
Vector3DInt32 PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::getPosition ( void  ) const

Definition at line 51 of file BaseVolumeSampler.inl.

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::getVoxel ( void  ) const
inline

Definition at line 58 of file BaseVolumeSampler.inl.

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::getVoxelAt ( int32_t  uXPos,
int32_t  uYPos,
int32_t  uZPos 
) const
protected

Definition at line 348 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
bool PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::isCurrentPositionValid ( void  ) const
inline

Definition at line 65 of file BaseVolumeSampler.inl.

template<typename VoxelType >
template<typename DerivedVolumeType >
void PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::moveNegativeX ( void  )

Definition at line 131 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
void PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::moveNegativeY ( void  )

Definition at line 139 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
void PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::moveNegativeZ ( void  )

Definition at line 147 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
void PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::movePositiveX ( void  )

Definition at line 107 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
void PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::movePositiveY ( void  )

Definition at line 115 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
void PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::movePositiveZ ( void  )

Definition at line 123 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel0px0py0pz ( void  ) const
inline

Definition at line 248 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel0px0py1nz ( void  ) const
inline

Definition at line 241 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel0px0py1pz ( void  ) const
inline

Definition at line 255 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel0px1ny0pz ( void  ) const
inline

Definition at line 227 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel0px1ny1nz ( void  ) const
inline

Definition at line 220 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel0px1ny1pz ( void  ) const
inline

Definition at line 234 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel0px1py0pz ( void  ) const
inline

Definition at line 269 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel0px1py1nz ( void  ) const
inline

Definition at line 262 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel0px1py1pz ( void  ) const
inline

Definition at line 276 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel1nx0py0pz ( void  ) const
inline

Definition at line 183 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel1nx0py1nz ( void  ) const
inline

Definition at line 176 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel1nx0py1pz ( void  ) const
inline

Definition at line 190 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel1nx1ny0pz ( void  ) const
inline

Definition at line 162 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel1nx1ny1nz ( void  ) const
inline

Definition at line 155 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel1nx1ny1pz ( void  ) const
inline

Definition at line 169 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel1nx1py0pz ( void  ) const
inline

Definition at line 204 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel1nx1py1nz ( void  ) const
inline

Definition at line 197 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel1nx1py1pz ( void  ) const
inline

Definition at line 211 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel1px0py0pz ( void  ) const
inline

Definition at line 313 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel1px0py1nz ( void  ) const
inline

Definition at line 306 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel1px0py1pz ( void  ) const
inline

Definition at line 320 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel1px1ny0pz ( void  ) const
inline

Definition at line 292 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel1px1ny1nz ( void  ) const
inline

Definition at line 285 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel1px1ny1pz ( void  ) const
inline

Definition at line 299 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel1px1py0pz ( void  ) const
inline

Definition at line 334 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel1px1py1nz ( void  ) const
inline

Definition at line 327 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::peekVoxel1px1py1pz ( void  ) const
inline

Definition at line 341 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
void PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::setPosition ( const Vector3DInt32 v3dNewPos)

Definition at line 72 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
void PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::setPosition ( int32_t  xPos,
int32_t  yPos,
int32_t  zPos 
)

Definition at line 79 of file BaseVolumeSampler.inl.

template<typename VoxelType >
template<typename DerivedVolumeType >
bool PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::setVoxel ( VoxelType  tValue)
inline

Definition at line 92 of file BaseVolumeSampler.inl.

+ Here is the call graph for this function:

template<typename VoxelType >
template<typename DerivedVolumeType >
void PolyVox::BaseVolume< VoxelType >::Sampler< DerivedVolumeType >::setWrapMode ( WrapMode  eWrapMode,
VoxelType  tBorder = VoxelType() 
)

Definition at line 99 of file BaseVolumeSampler.inl.

Member Data Documentation

template<typename _VoxelType>
template<typename DerivedVolumeType >
bool PolyVox::BaseVolume< _VoxelType >::Sampler< DerivedVolumeType >::m_bIsCurrentPositionValidInX
protected

Definition at line 127 of file BaseVolume.h.

template<typename _VoxelType>
template<typename DerivedVolumeType >
bool PolyVox::BaseVolume< _VoxelType >::Sampler< DerivedVolumeType >::m_bIsCurrentPositionValidInY
protected

Definition at line 128 of file BaseVolume.h.

template<typename _VoxelType>
template<typename DerivedVolumeType >
bool PolyVox::BaseVolume< _VoxelType >::Sampler< DerivedVolumeType >::m_bIsCurrentPositionValidInZ
protected

Definition at line 129 of file BaseVolume.h.

template<typename _VoxelType>
template<typename DerivedVolumeType >
WrapMode PolyVox::BaseVolume< _VoxelType >::Sampler< DerivedVolumeType >::m_eWrapMode
protected

Definition at line 122 of file BaseVolume.h.

template<typename _VoxelType>
template<typename DerivedVolumeType >
VoxelType PolyVox::BaseVolume< _VoxelType >::Sampler< DerivedVolumeType >::m_tBorder
protected

Definition at line 123 of file BaseVolume.h.

template<typename _VoxelType>
template<typename DerivedVolumeType >
DerivedVolumeType* PolyVox::BaseVolume< _VoxelType >::Sampler< DerivedVolumeType >::mVolume
protected

Definition at line 115 of file BaseVolume.h.

template<typename _VoxelType>
template<typename DerivedVolumeType >
int32_t PolyVox::BaseVolume< _VoxelType >::Sampler< DerivedVolumeType >::mXPosInVolume
protected

Definition at line 118 of file BaseVolume.h.

template<typename _VoxelType>
template<typename DerivedVolumeType >
int32_t PolyVox::BaseVolume< _VoxelType >::Sampler< DerivedVolumeType >::mYPosInVolume
protected

Definition at line 119 of file BaseVolume.h.

template<typename _VoxelType>
template<typename DerivedVolumeType >
int32_t PolyVox::BaseVolume< _VoxelType >::Sampler< DerivedVolumeType >::mZPosInVolume
protected

Definition at line 120 of file BaseVolume.h.


The documentation for this class was generated from the following files: