24 #ifndef PXR_USD_SDF_LAYER_OFFSET_H
25 #define PXR_USD_SDF_LAYER_OFFSET_H
82 void SetOffset(
double newOffset) { _offset = newOffset; }
85 void SetScale(
double newScale) { _scale = newScale; }
127 bool operator==(
const SdfLayerOffset &rhs)
const;
131 return !(*
this == rhs);
137 bool operator<(
const SdfLayerOffset &rhs)
const;
146 return !(*
this < rhs);
151 return !(*
this > rhs);
157 SdfLayerOffset
operator*(
const SdfLayerOffset &rhs)
const;
184 #endif // PXR_USD_SDF_LAYER_OFFSET_H
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
bool operator>=(const SdfLayerOffset &rhs) const
SDF_API size_t GetHash() const
Returns hash for this offset.
std::vector< SdfLayerOffset > SdfLayerOffsetVector
GA_API const UT_StringHolder scale
bool operator!=(const SdfLayerOffset &rhs) const
void SetScale(double newScale)
Sets the time scale factor.
SDF_API SdfLayerOffset operator*(const SdfLayerOffset &rhs) const
bool 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.
bool operator<=(const SdfLayerOffset &rhs) const
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.