Utility functions for loading algorithm modules More...
#include <Inventor/algorithms/SoAlgorithms.h>
Public Member Functions | |
SoAlgorithms () | |
Algorithms interface constructor. | |
virtual | ~SoAlgorithms () |
Algorithms interface destructor. | |
virtual SoBufferObject * | createBufferObject () |
Returns an instance of a SoBufferObject according to the hardware used by the loaded module. | |
virtual SoDeviceContext * | createContext () |
Returns a DeviceContext that can be used with the algorithms module and SoBufferObject returned by the createBufferObject function. | |
virtual SoDataExtract * | createDataExtractInterface () |
Returns an instance of the SoDataExtract interface defined in the loaded module. | |
virtual SoSeismic * | createSeismicInterface () |
Returns an instance of the SoSeismic interface defined in the loaded module. | |
virtual SoConversion * | createConversionInterface () |
Returns an instance of the SoConversion interface defined in the loaded module. | |
virtual SoConvolution * | createConvolutionInterface () |
Returns an instance of the SoConvolution interface defined in the loaded module. | |
virtual SoArithmetic * | createArithmeticInterface () |
Returns an instance of the SoArithmetic interface defined in the loaded module. | |
Static Public Member Functions | |
static void | init () |
Static init function to initialize the algorithms module. | |
static bool | isInitialized () |
Returns TRUE if module is currently initialized. | |
static void | finish () |
Static finish function to free the memory allocated by the algorithms module. | |
static SoAlgorithms * | loadAlgorithmsModule (const SbString &moduleFileName) |
Loads a module and returns an instance of the implementation of SoAlgorithms in this module. | |
static SbBool | unloadAlgorithmsModule (const SbString &moduleFileName) |
Unloads a module. | |
Utility functions for loading algorithm modules
This class provides convenience methods for loading an algorithm module, extracting specific algorithm interfaces and creating appropriate context and buffer objects for the device that implements the algorithms.
Examples:
Definition at line 78 of file SoAlgorithms.h.
SoAlgorithms::SoAlgorithms | ( | ) |
Algorithms interface constructor.
|
virtual |
Algorithms interface destructor.
|
virtual |
Returns an instance of the SoArithmetic interface defined in the loaded module.
If there is no loaded module it returns the default CPU version.
|
virtual |
Returns an instance of a SoBufferObject according to the hardware used by the loaded module.
If there is no loaded module this function returns an SoCpuBufferObject.
|
virtual |
Returns a DeviceContext that can be used with the algorithms module and SoBufferObject returned by the createBufferObject function.
|
virtual |
Returns an instance of the SoConversion interface defined in the loaded module.
If there is no loaded module it returns the default CPU version.
|
virtual |
Returns an instance of the SoConvolution interface defined in the loaded module.
If there is no loaded module it returns the default CPU version.
|
virtual |
Returns an instance of the SoDataExtract interface defined in the loaded module.
If there is no loaded module it returns the default CPU version.
|
virtual |
|
static |
Static finish function to free the memory allocated by the algorithms module.
|
static |
Static init function to initialize the algorithms module.
|
static |
Returns TRUE if module is currently initialized.
|
static |
Loads a module and returns an instance of the implementation of SoAlgorithms in this module.
If the module is already loaded this function just increments the reference count and returns a new instance of the algorithms interface.
moduleFileName | The module filename. See the description of this class for more information. |
Unloads a module.
The module is unloaded only if it is not used anymore, it uses a references counter in order to figure out if the module can be unloaded or not.
moduleFileName | The module filename to unload. |