ProjectedTextures
Prototype software for spacial augmented reality applications.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ResourceManager Class Reference

#include <ResourceManager.h>

Public Member Functions

 ResourceManager (void)
 
 ~ResourceManager (void)
 
void readConfig (QString fileName)
 
void readObjectsConfig (QString fileName=QString())
 
void saveObjects (QString fileName=QString())
 
QList< Projector * > * projectors ()
 
QList< Camera * > * cameras ()
 
QList< FiducialTracker * > * trackers ()
 
QList< Geometry * > * geometries ()
 

Protected Member Functions

Similarity readTransform (QDomElement transformElem, bool rigid=false)
 
void clearGeometries ()
 

Protected Attributes

QString objectConfigurationFile
 
QList< Projector * > _projectors
 
QList< Camera * > _cameras
 
QList< FiducialTracker * > _trackers
 
QList< Geometry * > _geometries
 

Detailed Description

Responsible for loading and holding model data and various configurations

Constructor & Destructor Documentation

ResourceManager::ResourceManager ( void  )
ResourceManager::~ResourceManager ( void  )

Member Function Documentation

QList<Camera*>* ResourceManager::cameras ( )
inline

returns specified cameras

void ResourceManager::clearGeometries ( )
protected

deletes all geometries from memory. hasn't really worked ever.

QList<Geometry*>* ResourceManager::geometries ( )
inline

returns loaded geometry

QList<Projector*>* ResourceManager::projectors ( )
inline

returns specified projectors

void ResourceManager::readConfig ( QString  fileName)

reads the system configuration file (the one with "<config>" as document element) and creates corresponding objects.
includes:
- path to object configuration
- cameras (see Camera)
- projectors (see Projector)
- tracking configuration (see FiducialTracker)

void ResourceManager::readObjectsConfig ( QString  fileName = QString())

reads the objects configuration file (the one with "<objects>" as document element) and creates the corresponding Geometry objects

Similarity ResourceManager::readTransform ( QDomElement  transformElem,
bool  rigid = false 
)
protected

can read transformations specified in various ways

void ResourceManager::saveObjects ( QString  fileName = QString())

saves a modified object configuration to the specified file

QList<FiducialTracker*>* ResourceManager::trackers ( )
inline

returns specified trackers

Member Data Documentation

QList<Camera*> ResourceManager::_cameras
protected

collection of specified cameras

QList<Geometry*> ResourceManager::_geometries
protected

collection of loaded geometry

QList<Projector*> ResourceManager::_projectors
protected

collection of specified projectors

QList<FiducialTracker*> ResourceManager::_trackers
protected

collection of specified trackers

QString ResourceManager::objectConfigurationFile
protected

where to load or save the object configuration


The documentation for this class was generated from the following files: