Fluxus::PrimitiveFunction Class Reference

A general purpose function for working on primitives. More...

#include <PrimitiveFunction.h>

Inheritance diagram for Fluxus::PrimitiveFunction:

Inheritance graph
[legend]

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...

Detailed Description

A general purpose function for working on primitives.

Definition at line 32 of file PrimitiveFunction.h.


Constructor & Destructor Documentation

PrimitiveFunction::PrimitiveFunction (  ) 

Definition at line 21 of file PrimitiveFunction.cpp.

PrimitiveFunction::~PrimitiveFunction (  )  [virtual]

Definition at line 25 of file PrimitiveFunction.cpp.


Member Function Documentation

template<class T>
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.

template<class T>
TypedArg<T> Fluxus::PrimitiveFunction::GetResult (  )  [inline]

Get the result.

Definition at line 69 of file PrimitiveFunction.h.

template<class T>
const T & Fluxus::PrimitiveFunction::GetArg ( const string &  name,
const T &  def 
) [protected]

Get the value of an argument.

Definition at line 92 of file PrimitiveFunction.h.

template<class T>
bool Fluxus::PrimitiveFunction::ArgExists ( const string &  name  )  [protected]

See if an argument exists.

Definition at line 112 of file PrimitiveFunction.h.


The documentation for this class was generated from the following files:
Generated on Mon Feb 11 06:54:51 2008 for The Fluxus Renderer (libfluxus) by  doxygen 1.5.1