Vis 2 Demo  1.0
Technical illustration type real-time rendering of geometry
 All Classes Namespaces Files Functions Variables Typedefs Macros
NeighborhoodRecord.h
Go to the documentation of this file.
1 #ifndef __NEIGHBORHOOD_RECORD_H__
2 #define __NEIGHBORHOOD_RECORD_H__
3 
4 #include <iostream>
5 #include <vector>
6 #include <glm/glm.hpp>
7 
8 namespace vis2
9 {
10  typedef std::vector<glm::vec3> colorContainer;
11 
13 
18  {
19  public:
24 
26 
30  void addMember( const glm::vec3 & _new_member);
31 
33 
38  void addNeighbor( const glm::vec3 & _exiting_member, const glm::vec3 & _new_neighbor);
39 
41 
46  bool isNeighborOf(const glm::vec3 & _id_1, const glm::vec3 & _id_2) const;
47 
49  void printNeighbLists() const;
50 
51  private:
54 
56 
60  void addNeighbor2ExistingMember(unsigned int _slot, const glm::vec3 & _new_neighbor);
61 
63 
67  bool isNeighbor2ExistingMember(unsigned int _slot, const glm::vec3 & _id) const;
68 
70  std::vector<colorContainer> neighb_lists;
71  };
72 }
73 
74 
75 
76 
77 #endif