Public Types | |
enum | RENDERMODE { NORMAL, SELECTION } |
Public Member Functions | |
void | setRenderMode (int m) |
int | getRenderMode () const |
void | addComponent (Component *comp) |
void | removeComponent (Component *comp) |
int | getComponentId (Component *comp) const |
void | beginUpdate (int x, int y) |
Component * | getComponentAt (int x, int y) const |
void | mouseMotion (int x, int y) |
void | mousePressed (int button) |
void | mouseReleased (int button) |
Static Public Member Functions | |
SelectionManager & | getInstance () |
|
|
|
Sets the rendermode.
|
|
Returns the currently used render mode. |
|
Register a component with the SelectionManager. Registering means that the object will be pickable, and receive mouse input.
|
|
Unregister a component with the SelectionManager.
|
|
Returns the identifier for the given Component. The identifier is unique and can be used (and is) for calculating the unique color for picking.
|
|
Begins the update. Should be called at the start of a frame. |
|
Returns the Component located at x,y. Returns NULL(0) if no Component is present. |
|
Input feeds. Inputs mouse motion to the SelectionManager. |
|
Input feeds. A mouse button went down. |
|
Input feeds. A mouse button was released (up). |
|
Returns an instance of the SelectionManager. |