GlobeEngine
WeightedUndirectedPolylineEdge.h
Go to the documentation of this file.
1 //
2 // WeightedUndirectedPolylineEdge.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_WeightedUndirectedPolylineEdge_h
10 #define GlobeEngine_WeightedUndirectedPolylineEdge_h
11 #include "VBOVertex.h"
12 #include "OpenGL_Includes.h"
13 #include <iostream>
14 #include "UndirectedEdge.h"
15 #include "WeightedUndirectedEdge.h"
16 
17 namespace geGraph {
18  /*
19  * wheigted undirected polyline edge
20  */
21  template <class T> class WeightedUndirectedPolylineEdge : public WeightedUndirectedEdge< T >
22  {
23  public:
25  polyline = nullptr;
26  }
27 
28  WeightedUndirectedPolylineEdge(T _node1, T _node2): WeightedUndirectedEdge< T >(_node1, _node2) {
29  polyline = nullptr;
30  }
31 
32  WeightedUndirectedPolylineEdge(T _uid, T _node1, T _node2): WeightedUndirectedEdge< T >(_uid, _node1, _node2) {
33  polyline = nullptr;
34  }
35 
36  WeightedUndirectedPolylineEdge(T _uid, T _node1, T _node2, float _weight) : WeightedUndirectedEdge< T >(_uid, _node1, _node2, _weight) {
37  polyline = nullptr;
38  }
39 
40  //void setPolyline(geData::PolyLine* _polyline) {
41  void setPolyline(std::shared_ptr<geData::PolyLine> _polyline) {
42  this->polyline = _polyline;
43  }
44 
45 
46  //geData::PolyLine* getPolyline(){
47  std::shared_ptr<geData::PolyLine> getPolyline(){
48  return this->polyline;
49  }
50  /*unsigned int getPolylineID() {
51  return this->polylineID;
52  }
53 
54  void setPolylineID(unsigned int _polylineID) {
55  polylineID = _polylineID;
56  }
57  */
58 
59  protected:
60  //geData::PolyLine* polyline;
61  std::shared_ptr<geData::PolyLine> polyline;
62  //unsigned int polylineID;
63  };
64 
67 }
68 #endif
void setPolyline(std::shared_ptr< geData::PolyLine > _polyline)
Definition: WeightedUndirectedPolylineEdge.h:41
std::shared_ptr< geData::PolyLine > getPolyline()
Definition: WeightedUndirectedPolylineEdge.h:47
WeightedUndirectedPolylineEdge(T _node1, T _node2)
Definition: WeightedUndirectedPolylineEdge.h:28
WeightedUndirectedPolylineEdge< unsigned int > WeightedUndirectedPolylineEdgeui
Definition: WeightedUndirectedPolylineEdge.h:65
Definition: DirectedEdge.h:16
std::shared_ptr< geData::PolyLine > polyline
Definition: WeightedUndirectedPolylineEdge.h:61
Definition: WeightedUndirectedEdge.h:20
Definition: WeightedUndirectedPolylineEdge.h:21
WeightedUndirectedPolylineEdge(T _uid, T _node1, T _node2, float _weight)
Definition: WeightedUndirectedPolylineEdge.h:36
WeightedUndirectedPolylineEdge()
Definition: WeightedUndirectedPolylineEdge.h:24
WeightedUndirectedPolylineEdge(T _uid, T _node1, T _node2)
Definition: WeightedUndirectedPolylineEdge.h:32