Loading...
Searching...
No Matches
extentsHintSchema.h
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//
8
9#ifndef PXR_USD_IMAGING_USD_IMAGING_EXTENTS_HINT_SCHEMA_H
10#define PXR_USD_IMAGING_USD_IMAGING_EXTENTS_HINT_SCHEMA_H
11
12#include "pxr/usdImaging/usdImaging/api.h"
13
15
16PXR_NAMESPACE_OPEN_SCOPE
17
18//-----------------------------------------------------------------------------
19
20#define USDIMAGINGEXTENTSHINT_SCHEMA_TOKENS \
21 (extentsHint)
22
23TF_DECLARE_PUBLIC_TOKENS(UsdImagingExtentsHintSchemaTokens, USDIMAGING_API,
24 USDIMAGINGEXTENTSHINT_SCHEMA_TOKENS);
25
26class UsdImagingExtentsHintSchema : public HdSchema
27{
28public:
29 UsdImagingExtentsHintSchema(HdContainerDataSourceHandle container)
30 : HdSchema(container) {}
31
32 USDIMAGING_API
33 static HdContainerDataSourceHandle
34 BuildRetained(
35 size_t count,
36 const TfToken *names,
37 const HdDataSourceBaseHandle *values);
38
39 USDIMAGING_API
40 HdExtentSchema GetExtent(const TfToken &purpose);
41
42 USDIMAGING_API
43 static UsdImagingExtentsHintSchema GetFromParent(
44 const HdContainerDataSourceHandle &fromParentContainer);
45
48 USDIMAGING_API
49 static const TfToken &GetSchemaToken();
50
53 USDIMAGING_API
54 static const HdDataSourceLocator &GetDefaultLocator();
55};
56
57PXR_NAMESPACE_CLOSE_SCOPE
58
59#endif
Represents an object that can identify the location of a data source.
Schema classes represent a structured view of the inherently unstructured container data source passe...
Definition: schema.h:26
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:92