Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Tube Class Reference

define a Tubular solid. More...

#include <Tube.h>

Inheritance diagram for Tube:

Volume Shape SurfaceList GeomObject Tubs List of all members.

Public Methods

 Tube ( double z, double ri, double ro )
 constructor: length, inner, outer radii. More...

void resize ( double z, double ri, double ro )
 resize the Tube with length, inner, outer radii. More...

const char* nameOf () const
 makes name available to subclasses using the type info facility. More...

void printOn ( std::ostream& os = std::cout ) const
 print info about this object. More...

double innerRadius () const
double outerRadius () const
double length () const
const Vectoraxis () const

Private Methods

void calculateSurfaces ( double z, double ri, double ro )

Detailed Description

define a Tubular solid.

Definition at line 11 of file Tube.h.


Constructor & Destructor Documentation

Tube::Tube ( double length,
double innerRadius,
double outerRadius )
 

constructor: length, inner, outer radii.

Definition at line 18 of file Tube.cxx.


Member Function Documentation

const Vector & Tube::axis ( ) const
 

Definition at line 56 of file Tube.cxx.

Referenced by Tubs::Tubs().

void Tube::calculateSurfaces ( double length,
double innerRadius,
double outerRadius ) [private]
 

Definition at line 31 of file Tube.cxx.

Referenced by Tube(), and resize().

double Tube::innerRadius ( ) const
 

Definition at line 50 of file Tube.cxx.

Referenced by printOn().

double Tube::length ( ) const
 

Definition at line 53 of file Tube.cxx.

Referenced by printOn().

const char * Tube::nameOf ( ) const [inline, virtual]
 

makes name available to subclasses using the type info facility.

Reimplemented from GeomObject.

Reimplemented in Tubs.

Definition at line 21 of file Tube.h.

double Tube::outerRadius ( ) const
 

Definition at line 48 of file Tube.cxx.

Referenced by printOn().

void Tube::printOn ( std::ostream & os = std::cout ) const [virtual]
 

print info about this object.

Reimplemented from Volume.

Reimplemented in Tubs.

Definition at line 60 of file Tube.cxx.

void Tube::resize ( double length,
double innerRadius,
double outerRadius )
 

resize the Tube with length, inner, outer radii.

Definition at line 24 of file Tube.cxx.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:20:14 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000