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"
13 #include "pxr/base/gf/interval.h"
14 #include "pxr/usd/usd/timeCode.h"
15 #include "pxr/usdValidation/usdValidation/api.h"
17 
18 PXR_NAMESPACE_OPEN_SCOPE
19 
38 {
39  GfInterval _interval;
40  bool _includeTimeCodeDefault;
41 
42 public:
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
68  bool IncludesTimeCodeDefault() const;
69 
71  USDVALIDATION_API
72  GfInterval GetInterval() const;
73 };
74 
75 PXR_NAMESPACE_CLOSE_SCOPE
76 
77 #endif // PXR_USD_VALIDATION_USD_VALIDATION_TIME_RANGE_H
USDVALIDATION_API GfInterval GetInterval() const
Return the interval to validate.
A class which describes the interval at which validation is to be performed.
Definition: timeRange.h:37
USDVALIDATION_API UsdValidationTimeRange()
Construct an UsdValidationTimeRange, which signifies validate full time interval, including UsdTimeCo...
USDVALIDATION_API bool IncludesTimeCodeDefault() const
Return true if the time range includes UsdTimeCode::Default().
Represent a time value, which may be either numeric, holding a double value, or a sentinel value UsdT...
Definition: timeCode.h:73
A basic mathematical interval class.
Definition: interval.h:32