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

box.h

00001 /***************************************************************************
00002                           box.h  -  description
00003                              -------------------
00004     begin                : Sat Mar 1 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 BOX_H
00019 #define BOX_H
00020 
00021 #include "geometry.h"
00022 #include "particle.h"
00023 
00024 
00029 class Box : public Geometry {
00030 
00031 private:
00032 
00033   Particle::vector_t p1, p2; // corners of the box
00034 
00035 public: 
00036 
00039   Box(const Particle::vector_t& p1, const Particle::vector_t& p2);
00040 
00043   virtual bool operator()(const Particle::vector_t& p) const;
00044 
00047   const Particle::vector_t& get_corner1() const;
00048 
00051   const Particle::vector_t& get_corner2() const;
00052 
00055   virtual void to_xml(std::ostream& o);
00056 
00057 };
00058 
00059 
00060 #endif // BOX_H

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