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

Cone Class Reference

Define a right circular conical solid. More...

#include <Cone.h>

Inheritance diagram for Cone:

Volume Shape SurfaceList GeomObject Cons List of all members.

Public Methods

 Cone ( double length, double ri1, double ro1, double ri2, double ro2 )
 constructor: specify full length, inner and outer radii at -length/2 inner and outer radii at +length/2. More...

Vector axis () const
double length () const
double innerRadius (double) const
double outerRadius (double) const
virtual void printOn ( std::ostream& os = std::cout ) const
 print info about this object. More...

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


Detailed Description

Define a right circular conical solid.

Definition at line 12 of file Cone.h.


Constructor & Destructor Documentation

Cone::Cone ( double length,
double ri1,
double ro1,
double ri2,
double ro2 )
 

constructor: specify full length, inner and outer radii at -length/2 inner and outer radii at +length/2.

Definition at line 15 of file Cone.cxx.


Member Function Documentation

Vector Cone::axis ( ) const
 

Definition at line 54 of file Cone.cxx.

Referenced by Cons::Cons().

double Cone::innerRadius ( double z ) const
 

Definition at line 44 of file Cone.cxx.

Referenced by printOn().

double Cone::length ( ) const
 

Definition at line 50 of file Cone.cxx.

Referenced by printOn().

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

makes name available to subclasses using the type info facility.

Reimplemented from GeomObject.

Reimplemented in Cons.

Definition at line 30 of file Cone.h.

double Cone::outerRadius ( double z ) const
 

Definition at line 40 of file Cone.cxx.

Referenced by printOn().

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

print info about this object.

Reimplemented from Volume.

Reimplemented in Cons.

Definition at line 56 of file Cone.cxx.


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