![]() |
Tulip
4.4.0
Better Visualization Through Research
|
#include <GlScene.h>
Public Types | |
| enum | SelectedEntityType { UNKNOW_SELECTED = 0, NODE_SELECTED = 1, EDGE_SELECTED = 2, SIMPLE_ENTITY_SELECTED = 3 } |
Public Member Functions | |
| SelectedEntity (GlSimpleEntity *entity) | |
| SelectedEntity (Graph *graph, unsigned int id, SelectedEntityType type) | |
| Graph * | getComplexEntityGraph () const |
| unsigned int | getComplexEntityId () const |
| edge | getEdge () const |
| SelectedEntityType | getEntityType () const |
| node | getNode () const |
| GlSimpleEntity * | getSimpleEntity () const |
Protected Attributes | |
| Graph * | complexEntityGraph |
| unsigned int | complexEntityId |
| SelectedEntityType | entityType |
| GlSimpleEntity * | simpleEntity |
Structure to store selected entities.
After a selection, objects of SelectedEntity is returned To use this object the first thing to do is to call getEntity type to know the type of Entity After that you can :
|
inline |
getEdge is a convenience method to perform the check on the selected element type and return the corresponding edge object. It's equivalent to
|
inline |
getNode is a convenience method to perform the check on the selected element type and return the corresponding node object. It's equivalent to