7 #ifndef BALL_VIEW_PRIMITIV_TUBE_H
8 #define BALL_VIEW_PRIMITIV_TUBE_H
10 #ifndef BALL_VIEW_KERNEL_GEOMETRICOBJECT_H
14 #ifndef BALL_VIEW_DATATYPE_VERTEX2_H
99 void set(
const Tube& tube);
104 const Tube& operator = (
const Tube& tube);
110 void swap(
Tube& tube);
120 float getLength()
const
121 {
return (getVertex1() - getVertex2()).getLength();}
127 float getSquareLength()
const
128 {
return (getVertex1() - getVertex2()).getSquareLength();}
146 virtual bool isValid()
const;
160 virtual void dump(std::ostream& s = std::cout,
Size depth = 0)
const;
163 virtual void getVertices(vector<Vector3>& vertices)
const;
171 float getRadius()
const
176 void setRadius(
float radius)
190 #endif // BALL_VIEW_PRIMITIV_TUBE_H