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

#include <rawValueAccessor.h>

+ Inheritance diagram for VdfRawValueAccessor:

Public Member Functions

 VdfRawValueAccessor (const VdfContext &context)
 
VDF_API const VdfVectorGetInputVector (const VdfInput &input, VdfMask *mask=nullptr) const
 
VDF_API void SetOutputVector (const VdfOutput &output, const VdfMask &mask, const VdfVector &value)
 
VDF_API void SetOutputVector (const VdfOutput &output, const VdfMask &mask, VdfVector &&value)
 

Additional Inherited Members

- Protected Member Functions inherited from VdfIterator
 ~VdfIterator ()=default
 
const VdfNode_GetNode (const VdfContext &context) const
 
const VdfExecutorInterface_GetExecutor (const VdfContext &context) const
 
VDF_API const VdfVector_GetInputValue (const VdfContext &context, const VdfConnection &connection, const VdfMask &mask) const
 
VDF_API const VdfVector_GetRequiredInputValue (const VdfContext &context, const VdfConnection &connection, const VdfMask &mask) const
 
VDF_API const VdfOutput_GetRequiredOutputForWriting (const VdfContext &context, const TfToken &name) const
 
VDF_API VdfVector_GetOutputValueForWriting (const VdfContext &context, const VdfOutput &output) const
 
VDF_API bool _GetOutputMasks (const VdfContext &context, const VdfOutput &output, const VdfMask **requestMask, const VdfMask **affectsMask) const
 
VDF_API bool _IsRequiredInput (const VdfContext &context, const VdfConnection &connection) const
 
VDF_API const VdfMask_GetRequestMask (const VdfContext &context, const VdfOutput &output) const
 
VDF_API void _ForEachScheduledOutput (const VdfContext &context, const VdfNode &node, const VdfScheduledOutputCallback &callback) const
 

Detailed Description

This class grants special access to the raw VdfVector data associated with inputs and outputs on a VdfNode.

Note, that input and output data is typically accessed using the VdfContext. In some special cases, nodes may require type-agnostic access to the entire VdfVector stored for a specific input or output.

We do not want this class to be used in typical plugin code (mover, gprims, etc.), thus inputs and outputs are referred to using VdfInput and VdfOutput instances, rather than name tokens. Only classes derived from VdfNode will typically have access to these objects.

Definition at line 39 of file rawValueAccessor.h.

Constructor & Destructor Documentation

VdfRawValueAccessor::VdfRawValueAccessor ( const VdfContext context)
inline

Constructs a VdfRawValueAccessor from a VdfContext.

Definition at line 45 of file rawValueAccessor.h.

Member Function Documentation

VDF_API const VdfVector* VdfRawValueAccessor::GetInputVector ( const VdfInput input,
VdfMask mask = nullptr 
) const

Returns the first VdfVector at the input for input. Returns nullptr if there is no connection on the supplied input or if the requested input does not exist.

Note, this method purposefully accepts a VdfInput instead of a TfToken, such that it can only be used where VdfInputs are available.

VDF_API void VdfRawValueAccessor::SetOutputVector ( const VdfOutput output,
const VdfMask mask,
const VdfVector value 
)

Sets the output value to the given value using the passed in mask.

Note, this method purposefully accepts a VdfOutput instead of a TfToken, such that it can only be used where VdfOutputs are available.

VDF_API void VdfRawValueAccessor::SetOutputVector ( const VdfOutput output,
const VdfMask mask,
VdfVector &&  value 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.


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