Public Member Functions | Static Public Attributes

PolyVox::Region Class Reference

#include <Region.h>

Collaboration diagram for PolyVox::Region:

List of all members.

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 Vector3DInt32getLowerCorner (void) const
const Vector3DInt32getUpperCorner (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

Detailed Description

Definition at line 36 of file Region.h.


Constructor & Destructor Documentation

PolyVox::Region::Region (  ) 

Definition at line 37 of file Region.cpp.

PolyVox::Region::Region ( const Vector3DInt32 v3dLowerCorner,
const Vector3DInt32 v3dUpperCorner 
)

Definition at line 43 of file Region.cpp.

Here is the call graph for this function:

PolyVox::Region::Region ( int32_t  iLowerX,
int32_t  iLowerY,
int32_t  iLowerZ,
int32_t  iUpperX,
int32_t  iUpperY,
int32_t  iUpperZ 
)

Definition at line 53 of file Region.cpp.

Here is the call graph for this function:


Member Function Documentation

bool PolyVox::Region::containsPoint ( const Vector3DFloat pos,
float  boundary = 0.0f 
) const
bool PolyVox::Region::containsPoint ( const Vector3DInt32 pos,
uint8_t  boundary = 0 
) const

Definition at line 115 of file Region.cpp.

Here is the call graph for this function:

bool PolyVox::Region::containsPointInX ( float  pos,
float  boundary = 0.0f 
) const

Definition at line 125 of file Region.cpp.

Here is the call graph for this function:

bool PolyVox::Region::containsPointInX ( int32_t  pos,
uint8_t  boundary = 0 
) const

Definition at line 131 of file Region.cpp.

Here is the call graph for this function:

bool PolyVox::Region::containsPointInY ( float  pos,
float  boundary = 0.0f 
) const

Definition at line 137 of file Region.cpp.

Here is the call graph for this function:

bool PolyVox::Region::containsPointInY ( int32_t  pos,
uint8_t  boundary = 0 
) const

Definition at line 143 of file Region.cpp.

Here is the call graph for this function:

bool PolyVox::Region::containsPointInZ ( float  pos,
float  boundary = 0.0f 
) const

Definition at line 149 of file Region.cpp.

Here is the call graph for this function:

bool PolyVox::Region::containsPointInZ ( int32_t  pos,
uint8_t  boundary = 0 
) const

Definition at line 155 of file Region.cpp.

Here is the call graph for this function:

void PolyVox::Region::cropTo ( const Region other  ) 

Definition at line 161 of file Region.cpp.

Here is the call graph for this function:

int32_t PolyVox::Region::depth ( void   )  const

Deprecated and misleading.

Definition at line 171 of file Region.cpp.

Here is the call graph for this function:

Vector3DInt32 PolyVox::Region::dimensions ( void   ) 

Deprecated and misleading.

Definition at line 201 of file Region.cpp.

const Vector3DInt32 & PolyVox::Region::getLowerCorner ( void   )  const
const Vector3DInt32 & PolyVox::Region::getUpperCorner ( void   )  const
int32_t PolyVox::Region::height ( void   )  const

Deprecated and misleading.

Definition at line 178 of file Region.cpp.

Here is the call graph for this function:

bool PolyVox::Region::operator!= ( const Region rhs  )  const throw ()

Inequality Operator.

Checks whether two Regions are not equal.

Parameters:
rhs The Region to compare to.
Returns:
true if the Regions do not match.
See also:
operator==

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.

Parameters:
rhs The Region to compare to.
Returns:
true if the Regions match.
See also:
operator!=

Definition at line 69 of file Region.cpp.

void PolyVox::Region::setLowerCorner ( const Vector3DInt32 v3dLowerCorner  ) 
void PolyVox::Region::setUpperCorner ( const Vector3DInt32 v3dUpperCorner  ) 
void PolyVox::Region::shift ( const Vector3DInt32 amount  ) 
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.

Here is the call graph for this function:


Member Data Documentation

Definition at line 41 of file Region.h.

Referenced by PolyVox::LargeVolume< VoxelType >::LargeVolume().


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