7#ifndef PXR_USD_SDF_LAYER_OFFSET_H
8#define PXR_USD_SDF_LAYER_OFFSET_H
13#include "pxr/usd/sdf/api.h"
18PXR_NAMESPACE_OPEN_SCOPE
65 void SetOffset(
double newOffset) { _offset = newOffset; }
68 void SetScale(
double newScale) { _scale = newScale; }
114 return !(*
this == rhs);
129 return !(*
this < rhs);
134 return !(*
this > rhs);
157typedef std::vector<SdfLayerOffset> SdfLayerOffsetVector;
165PXR_NAMESPACE_CLOSE_SCOPE
Represents a time offset and scale between layers.
bool operator>(const SdfLayerOffset &rhs) const
double GetScale() const
Returns the time scale factor.
SDF_API SdfLayerOffset GetInverse() const
Gets the inverse offset, which performs the opposite transformation.
SDF_API bool IsValid() const
Returns true if this offset is valid, i.e.
bool operator>=(const SdfLayerOffset &rhs) const
bool operator!=(const SdfLayerOffset &rhs) const
SDF_API SdfLayerOffset operator*(const SdfLayerOffset &rhs) const
Composes this with the offset rhs, such that the resulting offset is equivalent to first applying rhs...
SDF_API bool operator==(const SdfLayerOffset &rhs) const
Returns whether the offsets are equal.
SDF_API bool operator<(const SdfLayerOffset &rhs) const
Returns whether this offset is less than another.
bool operator<=(const SdfLayerOffset &rhs) const
SDF_API SdfTimeCode operator*(const SdfTimeCode &rhs) const
Applies the offset to the given value.
SDF_API bool IsIdentity() const
Returns true if this is an identity transformation, with an offset of 0.0 and a scale of 1....
SDF_API SdfLayerOffset(double offset=0.0, double scale=1.0)
Constructs a new SdfLayerOffset instance.
void SetOffset(double newOffset)
Sets the time offset.
double GetOffset() const
Returns the time offset.
SDF_API double operator*(double rhs) const
Applies the offset to the given value.
void SetScale(double newScale)
Sets the time scale factor.
SDF_API size_t GetHash() const
Returns hash for this offset.
Value type that represents a time code.
GF_API std::ostream & operator<<(std::ostream &, const GfBBox3d &)
Output a GfBBox3d using the format [(range) matrix zeroArea].
Hash functor for hash maps and sets.