24 #ifndef PXR_USD_SDF_LAYER_OFFSET_H
25 #define PXR_USD_SDF_LAYER_OFFSET_H
32 #include <hboost/operators.hpp>
83 void SetOffset(
double newOffset) { _offset = newOffset; }
86 void SetScale(
double newScale) { _scale = newScale; }
128 bool operator==(
const SdfLayerOffset &rhs)
const;
133 bool operator<(
const SdfLayerOffset &rhs)
const;
138 SdfLayerOffset
operator*(
const SdfLayerOffset &rhs)
const;
165 #endif // PXR_USD_SDF_LAYER_OFFSET_H
GLenum GLenum GLenum GLenum GLenum scale
SDF_API SdfLayerOffset GetInverse() const
Gets the inverse offset, which performs the opposite transformation.
SDF_API bool IsIdentity() const
SDF_API bool operator<(const SdfLayerOffset &rhs) const
SDF_API size_t GetHash() const
Returns hash for this offset.
std::vector< SdfLayerOffset > SdfLayerOffsetVector
void SetScale(double newScale)
Sets the time scale factor.
SDF_API SdfLayerOffset operator*(const SdfLayerOffset &rhs) const
double GetScale() const
Returns the time scale factor.
size_t operator()(const SdfLayerOffset &offset) const
Hash functor for hash maps and sets.
SDF_API bool operator==(const SdfLayerOffset &rhs) const
Returns whether the offsets are equal.
SDF_API std::ostream & operator<<(std::ostream &out, const SdfLayerOffset &layerOffset)
Writes the string representation of SdfLayerOffset to out.
friend size_t hash_value(const SdfLayerOffset &offset)
Returns hash for this offset.
SDF_API bool IsValid() const
double GetOffset() const
Returns the time offset.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
SDF_API SdfLayerOffset(double offset=0.0, double scale=1.0)
Constructs a new SdfLayerOffset instance.
void SetOffset(double newOffset)
Sets the time offset.