7 #ifndef BALL_VIEW_PRIMITIV_SPHERE_H
8 #define BALL_VIEW_PRIMITIV_SPHERE_H
10 #ifndef BALL_VIEW_KERNEL_GEOMETRICOBJECT_H
14 #ifndef BALL_VIEW_MATHS_SPHERE3_H
72 void set(
const Sphere& sphere);
83 void setRadius(
float new_radius)
84 { radius = new_radius;}
87 float getRadius()
const
92 { point_ptr_->set(v3);}
96 {
return *point_ptr_;}
99 void setPositionAddress(
const Vector3& v3)
100 { point_ptr_ = (
Vector3 *)&v3;}
104 {
return point_ptr_;}
107 bool isDefaultPositionAddress()
108 {
return point_ptr_ == &p;}
111 void setDefaultPositionAddress()
128 virtual bool isValid()
const;
140 virtual void dump(std::ostream& s = std::cout,
Size depth = 0)
const;
143 virtual void getVertices(vector<Vector3>& vertices)
const;
154 #endif // BALL_VIEW_PRIMITIV_SPHERE_H