#include <Region.h>
Public Member Functions | |
Region () | |
Region (const Vector3DInt32 &v3dLowerCorner, const Vector3DInt32 &v3dUpperCorner) | |
Region (int32_t iLowerX, int32_t iLowerY, int32_t iLowerZ, int32_t iUpperX, int32_t iUpperY, int32_t iUpperZ) | |
bool | operator== (const Region &rhs) const throw () |
Equality Operator. | |
bool | operator!= (const Region &rhs) const throw () |
Inequality Operator. | |
const Vector3DInt32 & | getLowerCorner (void) const |
const Vector3DInt32 & | getUpperCorner (void) const |
void | setLowerCorner (const Vector3DInt32 &v3dLowerCorner) |
void | setUpperCorner (const Vector3DInt32 &v3dUpperCorner) |
bool | containsPoint (const Vector3DFloat &pos, float boundary=0.0f) const |
bool | containsPoint (const Vector3DInt32 &pos, uint8_t boundary=0) const |
bool | containsPointInX (float pos, float boundary=0.0f) const |
bool | containsPointInX (int32_t pos, uint8_t boundary=0) const |
bool | containsPointInY (float pos, float boundary=0.0f) const |
bool | containsPointInY (int32_t pos, uint8_t boundary=0) const |
bool | containsPointInZ (float pos, float boundary=0.0f) const |
bool | containsPointInZ (int32_t pos, uint8_t boundary=0) const |
void | cropTo (const Region &other) |
int32_t | depth (void) const |
Deprecated and misleading. | |
int32_t | height (void) const |
Deprecated and misleading. | |
void | shift (const Vector3DInt32 &amount) |
void | shiftLowerCorner (const Vector3DInt32 &amount) |
void | shiftUpperCorner (const Vector3DInt32 &amount) |
Vector3DInt32 | dimensions (void) |
Deprecated and misleading. | |
int32_t | width (void) const |
Deprecated and misleading. | |
Static Public Attributes | |
static const Region | MaxRegion |
Definition at line 36 of file Region.h.
PolyVox::Region::Region | ( | ) |
Definition at line 37 of file Region.cpp.
PolyVox::Region::Region | ( | const Vector3DInt32 & | v3dLowerCorner, | |
const Vector3DInt32 & | v3dUpperCorner | |||
) |
PolyVox::Region::Region | ( | int32_t | iLowerX, | |
int32_t | iLowerY, | |||
int32_t | iLowerZ, | |||
int32_t | iUpperX, | |||
int32_t | iUpperY, | |||
int32_t | iUpperZ | |||
) |
bool PolyVox::Region::containsPoint | ( | const Vector3DFloat & | pos, | |
float | boundary = 0.0f | |||
) | const |
Definition at line 105 of file Region.cpp.
Referenced by PolyVox::SimpleVolume< VoxelType >::getVoxelAt(), PolyVox::RawVolume< VoxelType >::getVoxelAt(), PolyVox::LargeVolume< VoxelType >::getVoxelAt(), PolyVox::ConstVolumeProxy< VoxelType >::getVoxelAt(), PolyVox::SimpleVolume< VoxelType >::setVoxelAt(), PolyVox::RawVolume< VoxelType >::setVoxelAt(), PolyVox::LargeVolume< VoxelType >::setVoxelAt(), and PolyVox::ConstVolumeProxy< VoxelType >::setVoxelAt().
bool PolyVox::Region::containsPoint | ( | const Vector3DInt32 & | pos, | |
uint8_t | boundary = 0 | |||
) | const |
bool PolyVox::Region::containsPointInX | ( | float | pos, | |
float | boundary = 0.0f | |||
) | const |
bool PolyVox::Region::containsPointInX | ( | int32_t | pos, | |
uint8_t | boundary = 0 | |||
) | const |
bool PolyVox::Region::containsPointInY | ( | float | pos, | |
float | boundary = 0.0f | |||
) | const |
bool PolyVox::Region::containsPointInY | ( | int32_t | pos, | |
uint8_t | boundary = 0 | |||
) | const |
bool PolyVox::Region::containsPointInZ | ( | float | pos, | |
float | boundary = 0.0f | |||
) | const |
bool PolyVox::Region::containsPointInZ | ( | int32_t | pos, | |
uint8_t | boundary = 0 | |||
) | const |
void PolyVox::Region::cropTo | ( | const Region & | other | ) |
int32_t PolyVox::Region::depth | ( | void | ) | const |
Deprecated and misleading.
Definition at line 171 of file Region.cpp.
Vector3DInt32 PolyVox::Region::dimensions | ( | void | ) |
Deprecated and misleading.
Definition at line 201 of file Region.cpp.
const Vector3DInt32 & PolyVox::Region::getLowerCorner | ( | void | ) | const |
Definition at line 85 of file Region.cpp.
Referenced by PolyVox::AmbientOcclusionCalculator< VolumeType, VoxelType >::AmbientOcclusionCalculator(), PolyVox::VolumeResampler< SrcVolumeType, DestVolumeType, VoxelType >::execute(), PolyVox::SurfaceExtractor< VolumeType, VoxelType >::execute(), PolyVox::LowPassFilter< SrcVolumeType, DestVolumeType, VoxelType >::execute(), PolyVox::CubicSurfaceExtractorWithNormals< VolumeType, VoxelType >::execute(), PolyVox::CubicSurfaceExtractor< VolumeType, VoxelType >::execute(), PolyVox::AmbientOcclusionCalculator< VolumeType, VoxelType >::execute(), PolyVox::LowPassFilter< SrcVolumeType, DestVolumeType, VoxelType >::executeSAT(), PolyVox::LargeVolume< VoxelType >::flush(), PolyVox::BaseVolume< VoxelType >::getDepth(), PolyVox::BaseVolume< VoxelType >::getHeight(), PolyVox::RawVolume< VoxelType >::getVoxelAt(), PolyVox::BaseVolume< VoxelType >::getWidth(), PolyVox::IteratorController< IteratorType >::moveForward(), PolyVox::LargeVolume< VoxelType >::prefetch(), PolyVox::IteratorController< IteratorType >::reset(), PolyVox::SimpleVolume< VoxelType >::resize(), PolyVox::LargeVolume< VoxelType >::resize(), PolyVox::RawVolume< VoxelType >::setVoxelAt(), and PolyVox::VolumeChangeTracker< VoxelType >::unlockRegion().
const Vector3DInt32 & PolyVox::Region::getUpperCorner | ( | void | ) | const |
Definition at line 90 of file Region.cpp.
Referenced by PolyVox::VolumeResampler< SrcVolumeType, DestVolumeType, VoxelType >::execute(), PolyVox::SurfaceExtractor< VolumeType, VoxelType >::execute(), PolyVox::LowPassFilter< SrcVolumeType, DestVolumeType, VoxelType >::execute(), PolyVox::CubicSurfaceExtractorWithNormals< VolumeType, VoxelType >::execute(), PolyVox::CubicSurfaceExtractor< VolumeType, VoxelType >::execute(), PolyVox::AmbientOcclusionCalculator< VolumeType, VoxelType >::execute(), PolyVox::LowPassFilter< SrcVolumeType, DestVolumeType, VoxelType >::executeSAT(), PolyVox::LargeVolume< VoxelType >::flush(), PolyVox::BaseVolume< VoxelType >::getDepth(), PolyVox::BaseVolume< VoxelType >::getHeight(), PolyVox::BaseVolume< VoxelType >::getWidth(), PolyVox::IteratorController< IteratorType >::moveForward(), PolyVox::LargeVolume< VoxelType >::prefetch(), PolyVox::SimpleVolume< VoxelType >::resize(), PolyVox::LargeVolume< VoxelType >::resize(), PolyVox::SurfaceExtractor< VolumeType, VoxelType >::SurfaceExtractor(), and PolyVox::VolumeChangeTracker< VoxelType >::unlockRegion().
int32_t PolyVox::Region::height | ( | void | ) | const |
Deprecated and misleading.
Definition at line 178 of file Region.cpp.
bool PolyVox::Region::operator!= | ( | const Region & | rhs | ) | const throw () |
Inequality Operator.
Checks whether two Regions are not equal.
rhs | The Region to compare to. |
Definition at line 80 of file Region.cpp.
bool PolyVox::Region::operator== | ( | const Region & | rhs | ) | const throw () |
Equality Operator.
Checks whether two Regions are equal.
rhs | The Region to compare to. |
Definition at line 69 of file Region.cpp.
void PolyVox::Region::setLowerCorner | ( | const Vector3DInt32 & | v3dLowerCorner | ) |
Definition at line 95 of file Region.cpp.
Referenced by PolyVox::SimpleVolume< VoxelType >::resize(), and PolyVox::LargeVolume< VoxelType >::resize().
void PolyVox::Region::setUpperCorner | ( | const Vector3DInt32 & | v3dUpperCorner | ) |
void PolyVox::Region::shift | ( | const Vector3DInt32 & | amount | ) |
Definition at line 185 of file Region.cpp.
Referenced by PolyVox::SurfaceExtractor< VolumeType, VoxelType >::execute().
void PolyVox::Region::shiftLowerCorner | ( | const Vector3DInt32 & | amount | ) |
Definition at line 191 of file Region.cpp.
void PolyVox::Region::shiftUpperCorner | ( | const Vector3DInt32 & | amount | ) |
Definition at line 196 of file Region.cpp.
int32_t PolyVox::Region::width | ( | void | ) | const |
Deprecated and misleading.
Definition at line 208 of file Region.cpp.
const Region PolyVox::Region::MaxRegion [static] |
Definition at line 41 of file Region.h.
Referenced by PolyVox::LargeVolume< VoxelType >::LargeVolume().