#include <IFD_IPRTree.h>
Public Member Functions | |
| IFD_IPRTree (const char *cachefile="", const char *cacheprefix="ipr") | |
| ~IFD_IPRTree () | |
| int | save (ostream &os) |
| bool | load (UT_IStream &is, IFD_IPRObjectFactory &factory, float now) |
| void | afterLoad (float now) |
| void | setRenderer (const char *r) |
| const char * | getRenderer () const |
| void | setRenderData (IFD_IPRData *rdata) |
| IFD_IPRData * | getRenderData () |
| const char * | getIPRName () |
| void | setIPRName (const char *name) |
| void | setStream (IFD_RenderStream *stream) |
| bool | hasStream () const |
| const char * | getCacheFile () const |
| bool | startRender (float now) |
| bool | finishRender (int status) |
| bool | beingCreated () const |
| void | forceRecreate () |
| bool | isDirty () const |
| void | setDirty (bool onoff) |
| void | setDestroyCache (bool onoff) |
| void | clearAll () |
| bool | lightDirty (int obj, const char *attribute) |
| bool | fogDirty (int obj, const char *attribute) |
| bool | detailDirty (int obj, const char *attribute) |
| bool | instanceDirty (int obj, const char *attribute) |
| bool | containsLight (int obj) |
| bool | containsFog (int obj) |
| bool | containsDetail (int obj) |
| bool | containsInstance (int obj) |
| void | addLight (IFD_IPRObject *obj) |
| void | addFog (IFD_IPRObject *obj) |
| void | addDetail (IFD_IPRObject *obj) |
| void | addInstance (IFD_IPRObject *obj) |
| void | addNewLight (IFD_IPRObject *obj) |
| void | addNewFog (IFD_IPRObject *obj) |
| IFD_IPRObject * | findLight (int unique_id) |
| IFD_IPRObject * | findFog (int unique_id) |
| IFD_IPRObject * | findInstance (int unique_id) |
| IFD_IPRObject * | findDetail (int unique_id) |
| ROP_IPRObject * | findRopLight (int unique_id) |
| ROP_IPRObject * | findRopFog (int unique_id) |
| ROP_IPRObject * | findRopInstance (int unique_id) |
| ROP_IPRObject * | findRopDetail (int unique_id) |
| int | getLightCount () const |
| int | getFogCount () const |
| int | getDetailCount () const |
| int | getInstanceCount () const |
| IFD_IPRObject * | getLight (int i) |
| IFD_IPRObject * | getFog (int i) |
| IFD_IPRObject * | getDetail (int i) |
| IFD_IPRObject * | getInstance (int i) |
| void | clearObjectUsedFlags () |
| void | allocateMaps (int nlight, int nfog, int ndetail, int ninstances) |
| void | freeMaps () |
| int * | getLightMap () |
| int * | getFogMap () |
| int * | getDetailMap () |
| int * | getInstanceMap () |
| int | getLightMapSize () |
| int | getFogMapSize () |
| int | getDetailMapSize () |
| int | getInstanceMapSize () |
| void | dump () |
| bool | autogenDirty () const |
| void | dirtyAutogen () |
| UT_NotifierImpl< IFD_IPREvent & > & | getEventNotifier () |
Definition at line 35 of file IFD_IPRTree.h.
| IFD_IPRTree::IFD_IPRTree | ( | const char * | cachefile = "", |
|
| const char * | cacheprefix = "ipr" | |||
| ) |
| IFD_IPRTree::~IFD_IPRTree | ( | ) |
| void IFD_IPRTree::addDetail | ( | IFD_IPRObject * | obj | ) |
| void IFD_IPRTree::addFog | ( | IFD_IPRObject * | obj | ) |
| void IFD_IPRTree::addInstance | ( | IFD_IPRObject * | obj | ) |
| void IFD_IPRTree::addLight | ( | IFD_IPRObject * | obj | ) |
| void IFD_IPRTree::addNewFog | ( | IFD_IPRObject * | obj | ) |
| void IFD_IPRTree::addNewLight | ( | IFD_IPRObject * | obj | ) |
| void IFD_IPRTree::afterLoad | ( | float | now | ) |
| void IFD_IPRTree::allocateMaps | ( | int | nlight, | |
| int | nfog, | |||
| int | ndetail, | |||
| int | ninstances | |||
| ) |
A map is created which maps the index in the scene to an object in the IPR tree. These maps are created when re-rendering the scene.
| bool IFD_IPRTree::autogenDirty | ( | ) | const [inline] |
Definition at line 141 of file IFD_IPRTree.h.
| bool IFD_IPRTree::beingCreated | ( | ) | const [inline] |
Definition at line 63 of file IFD_IPRTree.h.
| void IFD_IPRTree::clearAll | ( | ) |
| void IFD_IPRTree::clearObjectUsedFlags | ( | ) |
Each object has a flag stating whether it's used in the re-rendering or not. This method clears all the flags for all the objects.
| bool IFD_IPRTree::containsDetail | ( | int | obj | ) |
| bool IFD_IPRTree::containsFog | ( | int | obj | ) |
| bool IFD_IPRTree::containsInstance | ( | int | obj | ) |
| bool IFD_IPRTree::containsLight | ( | int | obj | ) |
| bool IFD_IPRTree::detailDirty | ( | int | obj, | |
| const char * | attribute | |||
| ) |
| void IFD_IPRTree::dirtyAutogen | ( | ) | [inline] |
Definition at line 142 of file IFD_IPRTree.h.
| void IFD_IPRTree::dump | ( | ) |
| IFD_IPRObject* IFD_IPRTree::findDetail | ( | int | unique_id | ) |
| IFD_IPRObject* IFD_IPRTree::findFog | ( | int | unique_id | ) |
| IFD_IPRObject* IFD_IPRTree::findInstance | ( | int | unique_id | ) |
| IFD_IPRObject* IFD_IPRTree::findLight | ( | int | unique_id | ) |
| ROP_IPRObject* IFD_IPRTree::findRopDetail | ( | int | unique_id | ) |
| ROP_IPRObject* IFD_IPRTree::findRopFog | ( | int | unique_id | ) |
| ROP_IPRObject* IFD_IPRTree::findRopInstance | ( | int | unique_id | ) |
| ROP_IPRObject* IFD_IPRTree::findRopLight | ( | int | unique_id | ) |
| bool IFD_IPRTree::finishRender | ( | int | status | ) |
| bool IFD_IPRTree::fogDirty | ( | int | obj, | |
| const char * | attribute | |||
| ) |
| void IFD_IPRTree::forceRecreate | ( | ) | [inline] |
Definition at line 64 of file IFD_IPRTree.h.
| void IFD_IPRTree::freeMaps | ( | ) |
| const char* IFD_IPRTree::getCacheFile | ( | ) | const [inline] |
Definition at line 58 of file IFD_IPRTree.h.
| IFD_IPRObject* IFD_IPRTree::getDetail | ( | int | i | ) | [inline] |
Definition at line 116 of file IFD_IPRTree.h.
| int IFD_IPRTree::getDetailCount | ( | ) | const [inline] |
Definition at line 111 of file IFD_IPRTree.h.
| int* IFD_IPRTree::getDetailMap | ( | ) | [inline] |
Definition at line 131 of file IFD_IPRTree.h.
| int IFD_IPRTree::getDetailMapSize | ( | ) | [inline] |
Definition at line 136 of file IFD_IPRTree.h.
| UT_NotifierImpl< IFD_IPREvent& >& IFD_IPRTree::getEventNotifier | ( | ) | [inline] |
Definition at line 145 of file IFD_IPRTree.h.
| IFD_IPRObject* IFD_IPRTree::getFog | ( | int | i | ) | [inline] |
Definition at line 115 of file IFD_IPRTree.h.
| int IFD_IPRTree::getFogCount | ( | ) | const [inline] |
Definition at line 110 of file IFD_IPRTree.h.
| int* IFD_IPRTree::getFogMap | ( | ) | [inline] |
Definition at line 130 of file IFD_IPRTree.h.
| int IFD_IPRTree::getFogMapSize | ( | ) | [inline] |
Definition at line 135 of file IFD_IPRTree.h.
| IFD_IPRObject* IFD_IPRTree::getInstance | ( | int | i | ) | [inline] |
Definition at line 117 of file IFD_IPRTree.h.
| int IFD_IPRTree::getInstanceCount | ( | ) | const [inline] |
Definition at line 112 of file IFD_IPRTree.h.
| int* IFD_IPRTree::getInstanceMap | ( | ) | [inline] |
Definition at line 132 of file IFD_IPRTree.h.
| int IFD_IPRTree::getInstanceMapSize | ( | ) | [inline] |
Definition at line 137 of file IFD_IPRTree.h.
| const char* IFD_IPRTree::getIPRName | ( | ) | [inline] |
Definition at line 52 of file IFD_IPRTree.h.
| IFD_IPRObject* IFD_IPRTree::getLight | ( | int | i | ) | [inline] |
Definition at line 114 of file IFD_IPRTree.h.
| int IFD_IPRTree::getLightCount | ( | ) | const [inline] |
Definition at line 109 of file IFD_IPRTree.h.
| int* IFD_IPRTree::getLightMap | ( | ) | [inline] |
Definition at line 129 of file IFD_IPRTree.h.
| int IFD_IPRTree::getLightMapSize | ( | ) | [inline] |
Definition at line 134 of file IFD_IPRTree.h.
| IFD_IPRData* IFD_IPRTree::getRenderData | ( | ) | [inline] |
Definition at line 49 of file IFD_IPRTree.h.
| const char* IFD_IPRTree::getRenderer | ( | ) | const [inline] |
Definition at line 46 of file IFD_IPRTree.h.
| bool IFD_IPRTree::hasStream | ( | ) | const [inline] |
Definition at line 56 of file IFD_IPRTree.h.
| bool IFD_IPRTree::instanceDirty | ( | int | obj, | |
| const char * | attribute | |||
| ) |
| bool IFD_IPRTree::isDirty | ( | void | ) | const [inline] |
Definition at line 66 of file IFD_IPRTree.h.
| bool IFD_IPRTree::lightDirty | ( | int | obj, | |
| const char * | attribute | |||
| ) |
| bool IFD_IPRTree::load | ( | UT_IStream & | is, | |
| IFD_IPRObjectFactory & | factory, | |||
| float | now | |||
| ) |
| int IFD_IPRTree::save | ( | ostream & | os | ) |
| void IFD_IPRTree::setDestroyCache | ( | bool | onoff | ) |
| void IFD_IPRTree::setDirty | ( | bool | onoff | ) |
| void IFD_IPRTree::setIPRName | ( | const char * | name | ) |
| void IFD_IPRTree::setRenderData | ( | IFD_IPRData * | rdata | ) |
| void IFD_IPRTree::setRenderer | ( | const char * | r | ) | [inline] |
Definition at line 45 of file IFD_IPRTree.h.
| void IFD_IPRTree::setStream | ( | IFD_RenderStream * | stream | ) |
| bool IFD_IPRTree::startRender | ( | float | now | ) |
1.5.9