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);
121 {
return (getVertex1() - getVertex2()).getLength();}
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;
190 #endif // BALL_VIEW_PRIMITIV_TUBE_H
void setRadius(float radius)
#define BALL_CREATE(name)
float getSquareLength() const