Quantum GIS API Documentation  1.8
src/analysis/interpolation/Node.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                           Node.h  -  description
00003                              -------------------
00004     copyright            : (C) 2004 by Marco Hugentobler
00005     email                : mhugent@geo.unizh.ch
00006  ***************************************************************************/
00007 
00008 /***************************************************************************
00009  *                                                                         *
00010  *   This program is free software; you can redistribute it and/or modify  *
00011  *   it under the terms of the GNU General Public License as published by  *
00012  *   the Free Software Foundation; either version 2 of the License, or     *
00013  *   (at your option) any later version.                                   *
00014  *                                                                         *
00015  ***************************************************************************/
00016 
00017 #ifndef NODE_H
00018 #define NODE_H
00019 
00020 #include "Point3D.h"
00021 
00023 class ANALYSIS_EXPORT Node
00024 {
00025   protected:
00027     Point3D* mPoint;
00029     Node* mNext;
00030   public:
00031     Node();
00032     Node( const Node& n );
00033     ~Node();
00034     Node& operator=( const Node& n );
00036     Node* getNext() const;
00038     Point3D* getPoint() const;
00040     void setNext( Node* n );
00042     void setPoint( Point3D* p );
00043 };
00044 
00045 inline Node::Node() : mPoint( 0 ), mNext( 0 )
00046 {
00047 
00048 }
00049 
00050 inline Node::~Node()
00051 {
00052 
00053 }
00054 
00055 inline Node* Node::getNext() const
00056 {
00057   return mNext;
00058 }
00059 
00060 inline Point3D* Node::getPoint() const
00061 {
00062   return mPoint;
00063 }
00064 
00065 inline void Node::setNext( Node* n )
00066 {
00067   mNext = n;
00068 }
00069 
00070 inline void Node::setPoint( Point3D* p )
00071 {
00072   mPoint = p;
00073 }
00074 
00075 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines