#include <Crank.h>
Inheritance diagram for Crank:
Definition at line 40 of file Crank.h.
Text object-name | |
from SimBase | |
std::string | getObjName () |
std::string | getName () |
void | setName (std::string name) |
void | setName (const char *name) |
Debug prints | |
from SimBase: These print the object name with the error, mostly for convenience, but they are compiled to inline-no-op if you build in release mode | |
void | derr (const char *when, const char *where=0) const |
template<class T> void | derr (const char *when, const char *where, const T stuff) const |
Modification, AKA "changed" | |
from SimBase: id based, you can capture the current id for comparison later, if the id's don't match the class has been changed | |
virtual int | getChangeID () |
virtual int | getChangeID () const |
virtual void | setChanged () |
Serialization: | |
from SimBase You MUST override these pure virtual functions, they "should" do something usefull. It is also nice if you declare a static std::istream &create(std::istream &is) const; function, to create a class from a stream. This is done on a per-concrete class basis.
These aren't pure virutal yet, but will be soon! | |
virtual std::ostream & | saveSelf (std::ostream &os) |
serialize | |
virtual std::istream & | readSelf (std::istream &is) |
unserialize | |
Public Member Functions | |
virtual | ~Crank () |
int | getKind () const |
from <GrinderKinds.h> | |
virtual glift::VertexShaderSP | getVertShader () |
Vertex Shader. | |
virtual glift::PixelShaderSP | getPixelShader () |
Pixel Shader. | |
virtual glift::ProgShaderSP | getShader () |
a complete shader specification | |
int | addMP (MetaProgSP m) |
add MP | |
int | insertMP (int idx, MetaProgSP m) |
insert MP | |
void | setMP (SNameType name, MetaProgSP m) |
get MP by name | |
void | setMP (int idx, MetaProgSP m) |
set by index | |
MetaProgSP | getMP (int idx) |
get by index | |
MetaProgSP | getMP (SNameType name) |
int | getMPIdx (SNameType name) |
get index by name | |
int | getMPIdx (MetaProgSP m) |
get index by reference | |
MetaProgSP | delMP (int idx) |
del by index | |
MetaProgSP | delMP (SNameType name) |
del by index | |
MetaProgSP | delMP (MetaProgSP m) |
del by reference | |
Protected Member Functions | |
Crank () | |
Crank (int kind) | |
Crank (const Crank &c) | |
virtual bool | checkKind (MetaProgSP m) |
the meta-prog vector, from management ^^^ false = valid kind, true = invalid kind | |
virtual void | kindErr (const char *where=0) |
this prints when you have a bad kind... | |
bool | mpsChanged () |
check if any of the meta-progs changed | |
void | addTape (TapeSPVec &v, TapeSP t) |
keep track of changes generic tape management | |
void | insertTape (TapeSPVec &v, int i, TapeSP t) |
insert tape | |
void | setTape (TapeSPVec &v, int i, TapeSP t) |
set tape | |
TapeSP | getTape (TapeSPVec &v, int i) |
get tape | |
void | delTape (TapeSPVec &v, int i) |
del tape, by index | |
void | delTape (TapeSPVec &v, TapeSP t) |
del tape, by value | |
virtual GrinderKeysSP | buildFPEnvKeys () |
del tape, by value this function mostly adds keys defined in <EnvKeys.h> | |
Protected Attributes | |
gutz::arrayo1i | _lastCh |
MetaProgSPVec | _mprogs |
int | _kind |
std::string | _name_ |
a text name for the object, SimBase | |
int | _changed |
change id, incremented whenever setChanged is called, SimBase |
|
|
|
Definition at line 74 of file Crank.h. References _kind, _lastCh, and GK_UNKNOWN. |
|
Definition at line 75 of file Crank.h. References _kind. |
|
|
|
add MP
Definition at line 39 of file Crank.cpp. References _mprogs, checkKind(), and kindErr(). |
|
keep track of changes generic tape management
Definition at line 208 of file Crank.cpp. Referenced by insertTape(). |
|
del tape, by value this function mostly adds keys defined in <EnvKeys.h> create keys add environment keys TODO: flesh this out will ya. Definition at line 313 of file Crank.cpp. References EnvKey. |
|
the meta-prog vector, from management ^^^ false = valid kind, true = invalid kind
Definition at line 85 of file Crank.h. References _kind, GK_UNKNOWN, and gutz::SmartPtr< T >::isNull(). Referenced by addMP(), insertMP(), and setMP(). |
|
del by reference
Definition at line 194 of file Crank.cpp. References delMP(), and getMPIdx(). |
|
del by index
Definition at line 186 of file Crank.cpp. References delMP(), getMPIdx(), and name. |
|
del by index
Definition at line 171 of file Crank.cpp. References _mprogs, SimBase::derr(), getMP(), and MetaProgSP. Referenced by delMP(). |
|
del tape, by value
Definition at line 288 of file Crank.cpp. References SimBase::derr(), t, TapeSPVecIter, and v. |
|
del tape, by index
Definition at line 271 of file Crank.cpp. References SimBase::derr(), and v. |
|
only prints in debug mode, -D_DEBUG Definition at line 130 of file simBase.h. References SimBase::_name_. |
|
|
Definition at line 73 of file simBase.h. References SimBase::_changed. |
|
Reimplemented in TFGeneric, TFBaseSP, and TFEltSP. Definition at line 72 of file simBase.h. References SimBase::_changed. Referenced by TFEltSP::getChangeID(), TFBaseSP::getChangeID(), and TFGeneric::getChangeID(). |
|
from <GrinderKinds.h>
Definition at line 45 of file Crank.h. References _kind. |
|
Definition at line 118 of file Crank.cpp. References getMP(), getMPIdx(), and name. |
|
get by index
Definition at line 108 of file Crank.cpp. References _mprogs, SimBase::derr(), and MetaProgSP. |
|
get index by reference
Definition at line 148 of file Crank.cpp. References _mprogs, SimBase::derr(), and MetaProgSPVecIter. |
|
get index by name
Definition at line 126 of file Crank.cpp. References _mprogs, SimBase::derr(), and name. |
|
Definition at line 45 of file simBase.h. References SimBase::_name_. Referenced by MetaProg::operator<<(). |
|
Definition at line 44 of file simBase.h. References string. |
|
Pixel Shader.
Reimplemented in FPCrank, and StupidFPCrank. Definition at line 52 of file Crank.h. References glift::PixelShaderSP. |
|
a complete shader specification
Definition at line 56 of file Crank.h. References glift::ProgShaderSP. |
|
get tape
Definition at line 255 of file Crank.cpp. References SimBase::derr(), TapeSP, and v. |
|
Vertex Shader.
Reimplemented in VPCrank. Definition at line 48 of file Crank.h. References glift::VertexShaderSP. |
|
insert MP
Definition at line 53 of file Crank.cpp. References _mprogs, checkKind(), kindErr(), and MetaProgSP. |
|
insert tape
Definition at line 216 of file Crank.cpp. References addTape(), SimBase::derr(), t, TapeSPVecIter, and v. Referenced by setTape(). |
|
this prints when you have a bad kind... might want to print an err insteand of a derr Definition at line 94 of file Crank.h. References SimBase::derr(). Referenced by addMP(), insertMP(), and setMP(). |
|
check if any of the meta-progs changed
Definition at line 330 of file Crank.cpp. References _lastCh, _mprogs, gutz::arrayo1i, and gutz::g_min(). Referenced by StupidFPCrank::getPixelShader(). |
|
unserialize
Reimplemented in SimCore, and VolRenBase. |
|
serialize
Reimplemented in SimCore, and VolRenBase. |
|
Definition at line 74 of file simBase.h. References SimBase::_changed. Referenced by TFEltSP::getChangeID(), TFBaseSP::getChangeID(), TFBaseSP::operator=(), and TFGeneric::update(). |
|
set by index
Definition at line 90 of file Crank.cpp. References _mprogs, checkKind(), SimBase::derr(), and kindErr(). |
|
get MP by name
Definition at line 71 of file Crank.cpp. References _mprogs, checkKind(), SimBase::derr(), getMPIdx(), kindErr(), and name. |
|
Definition at line 47 of file simBase.h. References SimBase::_name_, and name. |
|
Reimplemented in Key. Definition at line 46 of file simBase.h. References SimBase::_name_, and name. Referenced by EventData::EventData(), and GenDataObj_base< Nrro, gutz::SmartPtr< Nrro > >::GenDataObj_base(). |
|
set tape
Definition at line 238 of file Crank.cpp. References SimBase::derr(), insertTape(), t, and v. |
|
change id, incremented whenever setChanged is called, SimBase
Definition at line 103 of file simBase.h. Referenced by SimBase::getChangeID(), SimBase::setChanged(), and SimBase::SimBase(). |
|
Definition at line 114 of file Crank.h. Referenced by checkKind(), Crank(), and getKind(). |
|
Definition at line 100 of file Crank.h. Referenced by Crank(), and mpsChanged(). |
|
Definition at line 112 of file Crank.h. Referenced by addMP(), delMP(), getMP(), getMPIdx(), StupidFPCrank::getPixelShader(), insertMP(), mpsChanged(), and setMP(). |
|
a text name for the object, SimBase
Definition at line 101 of file simBase.h. Referenced by SimBase::derr(), SimBase::getName(), SimBase::setName(), and SimBase::SimBase(). |