#include <Relation.h>
| Public Member Functions | |
| bool | containsObject (const std::string &pType) const | 
| std::string | getObjectTypeA () const | 
| std::string | getObjectTypeB () const | 
| std::string | getOtherType (const std::string &pFirstType) const | 
| Relation (std::string pObjectTypeA, std::string pObjectTypeB) | |
| Private Attributes | |
| std::string | mObjectTypeA | 
| std::string | mObjectTypeB | 
This class represents a relation between to objects represented by their types.
Definition at line 28 of file Relation.h.
| SceneModel::Relation::Relation | ( | std::string | pObjectTypeA, | 
| std::string | pObjectTypeB | ||
| ) | 
Constructor
| pObjectTypeA | type of the first object | 
| pObjectTypeB | type of the second object | 
Definition at line 22 of file Relation.cpp.
| bool SceneModel::Relation::containsObject | ( | const std::string & | pType | ) | const | 
Returns whether object of given type participates in the relation
| pType | to check | 
Definition at line 36 of file Relation.cpp.
| std::string SceneModel::Relation::getObjectTypeA | ( | ) | const | 
| std::string SceneModel::Relation::getObjectTypeB | ( | ) | const | 
| std::string SceneModel::Relation::getOtherType | ( | const std::string & | pFirstType | ) | const | 
Returns the type of the other object participating in this relation given one
| pFirstType | the given type | 
Definition at line 41 of file Relation.cpp.
| 
 | private | 
First object type
Definition at line 69 of file Relation.h.
| 
 | private | 
Second object type
Definition at line 74 of file Relation.h.