UserTransformationModelFactory Class Reference
The Factory for creating UserTransformationModels. More...
#include <UserTransformationModel.h>
Inherited by HeadPositionUserTransformationModelFactory.
Detailed Description
The Factory for creating UserTransformationModels.This class is used to create a UserTransformationModel. Every time you implement a new UserTransformationModel you also have to implement a new UserTransformationModelFactory for your model. This new factory can then be registered in the User-class is then used to generate the UserTransformationModel. The UserTransformationModelFactory has the abstract create-method which is inherited from the ClassFactory-class. In this method you have to check if the passed string is equal to the name of your UserTransformationModel. If so you have to return a new instance of your UserTransformationModel, if not you have to return NULL. This is important since the User-class iterates over every registered UserTransformationModelFactory and calls their create-method with the name of the desired UserTransformationModel. If one factory returns a value other than NULL it assumes that this is the new UserTransformationModel.
The documentation for this class was generated from the following file:
- src/inVRs/SystemCore/UserDatabase/UserTransformationModel.h
Generated on Wed Oct 20 16:12:02 2010 for inVRs by
1.5.8