simpleBox.h

Go to the documentation of this file.
00001 // -*- Mode: C++; tab-width: 2; -*-
00002 // vi: set ts=2:
00003 //
00004 // $Id: simpleBox.h,v 1.8.16.1 2007-03-25 21:26:11 oliver Exp $
00005 //
00006 
00007 #ifndef BALL_VIEW_PRIMITIV_SIMPLEBOX_H
00008 #define BALL_VIEW_PRIMITIV_SIMPLEBOX_H
00009 
00010 #ifndef BALL_VIEW_KERNEL_GEOMETRICOBJECT_H
00011 # include <BALL/VIEW/KERNEL/geometricObject.h>
00012 #endif
00013 
00014 #ifndef BALL_MATHS_SIMPLEBOX3_H
00015 # include <BALL/MATHS/simpleBox3.h>
00016 #endif
00017 
00018 namespace BALL
00019 {
00020   namespace VIEW
00021   {
00022 
00023       
00032 // Export doesn't work for some reason...
00033     class BALL_VIEW_EXPORT SimpleBox
00034 //    class SimpleBox
00035       : public SimpleBox3,
00036         public GeometricObject
00037     {
00038       public:
00039 
00040       BALL_CREATE(SimpleBox)
00041 
00042       
00045 
00051       SimpleBox();
00052 
00055       SimpleBox(const SimpleBox& box);
00056 
00058 
00060 
00063       virtual ~SimpleBox();
00064 
00069       virtual void clear();
00070 
00072 
00075 
00078       void set(const SimpleBox& box);
00079 
00082       const SimpleBox& operator = (const SimpleBox& box);
00083 
00085 
00087 
00098       virtual bool isValid() const;
00099 
00110       virtual void dump(std::ostream&  s = std::cout, Size depth = 0) const;
00111       
00112       // Method to get all vertices from a geometric object
00113       virtual void getVertices(vector<Vector3>& vertices) const;
00114 
00116     };
00117   
00118   } // namespace VIEW
00119 } // namespace BALL
00120 
00121 #endif // BALL_VIEW_PRIMITIV_SIMPLEBOX_H