|
Model Railroad System 2.2.2
|
Curved Block object type. More...
Public Member Functions | |
| CurvedBlock (name, _ctcpanel, _canvas,...) | |
| Construct a CurvedBlock object. More... | |
| ~CurvedBlock () | |
| Clean up all data objects and free up all resources. 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 CurvedBlock. More... | |
Private Member Functions | |
| _configureLabel (option, value) | |
| Method to update the label option. More... | |
Static Private Member Functions | |
| static | _square (x) |
| Typemethod to compute the square of a number. More... | |
| static | _RadiansToDegrees (rads) |
| Typemethod to convert from radians to degrees. More... | |
Private Attributes | |
| ctcpanel | |
| The CTC Panel component (parent widget). More... | |
| canvas | |
| The canvas component (parent widget component). More... | |
Static Private Attributes | |
| static | _PI |
| PI is | |
Curved Block object type.
These are on the schematic and represent a piece of track on the Schematic.
| _ctcpanel | The CTCPanel megawidget. |
| _canvas | The schematic canvas to draw the CurvedBlock on. |
| ... | Options:
|
| CTCPanel::CurvedBlock::CurvedBlock | ( | name | , |
| _ctcpanel | , | ||
| _canvas | , | ||
| ... | |||
| ) |
Construct a CurvedBlock object.
See @FinnApr04@ for an explaination of the underlying math.
| _ctcpanel | The CTCPanel megawidget. |
| _canvas | The schematic canvas to draw the CurvedBlock on. |
| ... | Option list. |
| CTCPanel::CurvedBlock::~CurvedBlock | ( | ) |
Clean up all data objects and free up all resources.
|
private |
Method to update the label option.
|
staticprivate |
Typemethod to convert from radians to degrees.
|
staticprivate |
Typemethod to compute the square of a number.
| CTCPanel::CurvedBlock::geti | ( | ind | ) |
Method to get the state of one of our indicators (none).
| CTCPanel::CurvedBlock::invoke | ( | ) |
Method to invoke the CurvedBlock.
| CTCPanel::CurvedBlock::seti | ( | ind | , |
| value | |||
| ) |
Method to set an indicator's state (none).
| CTCPanel::CurvedBlock::setv | ( | value | ) |
Method to set out value (state).
| value | The new state to set. |
|
staticprivate |
PI is
.
|
private |
The canvas component (parent widget component).
|
private |
The CTC Panel component (parent widget).