|
FragmentGraphAPI | FragmentGraph () |
| Constructor. More...
|
|
virtual FragmentGraphAPI | ~FragmentGraph () |
| Destructor. More...
|
|
FragmentGraphAPI size_t | GetNodeCount () const |
| Gets the number of nodes. More...
|
|
FragmentGraphAPI void | AddNode (const FragmentPtr &pFragmentNode, const MSTR &nodeName) |
| Adds a fragment node to the current graph. More...
|
|
FragmentGraphAPI FragmentPtr | GetNode (size_t index) const |
| Gets a fragment node given its index. More...
|
|
FragmentGraphAPI FragmentPtr | GetNode (const MSTR &nodeName) const |
| Gets a fragment node by name. More...
|
|
FragmentGraphAPI const MSTR & | GetNodeName (size_t index) const |
| Gets the name of the node given its index. More...
|
|
FragmentGraphAPI void | RemoveNode (const MSTR &nodeName) |
| Removes a fragment node given its name. More...
|
|
FragmentGraphAPI void | RemoveNode (const FragmentPtr &pFragmentNode) |
| Removes a fragment node from this graph. More...
|
|
FragmentGraphAPI bool | WireInput (size_t graphInputIndex, const MSTR &nodeName, size_t nodeInputIndex) |
| Wires a connection between a specified input of the graph and a specified input of a fragment node. More...
|
|
FragmentGraphAPI bool | WireOutput (size_t graphOutputIndex, const MSTR &nodeName, size_t nodeOutputIndex) |
| Wires a connection between a specified output of the graph and a specified output of a fragment node. More...
|
|
FragmentGraphAPI bool | WireNode (const MSTR &sourceNodeName, size_t sourceNodeOutputIndex, const MSTR &targetNodeName, size_t targetNodeInputIndex) |
| Wires a connection between a specified output of a source node and a specified input of a target node. More...
|
|
FragmentGraphAPI bool | LoadXML (const MSTR &filePathName) |
| Loads input, output and connection information for a fragment graph from an XML file. More...
|
|
FragmentGraphAPI bool | SaveXML (const MSTR &filePathName) |
| Saves the inputs, outputs and connection information of one fragment graph into one XML file. More...
|
|
virtual FragmentGraphAPI Class_ID | GetClassID () const |
| Gets the class ID of the fragment graph. More...
|
|
virtual FragmentGraphAPI Input * | CreateInput (const Class_ID &typeID) |
| Create an input instance of this fragment. More...
|
|
virtual FragmentGraphAPI Output * | CreateOutput (const Class_ID &typeID) |
| Create an output instance of this fragment. More...
|
|
FragmentGraphAPI int | CheckValidity () |
| Check if this fragment graph is valid or not. More...
|
|
FragmentGraphAPI bool | InitializeInputs (const Class_ID &type1) |
| Initializes the inputs for the fragment. More...
|
|
FragmentGraphAPI bool | InitializeInputs (const Class_ID &type1, const Class_ID &type2) |
| Initializes the inputs for the fragment. More...
|
|
FragmentGraphAPI bool | InitializeInputs (const Class_ID &type1, const Class_ID &type2, const Class_ID &type3) |
| Initializes the inputs for the fragment. More...
|
|
FragmentGraphAPI bool | InitializeInputs (const Class_ID &type1, const Class_ID &type2, const Class_ID &type3, const Class_ID &type4) |
| Initializes the inputs for the fragment. More...
|
|
FragmentGraphAPI bool | InitializeInputs (size_t numberOfInputs, const Class_ID *pInputTypes) |
| Initializes the inputs for the fragment. More...
|
|
FragmentGraphAPI bool | InitializeOutputs (const Class_ID &type1) |
| Initializes the outputs for the fragment. More...
|
|
FragmentGraphAPI bool | InitializeOutputs (const Class_ID &type1, const Class_ID &type2) |
| Initializes the outputs for the fragment. More...
|
|
FragmentGraphAPI bool | InitializeOutputs (const Class_ID &type1, const Class_ID &type2, const Class_ID &type3) |
| Initializes the outputs for the fragment. More...
|
|
FragmentGraphAPI bool | InitializeOutputs (const Class_ID &type1, const Class_ID &type2, const Class_ID &type3, const Class_ID &type4) |
| Initializes the outputs for the fragment. More...
|
|
FragmentGraphAPI bool | InitializeOutputs (size_t numberOfOutputs, const Class_ID *pOutputTypes) |
| Initializes the outputs for the fragment. More...
|
|
FragmentGraphAPI | Fragment () |
| Constructor. More...
|
|
virtual FragmentGraphAPI | ~Fragment () |
| Destructor. More...
|
|
FragmentGraphAPI bool | Evaluate (void *evaluationContext) |
| Evaluates this fragment. More...
|
|
FragmentGraphAPI bool | ReEvaluate (void *evaluationContext) |
| Re-evaluates this fragment. More...
|
|
FragmentGraphAPI size_t | GetNumberOfInputs () const |
| Gets the number of inputs for this fragment. More...
|
|
FragmentGraphAPI Input & | GetInput (size_t inputIndex) |
| Gets the n-th input for this fragment. More...
|
|
FragmentGraphAPI const Input & | GetInput (size_t inputIndex) const |
| Gets the n-th input for this fragment. More...
|
|
FragmentGraphAPI const Variable * | GetInputVariable (size_t inputIndex) const |
| Gets the n-th input variable for this fragment. More...
|
|
FragmentGraphAPI Output * | GetInputSource (size_t inputIndex) const |
| Gets the output of another fragment that is connected to n-th input for this fragment. More...
|
|
FragmentGraphAPI bool | SetInputSource (size_t inputIndex, Output *pOutput) |
| Connects the input to an output. More...
|
|
FragmentGraphAPI size_t | GetNumberOfOutputs () const |
| Gets the number of outputs for this fragment. More...
|
|
FragmentGraphAPI Output & | GetOutput (size_t outputIndex) |
| Gets the n-th output for this fragment. More...
|
|
FragmentGraphAPI const Output & | GetOutput (size_t outputIndex) const |
| Gets the n-th output for this fragment. More...
|
|
FragmentGraphAPI bool | SetOutputVariable (size_t outputIndex, const Variable &var) |
| Updates the value of the n-th output. More...
|
|
FragmentGraphAPI bool | GetFlag (FragmentFlags flag) const |
| Gets a flag for this fragment. More...
|
|
FragmentGraphAPI void | SetFlag (FragmentFlags flag, bool onOff) |
| Sets a flag for this fragment. More...
|
|
FragmentGraphAPI void | SetParent (Fragment *pParent) |
| Assigns the parent fragment. More...
|
|
FragmentGraphAPI Fragment * | GetParent () const |
| Gets the parent fragment. More...
|
|
FragmentGraphAPI IVariableDictionary * | GetParameterTable () |
| Gets the container of all built-in parameters. More...
|
|
FragmentGraphAPI const IVariableDictionary * | GetParameterTable () const |
| Gets the container of all built-in parameters. More...
|
|
virtual FragmentGraphAPI bool | OnMessage (const FragmentMessageParameter ¶m) |
| The fragment message handling callback function that is called if any of its registered messages (including the timer message) is invoked. More...
|
|
FragmentGraphAPI void | SetTimerTicks (size_t timerTicks) |
| Registers or deregisters the timer message and set the timer ticks value in milliseconds. More...
|
|
FragmentGraphAPI size_t | GetTimerTicks () const |
| Gets the timer ticks value in milliseconds. More...
|
|
FragmentGraphAPI void | RegisterMessage (size_t messageID) |
| Register a message with this fragment. More...
|
|
FragmentGraphAPI bool | UnRegisterMessage (size_t messageID) |
| Deregister a message with this fragment. More...
|
|
FragmentGraphAPI const Tab< size_t > & | GetRegisteredMessageIDs () const |
| Gets all the messages that have been registered. More...
|
|
GraphicsUtilityAPI | ARefObject () |
|
virtual GraphicsUtilityAPI long | AddRef () |
| from IRefObject, see comments in IRefObject More...
|
|
virtual GraphicsUtilityAPI long | Release () |
| decrease reference count of this object by one, if the decreased reference count equals zero, the object will be deleted. More...
|
|
GraphicsUtilityAPI IRefObject * | QueryInterface (Interface_ID classID) |
| Try query an interface from the ref object using a given interface id. More...
|
|
GraphicsUtilityAPI | IRefObject () |
|
virtual GraphicsUtilityAPI | ~IRefObject () |
|
|
virtual FragmentGraphAPI bool | DoEvaluate (void *evaluationContext) |
| Does evaluation. More...
|
|
virtual FragmentGraphAPI void | HandleFlagChanged (FragmentFlags flag, bool oldValue) |
| This function is invoked when any fragment flag gets changed. More...
|
|
FragmentGraphAPI bool | InitializeInputs (const Class_ID &type1) |
| Initializes the inputs for the fragment. More...
|
|
FragmentGraphAPI bool | InitializeInputs (const Class_ID &type1, const Class_ID &type2) |
| Initializes the inputs for the fragment. More...
|
|
FragmentGraphAPI bool | InitializeInputs (const Class_ID &type1, const Class_ID &type2, const Class_ID &type3) |
| Initializes the inputs for the fragment. More...
|
|
FragmentGraphAPI bool | InitializeInputs (const Class_ID &type1, const Class_ID &type2, const Class_ID &type3, const Class_ID &type4) |
| Initializes the inputs for the fragment. More...
|
|
FragmentGraphAPI bool | InitializeInputs (size_t numberOfInputs, const Class_ID *pInputTypes) |
| Initializes the inputs for the fragment. More...
|
|
FragmentGraphAPI bool | InitializeOutputs (const Class_ID &type1) |
| Initializes the outputs for the fragment. More...
|
|
FragmentGraphAPI bool | InitializeOutputs (const Class_ID &type1, const Class_ID &type2) |
| Initializes the outputs for the fragment. More...
|
|
FragmentGraphAPI bool | InitializeOutputs (const Class_ID &type1, const Class_ID &type2, const Class_ID &type3) |
| Initializes the outputs for the fragment. More...
|
|
FragmentGraphAPI bool | InitializeOutputs (const Class_ID &type1, const Class_ID &type2, const Class_ID &type3, const Class_ID &type4) |
| Initializes the outputs for the fragment. More...
|
|
FragmentGraphAPI bool | InitializeOutputs (size_t numberOfOutputs, const Class_ID *pOutputTypes) |
| Initializes the outputs for the fragment. More...
|
|
virtual FragmentGraphAPI void | HandleSubFragmentFlagChanged (Fragment *pSubFragment, FragmentFlags flag, bool oldValue) |
| This function will be invoked when any fragment flag of a sub fragment gets changed. More...
|
|
virtual GraphicsUtilityAPI void | DeleteThis () |
| This function will be called when the reference count of an ARefObject equals zero. More...
|
|
virtual GraphicsUtilityAPI | ~ARefObject () |
|
|
static UtilExport void * | operator new (size_t size) |
| Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator new (size_t size, const std::nothrow_t &e) |
| Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned. More...
|
|
static UtilExport void * | operator new (size_t size, const char *filename, int line) |
| New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator new (size_t size, int block_type, const char *filename, int line) |
| New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator new (size_t size, const std::nothrow_t &e, const char *filename, int line) |
| New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned. More...
|
|
static UtilExport void * | operator new (size_t size, unsigned long flags) |
| New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator new (size_t size, const std::nothrow_t &e, unsigned long flags) |
| New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned. More...
|
|
static UtilExport void * | operator new[] (size_t size) |
| New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator new[] (size_t size, const std::nothrow_t &e) |
| New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
|
|
static UtilExport void * | operator new[] (size_t size, const char *filename, int line) |
| New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator new[] (size_t size, int block_type, const char *filename, int line) |
| New operator used to allocate arrays of objects. More...
|
|
static UtilExport void * | operator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line) |
| New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
|
|
static UtilExport void * | operator new[] (size_t size, unsigned long flags) |
| New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator new[] (size_t size, const std::nothrow_t &e, unsigned long flags) |
| New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
|
|
static UtilExport void | operator delete (void *ptr) |
| Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete (void *ptr, const std::nothrow_t &e) |
| Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen. More...
|
|
static UtilExport void | operator delete (void *ptr, const char *filename, int line) |
| Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete (void *ptr, int block_type, const char *filename, int line) |
| Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line) |
| Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
|
|
static UtilExport void | operator delete (void *ptr, unsigned long flags) |
| Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags) |
| Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen. More...
|
|
static UtilExport void | operator delete[] (void *ptr) |
| Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete[] (void *ptr, const std::nothrow_t &e) |
| Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen. More...
|
|
static UtilExport void | operator delete[] (void *ptr, const char *filename, int line) |
| Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete[] (void *ptr, int block_type, const char *filename, int line) |
| Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line) |
| Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
|
|
static UtilExport void | operator delete[] (void *ptr, unsigned long flags) |
| Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags) |
| Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void * | operator new (size_t size, void *placement_ptr) |
| Placement new operator. More...
|
|
static UtilExport void | operator delete (void *ptr, void *placement_ptr) |
| Placement delete operator. More...
|
|
static UtilExport void * | aligned_malloc (size_t size, size_t alignment) |
| Allocates memory on a specified alignment boundary. More...
|
|
static UtilExport void * | aligned_realloc (void *ptr, size_t size, size_t alignment) |
| Reallocates memory on a specified alignment boundary. More...
|
|
static UtilExport void | aligned_free (void *ptr) |
| Frees a block of memory that was allocated with aligned_malloc/aligned_realloc. More...
|
|
FragmentGraph is a graph consisting of fragment nodes.
A FragmentGraph that has inputs and outputs can also be treated as a fragment node. Various kinds of fragment nodes can be combined together to yield arbitrary multi-passes render pipeline. The class provides several utility functions to create and connect fragment nodes.