#include <PrimitiveFunction.h>
Inheritance diagram for Fluxus::PrimitiveFunction:
Public Member Functions | |
PrimitiveFunction () | |
virtual | ~PrimitiveFunction () |
template<class T> | |
void | SetArg (const string &name, const T &arg) |
void | ClearArgs () |
Primitive function abstract interface | |
virtual void | Run (Primitive &prim, const SceneGraph &world)=0 |
Do the work... | |
template<class T> | |
TypedArg< T > | GetResult () |
Get the result. | |
Protected Member Functions | |
Argument access for implementations | |
template<class T> | |
const T & | GetArg (const string &name, const T &def) |
Get the value of an argument. | |
template<class T> | |
bool | ArgExists (const string &name) |
See if an argument exists. | |
Data Structures | |
class | Arg |
Base class argument type. More... | |
class | TypedArg |
Useful argument type. More... |
Definition at line 32 of file PrimitiveFunction.h.
PrimitiveFunction::PrimitiveFunction | ( | ) |
Definition at line 21 of file PrimitiveFunction.cpp.
PrimitiveFunction::~PrimitiveFunction | ( | ) | [virtual] |
Definition at line 25 of file PrimitiveFunction.cpp.
void Fluxus::PrimitiveFunction::SetArg | ( | const string & | name, | |
const T & | arg | |||
) |
Definition at line 132 of file PrimitiveFunction.h.
void PrimitiveFunction::ClearArgs | ( | ) |
Definition at line 29 of file PrimitiveFunction.cpp.
virtual void Fluxus::PrimitiveFunction::Run | ( | Primitive & | prim, | |
const SceneGraph & | world | |||
) | [pure virtual] |
Do the work...
Implemented in Fluxus::ArithmeticPrimFunc, Fluxus::GenSkinWeightsPrimFunc, Fluxus::SkinningPrimFunc, and Fluxus::SkinWeightsToVertColsPrimFunc.
TypedArg<T> Fluxus::PrimitiveFunction::GetResult | ( | ) | [inline] |
const T & Fluxus::PrimitiveFunction::GetArg | ( | const string & | name, | |
const T & | def | |||
) | [protected] |
bool Fluxus::PrimitiveFunction::ArgExists | ( | const string & | name | ) | [protected] |