Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

vlKernel Class Reference

This class represents the core kernel of OpenVL. More...

#include <vlkernel.h>

List of all members.

Public Member Functions

virtual ~vlKernel ()
 Default destructor.


Static Public Member Functions

void initialize ()
 Initialized OpenVL plugins.

vlKernelinstance ()
 Returns the unique instance.

vlPluginManagerpluginManager ()
 Returns the plugin manager being used.

vlTradertrader ()
 Returns the trader being used.

std::string getFileExtensionsKDEStyle ()
 Returns all supported file extensions as needed by KDE's file dialogue.

vlVersion apiVersion ()
 Returns the API version of the library/program.

vlVersion version ()
 Returns the version of the library/program.


Protected Member Functions

 vlKernel ()
 Default constructor.


Static Private Attributes

vlKernel m_self
 The single instance of the kernel.

vlPluginManager m_pluginManager
 The plugin manager for OpenVL.

vlTrader m_trader
 The trader used for OpenVL.

vlVersion m_apiVersion
 The API version of the library/program.

vlVersion m_version
 The version of the library/program.


Detailed Description

The kernel will be responsible for loading and unloading of modules, storing information about the status of OpenVL, storing other important information like version number etc.

Currently the kernel will simply load all modules when started.

Author:
Sarang Lakare

Definition at line 46 of file vlkernel.h.


Constructor & Destructor Documentation

vlKernel::~vlKernel  )  [virtual]
 

Definition at line 108 of file vlkernel.cpp.

vlKernel::vlKernel  )  [protected]
 

Definition at line 52 of file vlkernel.cpp.

References vlPluginManager::addPluginDir(), vlVersion::getMajor(), vlVersion::getMinor(), vlPluginManager::loadBuiltInPlugins(), m_pluginManager, and version().


Member Function Documentation

vlVersion vlKernel::apiVersion  )  [static]
 

Definition at line 178 of file vlkernel.cpp.

References m_apiVersion.

Referenced by vlPluginManager::loadPlugins(), and queryPlugin().

std::string vlKernel::getFileExtensionsKDEStyle  )  [static]
 

Todo:
Add file extensions to the pluginInfo.. so that this can be achieved w/o loaded all plugins!

Definition at line 120 of file vlkernel.cpp.

References vlVolFioFilter::getFileExtensions(), vlTrader::getPluginsForGroup(), instance(), and trader().

void vlKernel::initialize  )  [static]
 

This function call is not a necessity. If this function is not called, then the plugins are initialized the first time a plugin is used. For e.g., you try to load a file.. it would internally need plugins and so the initialization will take place then. Call this function if you want to load plugins at a specific time in your application. Say, at the beginning.

Definition at line 114 of file vlkernel.cpp.

References vlPluginManager::loadPlugins(), and m_pluginManager.

Referenced by main().

vlKernel * vlKernel::instance  )  [static]
 

Definition at line 160 of file vlkernel.cpp.

References m_self.

Referenced by getFileExtensionsKDEStyle(), vlVolume::read(), vlVolume::readImages(), vlVolume::readInfo(), and vlVolume::readSubvolumes().

vlPluginManager * vlKernel::pluginManager  )  [static]
 

Definition at line 166 of file vlkernel.cpp.

References m_pluginManager.

vlTrader * vlKernel::trader  )  [static]
 

Definition at line 172 of file vlkernel.cpp.

References m_trader.

Referenced by vlVolume::createData(), CreateVolume(), getFileExtensionsKDEStyle(), vlVolume::read(), vlVolume::readImages(), vlVolume::readInfo(), vlVolume::readSubvolumes(), vlVolume::resizeData(), vlVolInterpolators< DataType, vlLayout::Linear >::getNativeInterpolator(), vlVolInterpolators< DataType, vlLayout::Linear >::getVirtualInterpolator(), vlVolVoxelOps< DataType, vlLayout::Linear >::getNativeVoxelOp(), vlVolVoxelOps< DataType, vlLayout::Linear >::getVirtualVoxelOp(), and vlVolume::write().

vlVersion vlKernel::version  )  [static]
 

Definition at line 184 of file vlkernel.cpp.

References m_version.

Referenced by vlKernel().


Member Data Documentation

vlVersion vlKernel::m_apiVersion [static, private]
 

Referenced by apiVersion().

vlPluginManager vlKernel::m_pluginManager [static, private]
 

Definition at line 43 of file vlkernel.cpp.

Referenced by initialize(), pluginManager(), and vlKernel().

vlKernel vlKernel::m_self [static, private]
 

Definition at line 45 of file vlkernel.cpp.

Referenced by instance().

vlTrader vlKernel::m_trader [static, private]
 

Referenced by trader().

vlVersion vlKernel::m_version [static, private]
 

Referenced by version().


The documentation for this class was generated from the following files:
Generated on Fri Mar 18 11:33:18 2005 for OpenVL by doxygen 1.3.3