#include <tube.h>

Public Member Functions |
|
|
Constructors
|
|
| Tube () | |
| Default Constructor. |
|
| Tube (const Tube &tube) | |
| Copy constructor with cloning
facility. |
|
|
Destructors
|
|
| virtual | ~Tube () |
| Destructor. |
|
| virtual void | clear () |
| Explicit default initialization.
|
|
|
Assignment methods
|
|
| void | set (const Tube &tube) |
| Assignment. |
|
| const Tube & | operator= (const Tube &tube) |
| Assignment operator. |
|
| void | swap (Tube &tube) |
| Swapping of tube's. |
|
|
Accessors: inspectors and mutators
|
|
| float | getLength () const |
| Inspection of the length of the
tube. |
|
| float | getSquareLength () const |
| Inspection of the square length of
the tube. |
|
|
debuggers and diagnostics
|
|
| virtual bool | isValid () const |
| Internal state and consistency
self-validation. |
|
| virtual void | dump (std::ostream &s=std::cout, Size depth=0) const |
| Internal value dump. |
|
| virtual void | getVertices (vector< Vector3 > &vertices) const |
|
Storers
|
|
| float | getRadius () const |
| Get the radius. |
|
| void | setRadius (float radius) |
| Set the radius. |
|
An instance of Tube represents an instance of the geometric representation "tube". A tube has the following properties.
| BALL::VIEW::Tube::Tube | ( | ) |
Default Constructor.
Construct new tube. The properties of this tube are set to:
Radius
| BALL::VIEW::Tube::Tube | ( | const Tube & | tube | ) |
Copy constructor with cloning facility.
Radius
| virtual BALL::VIEW::Tube::~Tube | ( | ) | [virtual] |
Destructor.
Default destruction of this tube.
| virtual void BALL::VIEW::Tube::clear | ( | ) | [virtual] |
Explicit default initialization.
Calls GeometricObject::clear Calls Radius::clear Calls Vertex2::clear
Radius::clear
Reimplemented from BALL::VIEW::Vertex2.
| virtual void BALL::VIEW::Tube::dump | ( | std::ostream & | s =
std::cout, |
|
| Size | depth =
0 |
|||
| ) | const [virtual] |
Internal value dump.
Dump the current value of this tube to the output ostream s with dumping depth depth. Calls GeometricObject::dump. Calls Radius::dump. Calls Vertex2::dump.
| s | output stream where to output the value of this tube | |
| depth | the dumping depth |
Radius::dump
Reimplemented from BALL::VIEW::Vertex2.
| float BALL::VIEW::Tube::getLength | ( | ) | const |
Inspection of the length of the tube.
Access the length of this tube.
| float BALL::VIEW::Tube::getSquareLength | ( | ) | const |
Inspection of the square length of the tube.
Access the square length of this tube.
| virtual bool BALL::VIEW::Tube::isValid | ( | ) | const [virtual] |
Internal state and consistency self-validation.
Initiate self-validation of the internal state and data
structure consistencies of this tube. If the internal state
of this tube is correct (self-validated) and consistent
true is returned, false
otherwise. Calls GeometricObject::isValid.
Calls Vertex2::isValid.
true if the internal state of this
tube is correct (self-validated) and consistent,
false otherwiseReimplemented from BALL::VIEW::Vertex2.
| void BALL::VIEW::Tube::set | ( | const Tube & | tube | ) |
| void BALL::VIEW::Tube::swap | ( | Tube & | tube | ) |
Swapping of tube's.
Swap the value of this tube with the tube tube.
| tube | the tube being swapped with this tube |
1.5.8