Tile Class Reference
#include <Tile.h>

Public Member Functions | |
| Tile () | |
| ~Tile () | |
| Tile * | clone () |
| void | setId (unsigned int id) |
| void | setName (std::string name) |
| void | setXSize (int sizeX) |
| void | setZSize (int sizeZ) |
| void | setYRotation (int yRotation) |
| void | setHeight (float height) |
| void | setModel (ModelInterface *mdl) |
| unsigned int | getId () |
| std::string | getName () |
| int | getXSize () |
| int | getZSize () |
| int | getYRotation () |
| float | getHeight () |
| ModelInterface * | getModel () |
| void | dump () |
Public Attributes | |
| SceneGraphAttachment * | sceneGraphAttachment |
| Pointer to data relevant for the SceneGraphInterface. | |
Private Member Functions | |
| Tile (Tile *src) | |
Private Attributes | |
| unsigned int | id |
| ID of the Tile. | |
| std::string | name |
| Name of the Tile. | |
| int | sizeX |
| Horizontal and vertical size and rotation along the y-Axis. | |
| int | sizeZ |
| int | yRotation |
| float | height |
| Height of the Tile. | |
| ModelInterface * | model |
| Graphical representation of the Tile. | |
Constructor & Destructor Documentation
| Tile::Tile | ( | ) |
Constructor initializes Tile. The constructor initializes the member variables with default values.
| Tile::~Tile | ( | ) |
Destructor. The destructor checks if the Tile is already removed from the SceneGraphInterface and prints an ERROR-message if not
| Tile::Tile | ( | Tile * | src | ) | [private] |
Member Function Documentation
| Tile * Tile::clone | ( | ) |
| void Tile::dump | ( | ) |
Prints debugging information about the Tile.
| float Tile::getHeight | ( | ) |
| unsigned int Tile::getId | ( | ) |
Returns the ID of the Tile.
- Returns:
- id of the tile
| ModelInterface * Tile::getModel | ( | ) |
| int Tile::getXSize | ( | ) |
| int Tile::getYRotation | ( | ) |
| int Tile::getZSize | ( | ) |
| void Tile::setHeight | ( | float | height | ) |
| void Tile::setId | ( | unsigned int | id | ) |
Sets the Tile's ID.
- Parameters:
-
id ID of the Tile
| void Tile::setModel | ( | ModelInterface * | mdl | ) |
| void Tile::setName | ( | std::string | name | ) |
| void Tile::setXSize | ( | int | sizeX | ) |
Sets the horizontal size of the Tile. The passed size is in world coordinates and not in spacing units. This means that the passed argument must be a multiple of the horizontal spacing defined in the EnvironmentLayout config-file which is parsed by the WorldDatabase.
- Parameters:
-
sizeX horizontal size of Tile in world coordinates
| void Tile::setYRotation | ( | int | yRotation | ) |
Sets the orientation of the tile along Y-axis. The orientation can be used to match the Tile into the Environment. The passed rotation is in degrees and should be either 0, 90, 180 or 270 degrees.
- Parameters:
-
yRotation rotation in degrees along the Y-axis
| void Tile::setZSize | ( | int | sizeZ | ) |
Sets the vertical size of the Tile The passed size is in world coordinates and not in spacing units. This means that the passed argument must be a multiple of the vertical spacing defined in the EnvironmentLayout config-file which is parsed by the WorldDatabase.
- Parameters:
-
sizeZ vertical size of Tile in world coordinates
Member Data Documentation
float Tile::height [private] |
Height of the Tile.
ModelInterface* Tile::model [private] |
Graphical representation of the Tile.
std::string Tile::name [private] |
Name of the Tile.
Pointer to data relevant for the SceneGraphInterface.
int Tile::sizeX [private] |
Horizontal and vertical size and rotation along the y-Axis.
int Tile::sizeZ [private] |
int Tile::yRotation [private] |
The documentation for this class was generated from the following files:
Generated on Wed Oct 20 16:12:01 2010 for inVRs by
1.5.8