HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Expression.h File Reference
#include "SOP_API.h"
+ Include dependency graph for SOP_Expression.h:

Go to the source code of this file.

Functions

SOP_API void SOPfindNearestToPrim (const GU_Detail &gdp, int prim_idx, const UT_Vector3 &position, const GEO_Primitive *&prim, float &u, float &v, float &distance)
 
SOP_API bool SOPswapUsesExprInputs (bool newvalue)
 
SOP_API UT_OptionsHolder SOPgetOptionValue (const GU_Detail *gdp, const char *attribname, GA_AttributeOwner owner, GA_Offset offset)
 
SOP_API fpreal SOPresolveOptionFloat (const char *attribname, const UT_OptionsHolder &opt, int comp)
 
SOP_API UT_StringHolder SOPresolveOptionString (const char *attribname, const UT_OptionsHolder &opt, int comp)
 
SOP_API bool SOPhasOption (const UT_OptionsHolder opt, const char *optname)
 

Function Documentation

SOP_API void SOPfindNearestToPrim ( const GU_Detail gdp,
int  prim_idx,
const UT_Vector3 position,
const GEO_Primitive *&  prim,
float u,
float v,
float distance 
)
SOP_API UT_OptionsHolder SOPgetOptionValue ( const GU_Detail gdp,
const char *  attribname,
GA_AttributeOwner  owner,
GA_Offset  offset 
)

Binds the given attribute name, up to a dot, to a dictionary and return the value. Empty optionsholder if invalid binding.

SOP_API bool SOPhasOption ( const UT_OptionsHolder  opt,
const char *  optname 
)

Given attrib name after the dot, returns if the option contains that key, properly recursing nested dictionaries.

SOP_API fpreal SOPresolveOptionFloat ( const char *  attribname,
const UT_OptionsHolder opt,
int  comp 
)

Given the attrib name after the dot, evaluates the keyed option value as a float and return the given component.

SOP_API UT_StringHolder SOPresolveOptionString ( const char *  attribname,
const UT_OptionsHolder opt,
int  comp 
)

Given the attrib name after the dot, evaluates the keyed option value as a string

SOP_API bool SOPswapUsesExprInputs ( bool  newvalue)