#include <SceneBuilderFactories.h>
Inherits ObjectFactory.
Inheritance diagram for CopyObjectFactory:
Public Member Functions | |
CopyObjectFactory (std::map< std::string, Object * > &objects) | |
virtual Object * | create (const std::string &type, std::stringstream &line) |
Protected Attributes | |
std::map< std::string, Object * > & | mObjects |
Mapping name -> Object. |
Definition at line 591 of file SceneBuilderFactories.h.
CopyObjectFactory::CopyObjectFactory | ( | std::map< std::string, Object * > & | objects | ) | [inline] |
Constructor
Definition at line 596 of file SceneBuilderFactories.h.
Object * CopyObjectFactory::create | ( | const std::string & | type, | |
std::stringstream & | line | |||
) | [virtual] |
Create a copy of another object
type | Statement type | |
line | Line with data |
Implements ObjectFactory.
Definition at line 636 of file SceneBuilderFactories.cpp.
References Object::createCopy(), mObjects, and Object::setCastShadows().
std::map<std::string, Object *>& CopyObjectFactory::mObjects [protected] |
Mapping name -> Object.
Definition at line 612 of file SceneBuilderFactories.h.
Referenced by create().