HDK
|
#include <UnitSystem.h>
Public Member Functions | |
virtual | ~UnitSystem () |
virtual const string & | getName () const |
Return the UnitSystem name. More... | |
virtual void | setUnitConverterRegistry (UnitConverterRegistryPtr registry) |
Assign unit converter registry replacing any previous assignment. More... | |
virtual UnitConverterRegistryPtr | getUnitConverterRegistry () const |
Returns the currently assigned unit converter registry. More... | |
virtual void | loadLibrary (DocumentPtr document) |
assign document with unit implementations replacing any previously loaded content. More... | |
bool | supportsTransform (const UnitTransform &transform) const |
Returns whether this unit system supports a provided transform. More... | |
ShaderNodePtr | createNode (ShaderGraph *parent, const UnitTransform &transform, const string &name, GenContext &context) const |
Create a node to use to perform the given unit space transformation. More... | |
virtual NodeDefPtr | getNodeDef (const UnitTransform &transform) const |
Returns a nodedef for a given transform. More... | |
Static Public Member Functions | |
static UnitSystemPtr | create (const string &target) |
Create a new UnitSystem. More... | |
Static Public Attributes | |
static const string | UNITSYTEM_NAME |
Protected Member Functions | |
UnitSystem (const string &target) | |
Protected Attributes | |
UnitConverterRegistryPtr | _unitRegistry |
DocumentPtr | _document |
string | _target |
Base unit system support
Definition at line 51 of file UnitSystem.h.
|
inlinevirtual |
Definition at line 54 of file UnitSystem.h.
|
protected |
|
static |
Create a new UnitSystem.
ShaderNodePtr UnitSystem::createNode | ( | ShaderGraph * | parent, |
const UnitTransform & | transform, | ||
const string & | name, | ||
GenContext & | context | ||
) | const |
Create a node to use to perform the given unit space transformation.
|
inlinevirtual |
Return the UnitSystem name.
Definition at line 60 of file UnitSystem.h.
|
virtual |
Returns a nodedef for a given transform.
|
virtual |
Returns the currently assigned unit converter registry.
|
virtual |
assign document with unit implementations replacing any previously loaded content.
|
virtual |
Assign unit converter registry replacing any previous assignment.
bool UnitSystem::supportsTransform | ( | const UnitTransform & | transform | ) | const |
Returns whether this unit system supports a provided transform.
|
protected |
Definition at line 92 of file UnitSystem.h.
|
protected |
Definition at line 93 of file UnitSystem.h.
|
protected |
Definition at line 91 of file UnitSystem.h.
|
static |
Definition at line 84 of file UnitSystem.h.