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

#include <UnitSystem.h>

Public Member Functions

virtual ~UnitSystem ()
 
virtual const stringgetName () 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 ImplementationPtr getImplementation (const UnitTransform &transform, const string &unitname) const
 Returns an implementation 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 &language)
 

Protected Attributes

UnitConverterRegistryPtr _unitRegistry
 
DocumentPtr _document
 
string _target
 

Detailed Description

Base unit system support

Definition at line 51 of file UnitSystem.h.

Constructor & Destructor Documentation

virtual UnitSystem::~UnitSystem ( )
inlinevirtual

Definition at line 54 of file UnitSystem.h.

UnitSystem::UnitSystem ( const string language)
protected

Member Function Documentation

static UnitSystemPtr UnitSystem::create ( const string target)
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.

virtual ImplementationPtr UnitSystem::getImplementation ( const UnitTransform transform,
const string unitname 
) const
virtual

Returns an implementation for a given transform.

virtual const string& UnitSystem::getName ( ) const
inlinevirtual

Return the UnitSystem name.

Definition at line 60 of file UnitSystem.h.

virtual UnitConverterRegistryPtr UnitSystem::getUnitConverterRegistry ( ) const
virtual

Returns the currently assigned unit converter registry.

virtual void UnitSystem::loadLibrary ( DocumentPtr  document)
virtual

assign document with unit implementations replacing any previously loaded content.

virtual void UnitSystem::setUnitConverterRegistry ( UnitConverterRegistryPtr  registry)
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.

Member Data Documentation

DocumentPtr UnitSystem::_document
protected

Definition at line 92 of file UnitSystem.h.

string UnitSystem::_target
protected

Definition at line 93 of file UnitSystem.h.

UnitConverterRegistryPtr UnitSystem::_unitRegistry
protected

Definition at line 91 of file UnitSystem.h.

const string UnitSystem::UNITSYTEM_NAME
static

Definition at line 84 of file UnitSystem.h.


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