Vis 2 Demo
1.0
Technical illustration type real-time rendering of geometry
Main Page
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Macros
src
geometry
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
17
class
NeighborhoodRecord
18
{
19
public
:
21
NeighborhoodRecord
(){}
23
~NeighborhoodRecord
(){}
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
:
53
NeighborhoodRecord
(
const
NeighborhoodRecord
&);
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
69
colorContainer
members
;
70
std::vector<colorContainer>
neighb_lists
;
71
};
72
}
73
74
75
76
77
#endif
Generated on Tue Jun 11 2013 08:43:14 for Vis 2 Demo by
1.8.3.1