|
Model Railroad System 2.2.2
|
Signal object type. More...
Public Member Functions | |
| Signal (name, _ctcpanel, _canvas,...) | |
| Construct a Signal object. More... | |
| ~Signal () | |
| Clean up all data objects and free up all resources. More... | |
| getv () | |
| Method to get our value (aspect). More... | |
| setv (value) | |
| Method to set out value (state). More... | |
| geti (ind) | |
| Method to get the state of one of our indicators (none). More... | |
| seti (ind, value) | |
| Method to set an indicator's state (none). More... | |
| invoke () | |
| Method to invoke the Signal. More... | |
Private Member Functions | |
| _configureLabel (option, value) | |
| Method to update the label option. More... | |
| _VerifyHeads (option, value) | |
Static Private Member Functions | |
| static | _SchematicDrawThinLine (canvas, x1, y1, x2, y2, orientation, tags) |
| Typemethod to draw a thin line. More... | |
| static | _SchematicDrawOval (canvas, x1, y1, dia, orientation, tags) |
| Typemethod to draw an invisible dot on the trackwork. More... | |
Private Attributes | |
| ctcpanel | |
| The CTC Panel component (parent widget). More... | |
| canvas | |
| The canvas component (parent widget component). More... | |
| aspect | |
| Contains the signal's aspect. More... | |
Signal object type.
These are on the schematic and represent a Signal on the Schematic.
| _ctcpanel | The CTCPanel megawidget. |
| _canvas | The schematic canvas to draw the Signal on. |
| ... | Options:
|
| CTCPanel::Signal::Signal | ( | name | , |
| _ctcpanel | , | ||
| _canvas | , | ||
| ... | |||
| ) |
| CTCPanel::Signal::~Signal | ( | ) |
Clean up all data objects and free up all resources.
|
private |
Method to update the label option.
|
staticprivate |
Typemethod to draw an invisible dot on the trackwork.
Used as anchor points to connect trackwork sections together.
| x1 | The first X coordinate. |
| y1 | The first Y coordinate. |
| dia | The diameter of the oval. |
| orientation | The orientation (8-way). |
| tags | The canvas tags to include. |
|
staticprivate |
Typemethod to draw a thin line.
| canvas | The canvas to draw on. |
| x1 | The first X coordinate. |
| y1 | The first Y coordinate. |
| x2 | The second X coordinate. |
| y2 | The second Y coordinate. |
| orientation | The orientation (8-way). |
| tags | The canvas tags to include. |
|
private |
| CTCPanel::Signal::geti | ( | ind | ) |
Method to get the state of one of our indicators (none).
| CTCPanel::Signal::getv | ( | ) |
Method to get our value (aspect).
| CTCPanel::Signal::invoke | ( | ) |
Method to invoke the Signal.
| CTCPanel::Signal::seti | ( | ind | , |
| value | |||
| ) |
Method to set an indicator's state (none).
| CTCPanel::Signal::setv | ( | value | ) |
Method to set out value (state).
| value | The new state to set. |
|
private |
Contains the signal's aspect.
|
private |
The canvas component (parent widget component).
|
private |
The CTC Panel component (parent widget).