Public Member Functions |
| virtual bool | Init (XRes *resource, XCongo *xcongo)=0 |
| | Read Quad from resource file.
|
| virtual bool | Display ()=0 |
| | Draw itself in global cotext. Since quads are intented to be used with opengl, drawing context is global.
|
| virtual bool | Move (const double new_pos[3])=0 |
| | Move quad posotion to new_pos.
|
| virtual bool | Forse (const double forse[3])=0 |
| | Chage Quad's direction of moving with forse.
|
| virtual void | RegisterListener (QuadListener *listener)=0 |
| | Assign listener to this quad.
|
| virtual bool | SetActive (bool activity)=0 |
| | Set query Quad activity state.
|
| virtual bool | IsActive () const =0 |
| virtual const char * | ClassName () const =0 |
| | Used for RTTI.
|
| virtual double | Mass () const =0 |
| | Weight of object.
|
| virtual const double * | Direction () const =0 |
| | Direction of moving.
|
| virtual const double * | Color () const =0 |
| | Color of object.
|
| virtual | ~Quad () |
| virtual bool | Init (XRes *resource, XCongo *xcongo)=0 |
| | Read Quad from resource file.
|
| virtual bool | Display ()=0 |
| | Draw itself in global cotext. Since quads are intented to be used with opengl, drawing context is global.
|
| virtual bool | Move (const double new_pos[3])=0 |
| | Move quad posotion to new_pos.
|
| virtual bool | Forse (const double forse[3])=0 |
| | Chage Quad's direction of moving with forse.
|
| virtual void | RegisterListener (QuadListener *listener)=0 |
| | Assign listener to this quad.
|
| virtual bool | SetActive (bool activity)=0 |
| | Set query Quad activity state.
|
| virtual bool | IsActive () const =0 |
| virtual const char * | ClassName () const =0 |
| | Used for RTTI.
|
| virtual double | Mass () const =0 |
| | Weight of object.
|
| virtual const double * | Direction () const =0 |
| | Direction of moving.
|
| virtual const double * | Color () const =0 |
| | Color of object.
|
| virtual | ~Quad () |
Static Public Attributes |
| static const double | MASS_INFINITE = -1 |
| | TODO: Comment MASS_INFINITE.
|
Quad is abstraction of 3D graphical object.
It is an interface enforcing several pattern behaviors: Init() from resource, EventListener, RTTI and ofcourse Display.
- See also:
- Arrow, Ball, Bongo, Box, Hitti.
Definition at line 30 of file Quad.h.
Draw itself in global cotext. Since quads are intented to be used with opengl, drawing context is global.
- Returns:
- true if ok, false on error.
Implemented in Quad_impl, Quad_impl, Hitti, Hitti, Arrow, Arrow, Box, Box, Ball, Ball, Bongo, and Bongo.
Draw itself in global cotext. Since quads are intented to be used with opengl, drawing context is global.
- Returns:
- true if ok, false on error.
Implemented in Quad_impl, Quad_impl, Hitti, Hitti, Arrow, Arrow, Box, Box, Ball, Ball, Bongo, and Bongo.
Read Quad from resource file.
- Parameters:
-
| resource | Resource file contained description of Quad object. |
| xcongo | Global settings file contained parameters not specific to this quad. |
- Returns:
- true if ok, false on error.
Implemented in Quad_impl, Quad_impl, Arrow, Arrow, Box, Box, Ball, Ball, Bongo, and Bongo.
Referenced by Factory::CreateQuad().