HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdNurbsPatchSchema Class Reference

#include <nurbsPatchSchema.h>

+ Inheritance diagram for HdNurbsPatchSchema:

Classes

class  Builder
 

Public Member Functions

 HdNurbsPatchSchema (HdContainerDataSourceHandle container)
 
HD_API HdIntDataSourceHandle GetUVertexCount ()
 
HD_API HdIntDataSourceHandle GetVVertexCount ()
 
HD_API HdIntDataSourceHandle GetUOrder ()
 
HD_API HdIntDataSourceHandle GetVOrder ()
 
HD_API
HdDoubleArrayDataSourceHandle 
GetUKnots ()
 
HD_API
HdDoubleArrayDataSourceHandle 
GetVKnots ()
 
HD_API HdTokenDataSourceHandle GetUForm ()
 
HD_API HdTokenDataSourceHandle GetVForm ()
 
HD_API HdVec2dDataSourceHandle GetURange ()
 
HD_API HdVec2dDataSourceHandle GetVRange ()
 
HD_API HdNurbsPatchTrimCurveSchema GetTrimCurve ()
 
HD_API HdTokenDataSourceHandle GetOrientation ()
 
HD_API HdBoolDataSourceHandle GetDoubleSided ()
 
- Public Member Functions inherited from HdSchema
 HdSchema (HdContainerDataSourceHandle container)
 
HD_API HdContainerDataSourceHandle GetContainer ()
 Returns the container data source that this schema is interpreting. More...
 
HD_API bool IsDefined () const
 
 operator bool () const
 

Static Public Member Functions

static HD_API
HdContainerDataSourceHandle 
BuildRetained (const HdIntDataSourceHandle &uVertexCount, const HdIntDataSourceHandle &vVertexCount, const HdIntDataSourceHandle &uOrder, const HdIntDataSourceHandle &vOrder, const HdDoubleArrayDataSourceHandle &uKnots, const HdDoubleArrayDataSourceHandle &vKnots, const HdTokenDataSourceHandle &uForm, const HdTokenDataSourceHandle &vForm, const HdVec2dDataSourceHandle &uRange, const HdVec2dDataSourceHandle &vRange, const HdContainerDataSourceHandle &trimCurve, const HdTokenDataSourceHandle &orientation, const HdBoolDataSourceHandle &doubleSided)
 
static HD_API HdNurbsPatchSchema GetFromParent (const HdContainerDataSourceHandle &fromParentContainer)
 
static HD_API const TfTokenGetSchemaToken ()
 
static HD_API const
HdDataSourceLocator
GetDefaultLocator ()
 
static HD_API
HdTokenDataSourceHandle 
BuildFormDataSource (const TfToken &form)
 
static HD_API
HdTokenDataSourceHandle 
BuildOrientationDataSource (const TfToken &orientation)
 

Additional Inherited Members

- Public Types inherited from HdSchema
using UnderlyingDataSource = HdContainerDataSource
 
- Protected Member Functions inherited from HdSchema
template<typename T >
T::Handle _GetTypedDataSource (TfToken name)
 
- Protected Attributes inherited from HdSchema
HdContainerDataSourceHandle _container
 

Detailed Description

Definition at line 80 of file nurbsPatchSchema.h.

Constructor & Destructor Documentation

HdNurbsPatchSchema::HdNurbsPatchSchema ( HdContainerDataSourceHandle  container)
inline

Definition at line 83 of file nurbsPatchSchema.h.

Member Function Documentation

static HD_API HdTokenDataSourceHandle HdNurbsPatchSchema::BuildFormDataSource ( const TfToken form)
static

Returns token data source for use as form value. Values of...

  • HdNurbsPatchSchemaTokens->open
  • HdNurbsPatchSchemaTokens->closed
  • HdNurbsPatchSchemaTokens->periodic ...will be stored statically and reused for future calls.
static HD_API HdTokenDataSourceHandle HdNurbsPatchSchema::BuildOrientationDataSource ( const TfToken orientation)
static

Returns token data source for use as orientation value. Values of...

  • HdNurbsPatchSchemaTokens->leftHanded
  • HdNurbsPatchSchemaTokens->rightHanded ...will be stored statically and reused for future calls.
static HD_API HdContainerDataSourceHandle HdNurbsPatchSchema::BuildRetained ( const HdIntDataSourceHandle uVertexCount,
const HdIntDataSourceHandle vVertexCount,
const HdIntDataSourceHandle uOrder,
const HdIntDataSourceHandle vOrder,
const HdDoubleArrayDataSourceHandle uKnots,
const HdDoubleArrayDataSourceHandle vKnots,
const HdTokenDataSourceHandle uForm,
const HdTokenDataSourceHandle vForm,
const HdVec2dDataSourceHandle uRange,
const HdVec2dDataSourceHandle vRange,
const HdContainerDataSourceHandle &  trimCurve,
const HdTokenDataSourceHandle orientation,
const HdBoolDataSourceHandle doubleSided 
)
static

Builds a container data source which includes the provided child data sources. Parameters with nullptr values are excluded. This is a low-level interface. For cases in which it's desired to define the container with a sparse set of child fields, the Builder class is often more convenient and readable.

static HD_API const HdDataSourceLocator& HdNurbsPatchSchema::GetDefaultLocator ( )
static

Returns an HdDataSourceLocator (relative to the prim-level data source) where the container representing this schema is found by default.

HD_API HdBoolDataSourceHandle HdNurbsPatchSchema::GetDoubleSided ( )
static HD_API HdNurbsPatchSchema HdNurbsPatchSchema::GetFromParent ( const HdContainerDataSourceHandle &  fromParentContainer)
static

Retrieves a container data source with the schema's default name token "nurbsPatch" from the parent container and constructs a HdNurbsPatchSchema instance. Because the requested container data source may not exist, the result should be checked with IsDefined() or a bool comparison before use.

HD_API HdTokenDataSourceHandle HdNurbsPatchSchema::GetOrientation ( )
static HD_API const TfToken& HdNurbsPatchSchema::GetSchemaToken ( )
static

Returns a token where the container representing this schema is found in a container by default.

HD_API HdNurbsPatchTrimCurveSchema HdNurbsPatchSchema::GetTrimCurve ( )
HD_API HdTokenDataSourceHandle HdNurbsPatchSchema::GetUForm ( )
HD_API HdDoubleArrayDataSourceHandle HdNurbsPatchSchema::GetUKnots ( )
HD_API HdIntDataSourceHandle HdNurbsPatchSchema::GetUOrder ( )
HD_API HdVec2dDataSourceHandle HdNurbsPatchSchema::GetURange ( )
HD_API HdIntDataSourceHandle HdNurbsPatchSchema::GetUVertexCount ( )
HD_API HdTokenDataSourceHandle HdNurbsPatchSchema::GetVForm ( )
HD_API HdDoubleArrayDataSourceHandle HdNurbsPatchSchema::GetVKnots ( )
HD_API HdIntDataSourceHandle HdNurbsPatchSchema::GetVOrder ( )
HD_API HdVec2dDataSourceHandle HdNurbsPatchSchema::GetVRange ( )
HD_API HdIntDataSourceHandle HdNurbsPatchSchema::GetVVertexCount ( )

The documentation for this class was generated from the following file: