Main Page | Class Hierarchy | Class List | File List | Class Members

pyramid.h

00001 /***************************************************************************
00002                           pyramid.h  -  description
00003                              -------------------
00004     begin                : Sat Mar 15 2003
00005     copyright            : (C) 2003 by Moritz Franosch
00006     email                : mail@Franosch.org
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef PYRAMID_H
00019 #define PYRAMID_H
00020 
00021 #include <list>
00022 
00023 #include "geometry.h"
00024 #include "particle.h"
00025 
00026 
00031 class Pyramid : public Geometry {
00032 
00033 private:
00034 
00035   Particle::vector_t top;
00036   std::list<Particle::vector_t> polygon;
00037 
00038 public: 
00039 
00043   Pyramid(const Particle::vector_t& top,
00044           const Particle::vector_t& c1,
00045           const Particle::vector_t& c2,
00046           const Particle::vector_t& c3,
00047           const Particle::vector_t& c4);
00048 
00049   virtual bool operator()(const Particle::vector_t& p) const;
00050 
00053   virtual void to_xml(std::ostream& o);
00054 
00055 };
00056 
00057 
00058 #endif // PYRAMID_H

Generated on Fri Apr 22 11:06:42 2005 for partsim.kdevelop by doxygen 1.3.6