#include <Model.H>
Inheritance diagram for xchen::Model:

Public Methods | |
| Model () | |
Static Public Methods | |
| vector< Model * > | ConstructModelsFromFile (char const *) |
| Read perhaps more than one models from file. | |
Protected Methods | |
| template<typename T> void | Register (string const &id, T const &v) |
| register attribute id with init val v. | |
| template<typename T> void | SetAttribute (string const &id, T const &v) |
| Assume the same value type as registered earlier. | |
| void | SetAttributes (string const &str) |
| Set attributes from a string of format: (name value)*. | |
| void const * | GetAttribute (string const &id) |
| User keeps track of the real type. | |
| void | register_attributes () |
| virtual void | GenerateUI () |
| Generate user interface from Model's attributes. | |
| void | SetUI (UI *u) |
| virtual void | DrawBrief () const |
| display routine when mouse-transforming the Model. | |
| virtual void | Draw () const=0 |
Protected Attributes | |
| Attributes | attrs |
| UI * | ui |
Friends | |
| class | glModel |
|
|
|
|
|
Read perhaps more than one models from file.
|
|
|
Implemented in xchen::TensorManifold< dims, sp_dims >, xchen::Cone, xchen::Cube, xchen::Sphere, xchen::Teapot, xchen::Torus, xchen::PolyLine< dim >, and xchen::PolyLines< dim >. |
|
|
display routine when mouse-transforming the Model.
Reimplemented in xchen::TensorManifold< dims, sp_dims >. |
|
|
Generate user interface from Model's attributes.
Reimplemented in xchen::TensorManifold< dims, sp_dims >. |
|
|
User keeps track of the real type.
|
|
||||||||||||||||
|
register attribute id with init val v.
|
|
|
|
|
||||||||||||||||
|
Assume the same value type as registered earlier.
|
|
|
Set attributes from a string of format: (name value)*.
|
|
|
|
|
|
Reimplemented in xchen::TensorBlossom< dims, sp_dims >, xchen::TensorManifold< dims, sp_dims >, and xchen::TensorBlossom< 1, sp_dims >. |
|
|
|
|
|
|
1.2.18