OpenVDB  1.1.0
Public Member Functions | List of all members
Hermite Class Reference

Quantized Hermite data object that stores compressed intersection information (offsets and normlas) for the up-wind edges of a voxel. (Size 10 bytes) More...

#include <Hermite.h>

Public Member Functions

 Hermite ()
 Hermite (const Hermite &)
const Hermiteoperator= (const Hermite &)
void clear ()
 clears all intersection data
 operator bool () const
bool operator== (const Hermite &) const
 equality operator
bool operator!= (const Hermite &rhs) const
 inequality operator
Hermite operator- () const
 unary negation operator, flips inside/outside state and normals.
bool isInside () const
void setIsInside (bool)
std::string str () const
 String representation.
void read (std::istream &)
 Unserialize this transform from the given stream.
void write (std::ostream &) const
 Serialize this transform to the given stream.
template<typename T >
void setX (T offset, const Vec3< T > &)
 methods to compress and store edge data.
template<typename T >
void setY (T offset, const Vec3< T > &)
 methods to compress and store edge data.
template<typename T >
void setZ (T offset, const Vec3< T > &)
 methods to compress and store edge data.
bool hasOffsetX () const
bool hasOffsetY () const
bool hasOffsetZ () const
bool isGreaterX (const Hermite &other) const
bool isGreaterY (const Hermite &other) const
bool isGreaterZ (const Hermite &other) const
bool isLessX (const Hermite &other) const
bool isLessY (const Hermite &other) const
bool isLessZ (const Hermite &other) const
float getOffsetX () const
float getOffsetY () const
float getOffsetZ () const
Vec3s getNormalX () const
Vec3s getNormalY () const
Vec3s getNormalZ () const
void setX (const Hermite &)
void setY (const Hermite &)
void setZ (const Hermite &)
bool operator< (const Hermite &) const
bool operator> (const Hermite &) const
template<class T >
Hermite operator+ (const T &) const
template<class T >
Hermite operator- (const T &) const

Detailed Description

Quantized Hermite data object that stores compressed intersection information (offsets and normlas) for the up-wind edges of a voxel. (Size 10 bytes)

Constructor & Destructor Documentation

Hermite ( )
Hermite ( const Hermite )

Member Function Documentation

void clear ( )
inline

clears all intersection data

Vec3s getNormalX ( ) const
inline
Returns
uncompressed edge intersection normals
Vec3s getNormalY ( ) const
inline
Returns
uncompressed edge intersection normals
Vec3s getNormalZ ( ) const
inline
Returns
uncompressed edge intersection normals
float getOffsetX ( ) const
inline
Returns
uncompressed edge intersection offsets
float getOffsetY ( ) const
inline
Returns
uncompressed edge intersection offsets
float getOffsetZ ( ) const
inline
Returns
uncompressed edge intersection offsets
bool hasOffsetX ( ) const
inline
Returns
true if this Hermite object has intersection data for the corresponding edge.
bool hasOffsetY ( ) const
inline
Returns
true if this Hermite object has intersection data for the corresponding edge.
bool hasOffsetZ ( ) const
inline
Returns
true if this Hermite object has intersection data for the corresponding edge.
bool isGreaterX ( const Hermite other) const
inline

Edge offset greater-than comparisson operators

Note
is this offset > than other offset
bool isGreaterY ( const Hermite other) const
inline

Edge offset greater-than comparisson operators

Note
is this offset > than other offset
bool isGreaterZ ( const Hermite other) const
inline

Edge offset greater-than comparisson operators

Note
is this offset > than other offset
bool isInside ( ) const
inline
Returns
true if the current Hermite object is classified
bool isLessX ( const Hermite other) const
inline

Edge offset less-than comparisson operators

Note
is this offset < than other offset
bool isLessY ( const Hermite other) const
inline

Edge offset less-than comparisson operators

Note
is this offset < than other offset
bool isLessZ ( const Hermite other) const
inline

Edge offset less-than comparisson operators

Note
is this offset < than other offset
operator bool ( ) const
inline
Returns
true if this Hermite objet has any edge intersection data.
bool operator!= ( const Hermite rhs) const
inline

inequality operator

Hermite operator+ ( const T &  ) const
inline

Operators required by OpenVDB.

Note
These methods don't perform meaningful operations on Hermite data.
Hermite operator- ( ) const
inline

unary negation operator, flips inside/outside state and normals.

Hermite operator- ( const T &  ) const
inline

Operators required by OpenVDB.

Note
These methods don't perform meaningful operations on Hermite data.
bool operator< ( const Hermite ) const
inline

Operators required by OpenVDB.

Note
These methods don't perform meaningful operations on Hermite data.
const Hermite & operator= ( const Hermite rhs)
inline
bool operator== ( const Hermite rhs) const
inline

equality operator

bool operator> ( const Hermite ) const
inline

Operators required by OpenVDB.

Note
These methods don't perform meaningful operations on Hermite data.
void read ( std::istream &  )

Unserialize this transform from the given stream.

void setIsInside ( bool  isInside)
inline

Set the inside/outside state to reflect if this Hermite object is located at a point in space that is inside/outside a contour.

void setX ( offset,
const Vec3< T > &  n 
)
inline

methods to compress and store edge data.

Note
offset is expected to be in the [0 to 1) range.
void setX ( const Hermite rhs)
inline

copy edge data from other Hermite object

Note
copies data in the compressed form
void setY ( offset,
const Vec3< T > &  n 
)
inline

methods to compress and store edge data.

Note
offset is expected to be in the [0 to 1) range.
void setY ( const Hermite rhs)
inline

copy edge data from other Hermite object

Note
copies data in the compressed form
void setZ ( offset,
const Vec3< T > &  n 
)
inline

methods to compress and store edge data.

Note
offset is expected to be in the [0 to 1) range.
void setZ ( const Hermite rhs)
inline

copy edge data from other Hermite object

Note
copies data in the compressed form
std::string str ( ) const

String representation.

void write ( std::ostream &  ) const

Serialize this transform to the given stream.


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