All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
selectionsSchema.h
1//
2// Copyright 2022 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7
8#ifndef PXR_IMAGING_HD_SELECTIONS_SCHEMA_H
9#define PXR_IMAGING_HD_SELECTIONS_SCHEMA_H
10
11#include "pxr/imaging/hd/api.h"
12
13#include "pxr/imaging/hd/vectorSchema.h"
15
16PXR_NAMESPACE_OPEN_SCOPE
17
18class HdSelectionSchema;
19
20//-----------------------------------------------------------------------------
21
22#define HDSELECTIONS_SCHEMA_TOKENS \
23 (selections) \
24
25TF_DECLARE_PUBLIC_TOKENS(HdSelectionsSchemaTokens, HD_API,
26 HDSELECTIONS_SCHEMA_TOKENS);
27
28//-----------------------------------------------------------------------------
29
30class HdSelectionsSchema : public HdSchemaBasedVectorSchema<HdSelectionSchema>
31{
32public:
33 HdSelectionsSchema(HdVectorDataSourceHandle const &vector)
34 : HdSchemaBasedVectorSchema(vector) {}
35
41 HD_API
42 static HdSelectionsSchema GetFromParent(
43 const HdContainerDataSourceHandle &fromParentContainer);
44
47 HD_API
48 static const TfToken &GetSchemaToken();
49
53 HD_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.
Template class wrapping a vector data source whose children are container data source conforming to a...
Definition: vectorSchema.h:81
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
This file defines some macros that are useful for declaring and using static TfTokens.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:81