GlobeEngine
DirectedEdge.h
Go to the documentation of this file.
1 //
2 // VBOVertex.h
3 // GlobeEngine
4 //
5 // Created by Mathias Thöny on 27.12.11.
6 // Copyright (c) 2011 University of Zurich. All rights reserved.
7 //
8 
9 #ifndef GlobeEngine_DirectedEdge_h
10 #define GlobeEngine_DirectedEdge_h
11 #include "VBOVertex.h"
12 #include "OpenGL_Includes.h"
13 #include <iostream>
14 #include "UndirectedEdge.h"
15 
16 namespace geGraph {
17  /*
18  * directed edge
19  */
20  template <class T> class DirectedEdge : public UndirectedEdge< T >
21  {
22  public:
24  create(std::numeric_limits<T>::max(), std::numeric_limits<T>::max(), std::numeric_limits<T>::max());
25  }
26 
27  DirectedEdge(T _uid, T _node1, T _node2) {
28  create(_uid, _node1, _node2);
29  }
30 
31  std::pair<T, T> getDirection() {
32  std::pair<T, T> (this->nodes[0], this->nodes[1]);
33  }
34 
35  std::pair<T, T> getInverseDirection() {
36  std::pair<T, T> (this->nodes[1], this->nodes[0]);
37  }
38  private:
39  };
40 
42 
43 }
44 #endif
DirectedEdge< unsigned int > DirectedEdgeui
Definition: DirectedEdge.h:41
DirectedEdge()
Definition: DirectedEdge.h:23
Definition: DirectedEdge.h:16
std::pair< T, T > getInverseDirection()
Definition: DirectedEdge.h:35
T nodes[2]
Definition: UndirectedEdge.h:87
DirectedEdge(T _uid, T _node1, T _node2)
Definition: DirectedEdge.h:27
Definition: UndirectedEdge.h:19
std::pair< T, T > getDirection()
Definition: DirectedEdge.h:31
void create(T _uid, T _node1, T _node2)
Definition: UndirectedEdge.h:34
Definition: DirectedEdge.h:20