Model Railroad System 2.2.2
|
Track endpoint elements (T and E lines). More...
#include <TrackBody.h>
Public Member Functions | |
TrackBodyElt (int ind=-1, float X=-1.0, float Y=-1.0, float A=0.0) | |
Constructor. More... | |
~TrackBodyElt () | |
Destructor. More... | |
Static Public Member Functions | |
static TrackBodyElt * | ConnectedTrackEnd (int ind, float X, float Y, float A) |
Create a connected track endpoint. More... | |
static TrackBodyElt * | UnConnectedTrackEnd (float X, float Y, float A) |
Create a unconnected track endpoint. More... | |
Private Attributes | |
int | index |
Index of connected track (T lines only). More... | |
float | x |
$X$ coordinate of track endpoint. More... | |
float | y |
$Y$ coordinate of track endpoint. More... | |
float | a |
Angle of track endpoint. More... | |
Friends | |
class | TrackGraph |
ostream & | operator<< (ostream &stream, TrackBodyElt &elt) |
Output operator. More... | |
Track endpoint elements (T and E lines).
|
inline |
Constructor.
References a, index, x, and y.
Referenced by ConnectedTrackEnd(), and UnConnectedTrackEnd().
|
inline |
Destructor.
|
inlinestatic |
Create a connected track endpoint.
References a, index, TrackBodyElt(), x, and y.
|
inlinestatic |
Create a unconnected track endpoint.
References a, TrackBodyElt(), x, and y.
|
friend |
Output operator.
|
friend |
|
private |
Angle of track endpoint.
Referenced by ConnectedTrackEnd(), TrackBodyElt(), and UnConnectedTrackEnd().
|
private |
Index of connected track (T lines only).
Referenced by ConnectedTrackEnd(), and TrackBodyElt().
|
private |
$X$ coordinate of track endpoint.
Referenced by ConnectedTrackEnd(), TrackBodyElt(), and UnConnectedTrackEnd().
|
private |
$Y$ coordinate of track endpoint.
Referenced by ConnectedTrackEnd(), TrackBodyElt(), and UnConnectedTrackEnd().