#include <Cylinder.h>
Inheritance diagram for Cylinder:

Public Methods | |
| Cylinder (const Point& origin, double radius) | |
| simple constructor used by Tube: direction on z-axis. More... | |
| Cylinder ( const Point& origin, const Vector& axis, double radius ) | |
| constructor: must specify origin point, axis vector, radius where sign of radius indicates inside/or outsice. More... | |
| double | how_near ( const Point& x ) const |
| signed function giving minimum distance to the surface: surface is actually defined by zero. More... | |
| double | distance ( const Point& x, const Vector& v, int inout) const |
| distance along direction v from point x to enter or leave the surface. More... | |
| virtual Vector | normal ( const Point& x ) const |
| returns normal-vector at Point x, assuming x to be on the surface. More... | |
| const Vector& | axis () const |
| axis is the surface's basic direction vector. 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 | radius () const |
| virtual void | setOffset (double offset) |
| must be supplied by subclass if appropriate. More... | |
| virtual double | offset () const |
Private Attributes | |
| double | _radius |
Definition at line 16 of file Cylinder.h.
|
|
simple constructor used by Tube: direction on z-axis.
Definition at line 13 of file Cylinder.cxx. |
|
|
constructor: must specify origin point, axis vector, radius where sign of radius indicates inside/or outsice.
Definition at line 9 of file Cylinder.cxx. |
|
|
axis is the surface's basic direction vector.
Definition at line 33 of file Cylinder.h. |
|
|
distance along direction v from point x to enter or leave the surface.
Reimplemented from Surface. Definition at line 36 of file Cylinder.cxx. |
|
|
signed function giving minimum distance to the surface: surface is actually defined by zero. The distance will be positive if the point is inside the Plane, negative if the point is outside. Reimplemented from Surface. Definition at line 19 of file Cylinder.cxx. |
|
|
makes name available to subclasses using the type info facility.
Reimplemented from GeomObject. Definition at line 35 of file Cylinder.h. |
|
|
returns normal-vector at Point x, assuming x to be on the surface.
Reimplemented from Surface. Definition at line 30 of file Cylinder.cxx. |
|
|
Reimplemented from Surface. Definition at line 40 of file Cylinder.h. |
|
|
print info about this object.
Reimplemented from GeomObject. Definition at line 67 of file Cylinder.cxx. |
|
|
Definition at line 38 of file Cylinder.h. |
|
|
must be supplied by subclass if appropriate. Allows the surface to be "moved" by changing the parameter describing the offset of the surface from the origin. Reimplemented from Surface. Definition at line 39 of file Cylinder.h. |
|
|
Definition at line 44 of file Cylinder.h. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000