HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UsdValidationTimeRange Class Reference

#include <timeRange.h>

Public Member Functions

USDVALIDATION_API UsdValidationTimeRange ()
 
USDVALIDATION_API UsdValidationTimeRange (const UsdTimeCode &timeCode)
 
USDVALIDATION_API UsdValidationTimeRange (const GfInterval &interval, bool includeTimeCodeDefault=true)
 
USDVALIDATION_API bool IncludesTimeCodeDefault () const
 Return true if the time range includes UsdTimeCode::Default(). More...
 
USDVALIDATION_API GfInterval GetInterval () const
 Return the interval to validate. More...
 

Detailed Description

A class which describes the interval at which validation is to be performed.

Clients can validate using a GfInterval, which can also encode a closed single time code as well. The interval can be passed to UsdAttribute::GetTimeSamplesInInterval() to retrieve relevant samples. Time dependent attributes can then be validated at each time sample in the validation callback itself by the clients.

UsdValidationTimeRange can also specify if UsdTimeCode::Default() should be included in the validation interval or not.

To validate for all time samples, clients can provide an interval using GfInterval::GetFullInterval().

See Also
UsdAttribute::GetTimeSamplesInInterval

Definition at line 37 of file timeRange.h.

Constructor & Destructor Documentation

USDVALIDATION_API UsdValidationTimeRange::UsdValidationTimeRange ( )

Construct an UsdValidationTimeRange, which signifies validate full time interval, including UsdTimeCode::Default().

USDVALIDATION_API UsdValidationTimeRange::UsdValidationTimeRange ( const UsdTimeCode timeCode)
explicit

Construct a UsdValidationTimeRange with a specific timeCode.

If timeCode is UsdTimeCode::Default(), the time range will be empty, i.e. no time to validate, but _includeTimeCodeDefault will be true.

USDVALIDATION_API UsdValidationTimeRange::UsdValidationTimeRange ( const GfInterval interval,
bool  includeTimeCodeDefault = true 
)
explicit

Construct a UsdValidationTimeRange with a specific interval.

includeTimeCodeDefault is used to determine if UsdTimeCode::Default() should be included in the UsdValidationTimeRange or not (default is true).

Member Function Documentation

USDVALIDATION_API GfInterval UsdValidationTimeRange::GetInterval ( ) const

Return the interval to validate.

USDVALIDATION_API bool UsdValidationTimeRange::IncludesTimeCodeDefault ( ) const

Return true if the time range includes UsdTimeCode::Default().


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