HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rmanUtilities.h
Go to the documentation of this file.
1 //
2 // Copyright 2016 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_USD_RI_RMAN_UTILITIES_H
8 #define PXR_USD_USD_RI_RMAN_UTILITIES_H
9 
10 /// \file usdRi/rmanUtilities.h
11 /// Utilities for converting between USD encodings and Renderman encodings in
12 /// cases where there is a difference.
13 
14 #include "pxr/pxr.h"
15 #include "pxr/usd/usdRi/api.h"
16 
18 
19 class TfToken;
20 
21 /// Given a \p token representing a UsdGeom interpolate boundary value, returns
22 /// corresponding rman enum (converted to int).
25 
26 /// Given the integer \p i that corresponds to an rman enum for interpolate
27 /// boundary condition, returns the equivalent UsdGeom token.
30 
31 /// Given a \p token representing a UsdGeom face-varying interpolate boundary
32 /// value, returns corresponding rman enum (converted to int).
35 
36 /// Given the integer \p i that corresponds to an rman enum for face-varying
37 /// interpolate boundary condition, returns the equivalent UsdGeom token.
40 
41 /// Given a \p token representing a UsdGeom Catmull-Clark triangle subdivision
42 /// rule value, returns corresponding rman enum (converted to int).
45 
46 /// Given the integer \p i that corresponds to an rman enum for a Catmull-
47 /// Clark triangle subdivision rule, returns the equivalent UsdGeom token.
50 
52 
53 #endif //PXR_USD_USD_RI_RMAN_UTILITIES_H
USDRI_API int UsdRiConvertToRManInterpolateBoundary(const TfToken &token)
USDRI_API const TfToken & UsdRiConvertFromRManInterpolateBoundary(int i)
USDRI_API const TfToken & UsdRiConvertFromRManFaceVaryingLinearInterpolation(int i)
Definition: token.h:70
#define USDRI_API
Definition: api.h:23
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
USDRI_API int UsdRiConvertToRManTriangleSubdivisionRule(const TfToken &token)
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
USDRI_API const TfToken & UsdRiConvertFromRManTriangleSubdivisionRule(int i)
USDRI_API int UsdRiConvertToRManFaceVaryingLinearInterpolation(const TfToken &token)