QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Node.h
Go to the documentation of this file.
1 /***************************************************************************
2  Node.h - description
3  -------------------
4  copyright : (C) 2004 by Marco Hugentobler
5  email : [email protected]
6  ***************************************************************************/
7 
8 /***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 
17 #ifndef NODE_H
18 #define NODE_H
19 
20 #include "Point3D.h"
21 
23 class ANALYSIS_EXPORT Node
24 {
25  protected:
30  public:
31  Node();
32  Node( const Node& n );
33  ~Node();
34  Node& operator=( const Node& n );
36  Node* getNext() const;
38  Point3D* getPoint() const;
40  void setNext( Node* n );
42  void setPoint( Point3D* p );
43 };
44 
45 inline Node::Node() : mPoint( 0 ), mNext( 0 )
46 {
47 
48 }
49 
50 inline Node::~Node()
51 {
52 
53 }
54 
55 inline Node* Node::getNext() const
56 {
57  return mNext;
58 }
59 
60 inline Point3D* Node::getPoint() const
61 {
62  return mPoint;
63 }
64 
65 inline void Node::setNext( Node* n )
66 {
67  mNext = n;
68 }
69 
70 inline void Node::setPoint( Point3D* p )
71 {
72  mPoint = p;
73 }
74 
75 #endif