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

Public Methods | |
| virtual double | distanceToLeave ( const Ray& r, double maxStep = FLT_MAX ) const = 0 |
| return the distance along the Ray to leave (if inside ), or enter (if outside). More... | |
| virtual double | distanceToEnter ( const Ray& r, double maxStep = FLT_MAX ) const = 0 |
| virtual int | inside ( const Point& x ) const = 0 |
| is the point inside the volume? | |
| void | printOn (std::ostream&) const |
| print info about this object. More... | |
| const Point& | center () const |
| access to center data member. More... | |
| GeomObject& | transform (const CoordTransform&) |
| virtual method to perform transformations that must be implemented by subclasses. More... | |
| virtual Shape& | copy () const |
| non-virtual subclasses figure out how to return a copy. More... | |
| virtual int | getBoundaryIndex (const Point& ) const |
| allows client using distanceToLeave to associate an index with a boundary, identified by the point. More... | |
| virtual int | lastBoundaryIndex () const |
| distanceToLeave sets index of left boundary: client can use. More... | |
| virtual double | getMaxDimension () const |
| should be calculated by a subclass which is meant to be the maximum distance from the center. More... | |
Protected Methods | |
| Shape () | |
Private Methods | |
| Shape (const Shape& ) | |
Private Attributes | |
| Point | _center |
methods This class is abstract
Definition at line 19 of file Shape.h.
|
|
|
|
|
|
|
|
access to center data member.
Definition at line 65 of file Shape.h. Referenced by Cone::Cone(), Cons::Cons(), Hype::Hype(), Sphe::Sphe(), Tubs::Tubs(), Hexahedron::addPlane(), Tube::calculateSurfaces(), and Volume::distanceToEnter(). |
|
|
non-virtual subclasses figure out how to return a copy.
|
|
|
Reimplemented in Volume. |
|
|
return the distance along the Ray to leave (if inside ), or enter (if outside). Can be negative if the origin of the Ray is close to the surface. maxStep is the largest distance required. returns FLT_MAX if no intersection Reimplemented in Volume. |
|
|
allows client using distanceToLeave to associate an index with a boundary, identified by the point.
Reimplemented in Volume. |
|
|
should be calculated by a subclass which is meant to be the maximum distance from the center.
Reimplemented in Volume. |
|
|
is the point inside the volume?
Reimplemented in Volume. |
|
|
distanceToLeave sets index of left boundary: client can use.
Reimplemented in Volume. |
|
|
print info about this object.
Reimplemented from GeomObject. Reimplemented in Cone, Cons, Hype, Sphe, Trap, Trd1, Trd2, Tube, Tubs, and Volume. Definition at line 25 of file Shape.cxx. Referenced by Volume::printOn(), and Sphe::printOn(). |
|
|
virtual method to perform transformations that must be implemented by subclasses.
Reimplemented from GeomObject. Reimplemented in Volume. Definition at line 32 of file Shape.cxx. Referenced by Volume::transform(). |
|
|
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000