Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
 All Classes Namespaces Functions Pages
Identifiable.h
1 #ifndef _IDCOUNTER_H_
2 #define _IDCOUNTER_H_
3 
4 #include "UserAction.h"
5 #include <vector>
6 
13 {
14 public:
15  Identifiable();
16 
20  unsigned int getID();
24  static Identifiable* byID(unsigned int id);
25 
29  virtual void hover();
30 
36  virtual UserAction press();
37 
38 private:
39  unsigned int _id;
40 
41  static unsigned int _idCounter;
42  static std::vector<Identifiable*> _byID;
43 };
44 
45 
46 #endif