Quantum GIS API Documentation  1.7.4
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 #include <iostream>
00022 
00024 class ANALYSIS_EXPORT Node
00025 {
00026   protected:
00028     Point3D* mPoint;
00030     Node* mNext;
00031   public:
00032     Node();
00033     Node( const Node& n );
00034     ~Node();
00035     Node& operator=( const Node& n );
00037     Node* getNext() const;
00039     Point3D* getPoint() const;
00041     void setNext( Node* n );
00043     void setPoint( Point3D* p );
00044 };
00045 
00046 inline Node::Node() : mPoint( 0 ), mNext( 0 )
00047 {
00048 
00049 }
00050 
00051 inline Node::~Node()
00052 {
00053 
00054 }
00055 
00056 inline Node* Node::getNext() const
00057 {
00058   return mNext;
00059 }
00060 
00061 inline Point3D* Node::getPoint() const
00062 {
00063   return mPoint;
00064 }
00065 
00066 inline void Node::setNext( Node* n )
00067 {
00068   mNext = n;
00069 }
00070 
00071 inline void Node::setPoint( Point3D* p )
00072 {
00073   mPoint = p;
00074 }
00075 
00076 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines