Abstract utility class – can be used to implement loadable utility plugins that perform various actions. They can be started using the 'mtsutil' launcher. More...
#include <mitsuba/render/util.h>
Public Member Functions | |
virtual int | run (int argc, char **argv)=0 |
virtual const Class * | getClass () const |
Retrieve this object's class. More... | |
Public Member Functions inherited from Object | |
Object () | |
Construct a new object. More... | |
int | getRefCount () const |
Return the current reference count. More... | |
void | incRef () const |
Increase the reference count of the object by one. More... | |
void | decRef (bool autoDeallocate=true) const |
Decrease the reference count of the object and possibly deallocate it. More... | |
virtual std::string | toString () const |
Return a human-readable string representation of the object's contents. More... | |
Static Public Attributes | |
static Class * | m_theClass |
Static Public Attributes inherited from Object | |
static Class * | m_theClass |
Pointer to the object's class descriptor. More... | |
Protected Types | |
typedef std::map< std::string, std::string, SimpleStringOrdering > | ParameterMap |
Protected Member Functions | |
virtual | ~Utility () |
Virtual destructor. More... | |
ref< Scene > | loadScene (const fs::path &fname, const ParameterMap ¶ms=ParameterMap()) |
Load a scene from an external file. More... | |
ref< Scene > | loadSceneFromString (const std::string &content, const ParameterMap ¶ms=ParameterMap()) |
Load a scene from a string. More... | |
Protected Member Functions inherited from Object | |
virtual | ~Object () |
Virtual private deconstructor. (Will only be called by ref) More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Object | |
static void | staticInitialization () |
Initializes the built-in reference count debugger (if enabled) More... | |
static void | staticShutdown () |
Free the memory taken by staticInitialization() More... | |
Abstract utility class – can be used to implement loadable utility plugins that perform various actions. They can be started using the 'mtsutil' launcher.
|
protected |
|
inlineprotectedvirtual |
Virtual destructor.
|
virtual |
|
protected |
Load a scene from an external file.
|
protected |
Load a scene from a string.
|
pure virtual |
Run the utility. The supplied argc
and argv
parameters contain any extra arguments passed to mtsutil. The value returned here will be used as the return value of the 'mtsutil' process.
Implemented in mitsuba::Viewer.
|
static |