A3DL::Model Class Reference
[libmetaobject_a3dl]
#include <vos/metabojects/a3dl/model.hh>
Inheritance diagram for A3DL::Model:

Detailed Description
This object's geometry is defined by model data in a format such as 3DS, VRML, POV, etc.contained in a subproperty named "model".
- Note:
- : if you use Object3D::initialize() on a Model object, make sure that you also call setModel() or setModelToFile() to complete the object.
Definition at line 45 of file model.hh.
Public Member Functions
- Model (VOS::VobjectBase *superobject)
- virtual ~Model ()
- virtual void setModel (const std::string &m, const std::string &datatype="?")
- virtual void setModelToFile (const std::string &filename, const std::string &datatype="?")
- virtual const std::string getVOSType ()
- virtual VUtil::vRef< VOS::Property > getModelObj ()
- virtual void setModelObj (VOS::Property *obj)
Static Public Member Functions
- static void registerExtenders ()
- static VOS::MetaObject * new_Model (VOS::VobjectBase *superobject, const std::string &type)
Constructor & Destructor Documentation
| A3DL::Model::Model | ( | VOS::VobjectBase * | superobject | ) |
| virtual A3DL::Model::~Model | ( | ) | [virtual] |
Member Function Documentation
| virtual VUtil::vRef<VOS::Property> A3DL::Model::getModelObj | ( | ) | [virtual] |
| virtual const std::string A3DL::Model::getVOSType | ( | ) | [virtual] |
- Returns:
- the specific VOS type name that represents the VOS interface this object is supplying. This should always be overridden by the subclass.
Reimplemented from A3DL::Object3D.
| static VOS::MetaObject* A3DL::Model::new_Model | ( | VOS::VobjectBase * | superobject, | |
| const std::string & | type | |||
| ) | [static] |
| static void A3DL::Model::registerExtenders | ( | ) | [static] |
| virtual void A3DL::Model::setModel | ( | const std::string & | m, | |
| const std::string & | datatype = "?" | |||
| ) | [virtual] |
Set the value of "model" property to m.
- Parameters:
-
m Model data datatype Data type identifier (MIME type or typechain). Default is "?".
| virtual void A3DL::Model::setModelObj | ( | VOS::Property * | obj | ) | [virtual] |
| virtual void A3DL::Model::setModelToFile | ( | const std::string & | filename, | |
| const std::string & | datatype = "?" | |||
| ) | [virtual] |
Make the "model" property use a file as storage, rather than memory.
- Parameters:
-
filename Name of the file on disk. datatype Data type identifier. (MIME type or typechain). Default is "?".
- See also:
- FileProperty
- Exceptions:
-
FileAccessError if the file cannot be opened.
The documentation for this class was generated from the following file:
- /home/tetron/hack/vos/libs/vos/metaobjects/a3dl/model.hh