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

#include <hermiteCurves.h>

Public Member Functions

 PointAndTangentArrays ()=default
 Construct empty points and tangents arrays. More...
 
 PointAndTangentArrays (const PointAndTangentArrays &)=default
 
 PointAndTangentArrays (PointAndTangentArrays &&)=default
 
PointAndTangentArraysoperator= (const PointAndTangentArrays &)=default
 
PointAndTangentArraysoperator= (PointAndTangentArrays &&)=default
 
 PointAndTangentArrays (const VtVec3fArray &points, const VtVec3fArray &tangents)
 
USDGEOM_API VtVec3fArray Interleave () const
 
bool IsEmpty () const
 Returns true if the containers are empty. More...
 
 operator bool () const
 Returns true if there are values. More...
 
const VtVec3fArray & GetPoints () const
 Get separated points array. More...
 
const VtVec3fArray & GetTangents () const
 Get separated tangents array. More...
 
bool operator== (const PointAndTangentArrays &other)
 
bool operator!= (const PointAndTangentArrays &other)
 

Static Public Member Functions

static USDGEOM_API
PointAndTangentArrays 
Separate (const VtVec3fArray &interleaved)
 

Detailed Description

Represents points and tangents of the same size.

Utility to interleave point and tangent data. This class is immutable.

Definition at line 218 of file hermiteCurves.h.

Constructor & Destructor Documentation

UsdGeomHermiteCurves::PointAndTangentArrays::PointAndTangentArrays ( )
default

Construct empty points and tangents arrays.

UsdGeomHermiteCurves::PointAndTangentArrays::PointAndTangentArrays ( const PointAndTangentArrays )
default
UsdGeomHermiteCurves::PointAndTangentArrays::PointAndTangentArrays ( PointAndTangentArrays &&  )
default
UsdGeomHermiteCurves::PointAndTangentArrays::PointAndTangentArrays ( const VtVec3fArray &  points,
const VtVec3fArray &  tangents 
)
inline

Initializes points and tangents if they are the same size.

If points and tangents are not the same size, an empty container is created.

Definition at line 238 of file hermiteCurves.h.

Member Function Documentation

const VtVec3fArray& UsdGeomHermiteCurves::PointAndTangentArrays::GetPoints ( ) const
inline

Get separated points array.

Definition at line 269 of file hermiteCurves.h.

const VtVec3fArray& UsdGeomHermiteCurves::PointAndTangentArrays::GetTangents ( ) const
inline

Get separated tangents array.

Definition at line 272 of file hermiteCurves.h.

USDGEOM_API VtVec3fArray UsdGeomHermiteCurves::PointAndTangentArrays::Interleave ( ) const

Interleaves points (P0, ..., Pn) and tangents (T0, ..., Tn) into one array (P0, T0, ..., Pn, Tn).

bool UsdGeomHermiteCurves::PointAndTangentArrays::IsEmpty ( ) const
inline

Returns true if the containers are empty.

Definition at line 259 of file hermiteCurves.h.

UsdGeomHermiteCurves::PointAndTangentArrays::operator bool ( ) const
inlineexplicit

Returns true if there are values.

Definition at line 266 of file hermiteCurves.h.

PointAndTangentArrays& UsdGeomHermiteCurves::PointAndTangentArrays::operator= ( const PointAndTangentArrays )
default
PointAndTangentArrays& UsdGeomHermiteCurves::PointAndTangentArrays::operator= ( PointAndTangentArrays &&  )
default
bool UsdGeomHermiteCurves::PointAndTangentArrays::operator== ( const PointAndTangentArrays other)
inline

Definition at line 274 of file hermiteCurves.h.

static USDGEOM_API PointAndTangentArrays UsdGeomHermiteCurves::PointAndTangentArrays::Separate ( const VtVec3fArray &  interleaved)
inlinestatic

Given an interleaved points and tangents arrays (P0, T0, ..., Pn, Tn), separates them into two arrays (P0, ..., PN) and (T0, ..., Tn).

Definition at line 250 of file hermiteCurves.h.


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