Removed getWidth(), getHeight(), getDepth() and width(), height(), depth() remain deprecated. These functions seem ambiguous, so users have to calculate these values themselves when they want them.
This commit is contained in:
@ -42,12 +42,9 @@ namespace PolyVox
|
||||
Region();
|
||||
Region(const Vector3DInt32& v3dLowerCorner, const Vector3DInt32& v3dUpperCorner);
|
||||
|
||||
uint32_t getDepth(void) const;
|
||||
Vector3DUint32 getDimensions(void);
|
||||
uint32_t getHeight(void) const;
|
||||
const Vector3DInt32& getLowerCorner(void) const;
|
||||
const Vector3DInt32& getUpperCorner(void) const;
|
||||
uint32_t getWidth(void) const;
|
||||
|
||||
void setLowerCorner(const Vector3DInt32& v3dLowerCorner);
|
||||
void setUpperCorner(const Vector3DInt32& v3dUpperCorner);
|
||||
@ -55,16 +52,16 @@ namespace PolyVox
|
||||
bool containsPoint(const Vector3DFloat& pos, float boundary = 0.0f) const;
|
||||
bool containsPoint(const Vector3DInt32& pos, uint8_t boundary = 0) const;
|
||||
void cropTo(const Region& other);
|
||||
/// Deprecated and wrong by 1 - use getDepth() instead.
|
||||
/// Deprecated and misleading
|
||||
int32_t depth(void) const;
|
||||
/// Deprecated and wrong by 1 - use getHeight() instead.
|
||||
/// Deprecated and misleading
|
||||
int32_t height(void) const;
|
||||
void shift(const Vector3DInt32& amount);
|
||||
void shiftLowerCorner(const Vector3DInt32& amount);
|
||||
void shiftUpperCorner(const Vector3DInt32& amount);
|
||||
/// Deprecated and wrong by 1 - use getDimensions() instead.
|
||||
/// Deprecated and misleading
|
||||
Vector3DInt32 dimensions(void);
|
||||
/// Deprecated and wrong by 1 - use getWidth() instead.
|
||||
/// Deprecated and misleading
|
||||
int32_t width(void) const;
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user