HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
extentsHintSchema.h
Go to the documentation of this file.
1 //
2 // Copyright 2023 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 ////////////////////////////////////////////////////////////////////////
8 
9 #ifndef PXR_USD_IMAGING_USD_IMAGING_EXTENTS_HINT_SCHEMA_H
10 #define PXR_USD_IMAGING_USD_IMAGING_EXTENTS_HINT_SCHEMA_H
11 
13 
15 
17 
18 //-----------------------------------------------------------------------------
19 
20 #define USDIMAGINGEXTENTSHINT_SCHEMA_TOKENS \
21  (extentsHint)
22 
23 TF_DECLARE_PUBLIC_TOKENS(UsdImagingExtentsHintSchemaTokens, USDIMAGING_API,
25 
27 {
28 public:
29  UsdImagingExtentsHintSchema(HdContainerDataSourceHandle container)
30  : HdSchema(container) {}
31 
33  static HdContainerDataSourceHandle
35  size_t count,
36  const TfToken *names,
37  const HdDataSourceBaseHandle *values);
38 
40  HdExtentSchema GetExtent(const TfToken &purpose);
41 
44  const HdContainerDataSourceHandle &fromParentContainer);
45 
46  /// Returns a token where the container representing this schema is found in
47  /// a container by default.
49  static const TfToken &GetSchemaToken();
50 
51  /// Returns an HdDataSourceLocator (relative to the prim-level data source)
52  /// where the container representing this schema is found by default.
54  static const HdDataSourceLocator &GetDefaultLocator();
55 };
56 
58 
59 #endif
static USDIMAGING_API UsdImagingExtentsHintSchema GetFromParent(const HdContainerDataSourceHandle &fromParentContainer)
static USDIMAGING_API const TfToken & GetSchemaToken()
#define USDIMAGING_API
Definition: api.h:23
USDIMAGING_API HdExtentSchema GetExtent(const TfToken &purpose)
UsdImagingExtentsHintSchema(HdContainerDataSourceHandle container)
TF_DECLARE_PUBLIC_TOKENS(UsdImagingExtentsHintSchemaTokens, USDIMAGING_API, USDIMAGINGEXTENTSHINT_SCHEMA_TOKENS)
#define USDIMAGINGEXTENTSHINT_SCHEMA_TOKENS
static USDIMAGING_API HdContainerDataSourceHandle BuildRetained(size_t count, const TfToken *names, const HdDataSourceBaseHandle *values)
Definition: token.h:70
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
GLenum GLsizei GLsizei GLint * values
Definition: glcorearb.h:1602
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
GLint GLsizei count
Definition: glcorearb.h:405
static USDIMAGING_API const HdDataSourceLocator & GetDefaultLocator()