Loading...
Searching...
No Matches
timeRange.h
Go to the documentation of this file.
1//
2// Copyright 2024 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_USD_VALIDATION_USD_VALIDATION_TIME_RANGE_H
8#define PXR_USD_VALIDATION_USD_VALIDATION_TIME_RANGE_H
9
11
12#include "pxr/pxr.h"
14#include "pxr/usd/usd/timeCode.h"
15#include "pxr/usdValidation/usdValidation/api.h"
17
18PXR_NAMESPACE_OPEN_SCOPE
19
38{
39 GfInterval _interval;
40 bool _includeTimeCodeDefault;
41
42public:
43
46 USDVALIDATION_API
48
54 USDVALIDATION_API
55 explicit UsdValidationTimeRange(const UsdTimeCode &timeCode);
56
62 USDVALIDATION_API
63 explicit UsdValidationTimeRange(const GfInterval &interval,
64 bool includeTimeCodeDefault = true);
65
67 USDVALIDATION_API
69
71 USDVALIDATION_API
73};
74
75PXR_NAMESPACE_CLOSE_SCOPE
76
77#endif // PXR_USD_VALIDATION_USD_VALIDATION_TIME_RANGE_H
A basic mathematical interval class.
Definition: interval.h:33
Represent a time value, which may be either numeric, holding a double value, or a sentinel value UsdT...
Definition: timeCode.h:72
A class which describes the interval at which validation is to be performed.
Definition: timeRange.h:38
USDVALIDATION_API bool IncludesTimeCodeDefault() const
Return true if the time range includes UsdTimeCode::Default().
USDVALIDATION_API UsdValidationTimeRange(const UsdTimeCode &timeCode)
Construct a UsdValidationTimeRange with a specific timeCode.
USDVALIDATION_API UsdValidationTimeRange(const GfInterval &interval, bool includeTimeCodeDefault=true)
Construct a UsdValidationTimeRange with a specific interval.
USDVALIDATION_API GfInterval GetInterval() const
Return the interval to validate.
USDVALIDATION_API UsdValidationTimeRange()
Construct an UsdValidationTimeRange, which signifies validate full time interval, including UsdTimeCo...