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

Public Types | |
| typedef std::vector<Ray*> | Raylist |
| typedef Raylist::const_iterator | const_iterator |
| typedef Raylist::iterator | iterator |
Public Methods | |
| Track ( Ray* first, bool charged=true) | |
| constructor: must specify first ray and if not charged. More... | |
| ~Track () | |
| destructor: deletes all rays in the list. More... | |
| GeomObject& | transform (const CoordTransform&) |
| virtual method to perform transformations that must be implemented by subclasses. More... | |
| void | addSegment ( Ray* next ) |
| add a new ray: assumes ownership. More... | |
| Point | position ( double s ) const |
| position and direction. More... | |
| Vector | direction ( double s ) const |
| bool | charged () const |
| 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... | |
| const_iterator | begin () const |
| const_iterator | end () const |
| iterator | begin () |
| iterator | end () |
Private Methods | |
| void | findSegment ( double s ) |
Private Attributes | |
| bool | m_charged |
| float | arclength |
| Raylist | rayList |
Static Private Attributes | |
| Ray* | currentRay |
| double | currentArcLength |
| float | maxKink = 0.2f |
Definition at line 15 of file Track.h.
|
|
|
|
|
|
|
|
|
|
|
constructor: must specify first ray and if not charged.
|
|
|
destructor: deletes all rays in the list.
|
|
|
add a new ray: assumes ownership.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
makes name available to subclasses using the type info facility.
Reimplemented from GeomObject. |
|
|
position and direction.
|
|
|
print info about this object.
Reimplemented from GeomObject. |
|
|
virtual method to perform transformations that must be implemented by subclasses.
Reimplemented from GeomObject. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000