|
|
The controller for the communication with the priorknowledge. More...
#include <MemoryX/gui-plugins/SceneEditor/memoryxcontroller/PriorKnowledgeController.h>
Public Member Functions | |
| std::map< std::string, std::string > | getAllAttributes (const memoryx::ObjectClassPtr &objectClass) const |
| Returns a map with every attribute and its value of the given object class. | |
| std::vector< memoryx::ObjectClassPtr > | getAllObjectClassesPtr (const std::string &collection) const |
| Returns a list of pointers to all object classes in the given collection. | |
| SoNode * | getCoinVisualisation (const memoryx::ObjectClassPtr &objectClass, const bool &collisionModel) const |
| Returns a coin node that contains a visual model of the given object class. | |
| std::string | getCollection (const memoryx::ObjectInstancePtr &objectInstance) const |
| Returns the name of the collection the object class of the given object instance belongs to. | |
| std::vector< std::string > | getCollectionNames () const |
| Returns a list of the names of all collections in the database. | |
| memoryx::ObjectClassPtr | getObjectClassPtr (const std::string &className, const std::string &collection) const |
| Returns a pointer to the object class with the given name in the give collection. | |
| PriorKnowledgeController (const memoryx::PriorKnowledgeInterfacePrx &priorKnowledgePrx) | |
| Constructor. | |
| PriorKnowledgeController (const PriorKnowledgeController &other) | |
| Copy-constructor. | |
| ~PriorKnowledgeController () | |
| Destructor. | |
The controller for the communication with the priorknowledge.
This class provides methods to get information from the priorknowledge. It is not possible to change the content of the priorknowledge.
| PriorKnowledgeController | ( | const memoryx::PriorKnowledgeInterfacePrx & | priorKnowledgePrx | ) |
Constructor.
Constructs a new instance of this class.
| priorKnowledgePrx | the proxy to the priorknowledge where the object classes are stored |
| PriorKnowledgeController | ( | const PriorKnowledgeController & | other | ) |
Copy-constructor.
This constructor can be used if a copy of the given PriorknowledgeController is needed. It prevents that problems with mutex:scoped_lock occure.
| other | the priorknowledgecontroller that is about to be copied |
Destructor.
| std::map< std::string, std::string > getAllAttributes | ( | const memoryx::ObjectClassPtr & | objectClass | ) | const |
Returns a map with every attribute and its value of the given object class.
The values of the attributes are partially converted in strings that are easy to display.
| objectClass | the pointer to the given object class |
| std::vector< memoryx::ObjectClassPtr > getAllObjectClassesPtr | ( | const std::string & | collection | ) | const |
Returns a list of pointers to all object classes in the given collection.
| collection | the name of the collection |
| SoNode * getCoinVisualisation | ( | const memoryx::ObjectClassPtr & | objectClass, |
| const bool & | collisionModel ) const |
Returns a coin node that contains a visual model of the given object class.
If the parameter collisionModel is true, the a collision model of the object class is returned, otherwise its visualisation model.
| objectClass | the pointer to object class |
| collisionModel | true if the collision model should be returned |
| std::string getCollection | ( | const memoryx::ObjectInstancePtr & | objectInstance | ) | const |
Returns the name of the collection the object class of the given object instance belongs to.
| objectInstance | the given object instance |
| std::vector< std::string > getCollectionNames | ( | ) | const |
Returns a list of the names of all collections in the database.
| memoryx::ObjectClassPtr getObjectClassPtr | ( | const std::string & | className, |
| const std::string & | collection ) const |
Returns a pointer to the object class with the given name in the give collection.
If there is no object class with the given name, a null pointer is returned.
| className | the name of the object class |
| collection | the name of the collection, where the object class belongs to |