BALL
1.4.1
|
00001 // -*- Mode: C++; tab-width: 2; -*- 00002 // vi: set ts=2: 00003 // 00004 // $Id: point.h,v 1.10.16.1 2007-03-25 21:26:10 oliver Exp $ 00005 // 00006 00007 #ifndef BALL_VIEW_PRIMITIVES_POINT_H 00008 #define BALL_VIEW_PRIMITIVES_POINT_H 00009 00010 #ifndef BALL_VIEW_KERNEL_GEOMETRICOBJECT_H 00011 # include <BALL/VIEW/KERNEL/geometricObject.h> 00012 #endif 00013 00014 #ifndef BALL_VIEW_DATATYPE_VERTEX1_H 00015 # include <BALL/VIEW/DATATYPE/vertex1.h> 00016 #endif 00017 00018 namespace BALL 00019 { 00020 namespace VIEW 00021 { 00022 00034 class BALL_VIEW_EXPORT Point 00035 : public GeometricObject, 00036 public Vertex 00037 { 00038 public: 00039 00040 BALL_CREATE(Point) 00041 00042 00045 00052 Point(); 00053 00056 Point(const Point& point); 00057 00059 00061 00064 virtual ~Point(); 00065 00070 virtual void clear(); 00071 00073 00076 00079 void set(const Point& point); 00080 00084 const Point& operator = (const Point& point); 00085 00090 void swap(Point& point); 00091 00093 00095 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 00119 } // namespace VIEW 00120 } // namespace BALL 00121 00122 #endif // BALL_VIEW_PRIMITIVES_POINT_H