|
OpenVDB
0.104.0
|
Signed (x, y, z) integer coordinates. More...
#include <Coord.h>
Public Types | |
| typedef int32_t | Int32 |
| typedef uint32_t | Index32 |
| typedef Vec3< Int32 > | Vec3i |
| typedef Vec3< Index32 > | Vec3I |
| typedef Int32 | ValueType |
| typedef std::numeric_limits < ValueType > | Limits |
Public Member Functions | |
| Coord () | |
| Coord (Int32 xyz) | |
| Coord (Int32 x, Int32 y, Int32 z) | |
| Coord (Index32 x, Index32 y, Index32 z) | |
| Coord (const Vec3i &v) | |
| Coord (const Vec3I &v) | |
| Coord (const Int32 *v) | |
| Coord & | reset (Int32 x, Int32 y, Int32 z) |
| Coord & | reset (Index32 x, Index32 y, Index32 z) |
| Coord & | reset (Int32 xyz) |
| Coord & | setX (Int32 x) |
| Coord & | setY (Int32 y) |
| Coord & | setZ (Int32 z) |
| Coord & | offset (Int32 dx, Int32 dy, Int32 dz) |
| Coord & | offset (Int32 n) |
| Coord | offsetBy (Int32 dx, Int32 dy, Int32 dz) const |
| Coord | offsetBy (Int32 n) const |
| Coord & | operator+= (const Coord &rhs) |
| Coord & | operator-= (const Coord &rhs) |
| Coord | operator+ (const Coord &rhs) const |
| Coord | operator- (const Coord &rhs) const |
| Coord | operator- () const |
| Coord | operator>> (size_t n) const |
| Coord | operator<< (size_t n) const |
| Coord & | operator<<= (size_t n) |
| Coord & | operator>>= (size_t n) |
| Coord | operator& (Int32 n) const |
| Coord | operator| (Int32 n) const |
| Coord & | operator&= (Int32 n) |
| Coord & | operator|= (Int32 n) |
| Int32 | x () const |
| Int32 | y () const |
| Int32 | z () const |
| Int32 | operator[] (size_t i) const |
| Int32 & | x () |
| Int32 & | y () |
| Int32 & | z () |
| Int32 & | operator[] (size_t i) |
| const Int32 * | asPointer () const |
| Int32 * | asPointer () |
| Vec3d | asVec3d () const |
| Vec3s | asVec3s () const |
| Vec3i | asVec3i () const |
| Vec3I | asVec3I () const |
| void | asXYZ (Int32 &x, Int32 &y, Int32 &z) const |
| OPENVDB_DEPRECATED void | asXYZ (Index32 &x, Index32 &y, Index32 &z) const |
| bool | operator== (const Coord &rhs) const |
| bool | operator!= (const Coord &rhs) const |
| bool | operator< (const Coord &rhs) const |
| Lexicographic less than. More... | |
| bool | operator<= (const Coord &rhs) const |
| Lexicographic less than or equal to. More... | |
| bool | operator> (const Coord &rhs) const |
| Lexicographic greater than. More... | |
| bool | operator>= (const Coord &rhs) const |
| Lexicographic greater than or equal to. More... | |
| void | minComponent (const Coord &other) |
| Perform a component-wise minimum with the other Coord. More... | |
| void | maxComponent (const Coord &other) |
| Perform a component-wise maximum with the other Coord. More... | |
| void | read (std::istream &is) |
| void | write (std::ostream &os) const |
Static Public Member Functions | |
| static const Coord & | min () |
| static const Coord & | max () |
| template<typename T > | |
| static Coord | round (const Vec3< T > &xyz) |
| Return xyz rounded to the closest integer coordinates (cell centered conversion). More... | |
| template<typename T > | |
| static Coord | floor (const Vec3< T > &xyz) |
| Return the largest integer coordinates that are not greater than xyz (node centered conversion). More... | |
| static Coord | minComponent (const Coord &lhs, const Coord &rhs) |
| Return the component-wise minimum of the two Coords. More... | |
| static Coord | maxComponent (const Coord &lhs, const Coord &rhs) |
| Return the component-wise maximum of the two Coords. More... | |
| static bool | lessThan (const Coord &a, const Coord &b) |
Signed (x, y, z) integer coordinates.
| typedef uint32_t Index32 |
| typedef int32_t Int32 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Return the largest integer coordinates that are not greater than xyz (node centered conversion).
|
inlinestatic |
|
inline |
Perform a component-wise maximum with the other Coord.
Return the component-wise maximum of the two Coords.
|
inlinestatic |
|
inline |
Perform a component-wise minimum with the other Coord.
Return the component-wise minimum of the two Coords.
|
inline |
|
inline |
|
inline |
Lexicographic less than.
|
inline |
|
inline |
|
inline |
Lexicographic less than or equal to.
|
inline |
|
inline |
Lexicographic greater than.
|
inline |
Lexicographic greater than or equal to.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Return xyz rounded to the closest integer coordinates (cell centered conversion).
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
1.8.3.1