|
cut 3.3.0
|
QePreFocalStation widget. More...
#include <CutWidgets.h>
Public Slots | |
| void | setCurrentConfiguration (Configuration newConfiguration) |
| Sets the value of the current configuration property. | |
| void | setCurrentConfigurationInt (int configuration) |
| Convinience method to allow setting PFS configuration using its integer representation. | |
| void | setA1B1ScienceFieldRadius (double newValue) |
| Sets the value of the A1/B1 Science Field Radius property. | |
| void | setBetaWarningAngle (double newValue) |
| Sets the value of the beta warning angle property. | |
| void | setPfsRadius (double newValue) |
| Sets the value of PFS radius. | |
| void | setPrioritySB (ElementName newValue) |
| Sets the priority Sensor Box. | |
| void | changePFSSide (bool doReverse) |
| Helper method to change the PFS widget view to PFS A or PFS B. | |
| void | setCurrentSAAzA (double newValue) |
| Sets the value of the current azimuth property. | |
| void | setCurrentSARadialA (double newValue) |
| Sets the value of the current radial coordinate of SA A. | |
| void | setTargetSAAzA (double newValue) |
| Sets the value of the target azimuth property. | |
| void | setTargetSARadialA (double newValue) |
| Sets the value of the target radial coordinate of SA A. | |
| void | setCurrentSAAzB (double newValue) |
| Sets the value of the current azimuth property. | |
| void | setCurrentSARadialB (double newValue) |
| Sets the value of the current radial coordinate of SA B. | |
| void | setTargetSAAzB (double newValue) |
| Sets the value of the target azimuth property. | |
| void | setTargetSARadialB (double newValue) |
| Sets the value of the target radial coordinate of SA B. | |
| void | setCurrentSAAzC (double newValue) |
| Sets the value of the current azimuth property. | |
| void | setCurrentSARadialC (double newValue) |
| Sets the value of the current radial coordinate of SA C. | |
| void | setTargetSAAzC (double newValue) |
| Sets the value of the target azimuth property. | |
| void | setTargetSARadialC (double newValue) |
| Sets the value of the current radial coordinate of SA C. | |
Public Slots inherited from QeRadialItemPlot | |
| void | setIsClockwise (bool newValue) |
| Changes the direction of radial values distribution. | |
| void | setDegRadNumericDisplay (bool newValue) |
| Changes the units used to display the values. | |
| void | setShowGrid (bool newValue) |
| Changes the grid visibility indicator. | |
| void | updateBackground () |
| Updates the m_backgroundUpdateNeeded internal flag to signal a significant change was detect, and the cache needs to be rebuild. | |
Signals | |
| void | currentConfigurationChanged (Configuration newConfiguration) |
| Indicates that the current configuration has changed. | |
| void | a1b1ScienceFieldRadiusChanged (double newValue) |
| Indicates that A1/B1 Science Field Radius has changed. | |
| void | betaWarningAngleChanged (double newValue) |
| Indicates that warning angle has changed. | |
| void | pfsRadiusChanged (double newValue) |
| Indicates that PFS radius has changed. | |
| void | prioritySBChanged (ElementName newValue) |
| Indicates that priority SB has changed. | |
| void | currentSAAzChangedA (double newValue) |
| Indicates that the current azimuth value has changed. | |
| void | currentSARadialChangedA (double newValue) |
| Indicates that the current radial value has changed. | |
| void | targetSAAzChangedA (double newValue) |
| Indicates that the target azimuth value has changed. | |
| void | targetSARadialChangedA (double newValue) |
| Indicates that the target radial value has changed. | |
| void | currentSAAzChangedB (double newValue) |
| Indicates that the current azimuth value has changed. | |
| void | currentSARadialChangedB (double newValue) |
| Indicates that the current radial value has changed. | |
| void | targetSAAzChangedB (double newValue) |
| Indicates that the target azimuth value has changed. | |
| void | targetSARadialChangedB (double newValue) |
| Indicates that the target radial value has changed. | |
| void | currentSAAzChangedC (double newValue) |
| Indicates that the current azimuth value has changed. | |
| void | currentSARadialChangedC (double newValue) |
| Indicates that the current radial value has changed. | |
| void | targetSAAzChangedC (double newValue) |
| Indicates that the target azimuth value has changed. | |
| void | targetSARadialChangedC (double newValue) |
| Indicates that the target radial value has changed. | |
Signals inherited from QeRadialItemPlot | |
| void | isClockwiseChanged (bool newValue) |
| Indicates that the direction of values distribution chanegd. | |
| void | degRadNumericDisplayTriggered (bool newValue) |
| Indicates that the numerical unit representation has changed. | |
| void | showGridChanged (bool newValue) |
| Indicates that the numerical unit representation has changed. | |
Public Member Functions | |
| QePreFocalStation (QWidget *parent=Q_NULLPTR) | |
| Constructor that is used to set a parent relationship with. | |
| Configuration | getCurrentConfiguration () |
| Gets the current configuration of the Pre FocalStation. | |
| double | getA1B1ScienceFieldRadius () |
| Gets the A1/B1 Science Field Radius. | |
| double | getBetaWarningAngle () |
| Gets the beta angle used to define warning zone. | |
| double | getPfsRadius () |
| Gets the of PFS plane. | |
| ElementName | getPrioritySB () |
| Gets the priority SB name. | |
| double | getCurrentSAAzA () |
| Gets the value of the current azimuth coordinate the SA A has. | |
| double | getCurrentSARadialA () |
| Gets the value of the current radial coordinate the SA A has. | |
| double | getTargetSAAzA () |
| Gets the value of the target azimuth the SA A has. | |
| double | getTargetSARadialA () |
| Gets the value of the target radial coordinate the SA A has. | |
| QPointF | getCurrentBoxPosA () |
| Gets the position of the Sensor Box A (for testing purposes) | |
| QPointF | getTargetBoxPosA () |
| Gets target position of the Sensor Box A (for testing purposes) | |
| double | getCurrentSAAzB () |
| Gets the value of the current azimuth the SA B has. | |
| double | getCurrentSARadialB () |
| Gets the value of the current radial coordinate the SA B has. | |
| double | getTargetSAAzB () |
| Gets the value of the target azimuth the SA B has. | |
| double | getTargetSARadialB () |
| Gets the value of the target radial coordinate the SA B has. | |
| QPointF | getCurrentBoxPosB () |
| Gets the position of the Sensor Box B (for testing purposes) | |
| QPointF | getTargetBoxPosB () |
| Gets target position of the Sensor Box B (for testing purposes) | |
| double | getCurrentSAAzC () |
| Gets the value of the current azimuth the SA C has. | |
| double | getCurrentSARadialC () |
| Gets the value of the current radial coordinate the SA C has. | |
| double | getTargetSAAzC () |
| Gets the value of the target azimuth the SA C has. | |
| double | getTargetSARadialC () |
| Gets the value of the target radial coordinate the SA C has. | |
| QPointF | getCurrentBoxPosC () |
| Gets the position of the Sensor Box C (for testing purposes) | |
| QPointF | getTargetBoxPosC () |
| Gets target position of the Sensor Box C (for testing purposes) | |
Public Member Functions inherited from QeRadialItemPlot | |
| QeRadialItemPlot (QWidget *parent=Q_NULLPTR) | |
| Constructor that is used to set a parent relationship with. | |
| bool | getIsClockwise () |
| Gets the value the flag that determines if radial values change clockwise or counterclockwise. | |
| bool | getDegRadNumericDisplay () |
| Returns the true if using radians to display numerical values. | |
| bool | getShowGrid () |
| Returns the true if grid is displayed. | |
| QPixmap | getBackgroundPixmap () |
| Returns background QPixmap that is stored in unique ptr. | |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *event) override |
| Overrides QWidget::paintEvent to implement its own rendering instructions. | |
| void | paintDartBoard (QPainter *painter) override |
| Uses a QPainter to draw the dartboard (mostly static) background. | |
| void | paintSA (QPainter *painter, QPointF *positionPoint, double azimuth, double radial, Role roleName, ElementName sbName) |
| Paints Sensor Arm according to given coordinates. | |
| void | updateSBColorAndText (Role roleName, QColor elementColor, QPen ¤tPen, QString &sbName) |
| Updates Sensor Box color and letter. | |
| QColor | calculateColor (QColor baseColor, Role roleName) |
| Calculates target color and current color when the widget is disabled. | |
| PositionCheck | checkForCollisions (ElementName elementName) |
| Using m_collisionAngle and m_betaWarningAngle, calculates if current position of a SensorBox is in safety ranges and returns enum value based on which the SAs are changed as follows: If the SB is in a collision zone, it's Sensor Arm is coloured red, if the SB is in a warning zone, it's Sensor Arm is coloured orange. | |
| void | drawM6ArmShadow (QPainter *painter, Configuration config) |
| Draws mirror arm shadow (when A3/B3 configuration) | |
Protected Member Functions inherited from QeRadialItemPlot | |
| void | changeEvent (QEvent *event) override |
| Overrides QWidget::changeEvent to catch when certain QWidget's properties has changed. | |
| void | resizeEvent (QResizeEvent *event) override |
| Overrides QWidget::resizeEvent to catch when the size has changed. | |
| void | cacheBackground (QPainter *painter) |
| Stores in a pointer the new background cache. | |
| void | setDirectionIndicatorSigns (QString vertical, QString horizontal) |
| Sets indicators' symbols for directions arrows painted in top right corner. | |
| void | setDirectionIndicatorVisible (bool isVisible) |
| Sets directions indicator (painted in the top right corner of the widget) visible. | |
| void | drawValues (QPainter *painter) |
| Draws numeric values around the radial plot in a desired direction (eiher clockwise or counterclockwise) | |
Properties | |
| Configuration | currentConfiguration |
| Current configuration of the PFS. | |
| double | a1b1ScienceFieldRadius |
| Science field radius in A1/B1 configuration. | |
| double | betaWarningAngle |
| Beta angle which creates a warning zone to signalize 2 SAs are too close each other. | |
| double | pfsRadius |
| Radius of the PFS plane. | |
| ElementName | prioritySB |
| The Sensor Box that has a priority over other SBs. | |
| double | currentSAAz_A |
| Azimuth coordinate of the current position in radians. | |
| double | currentSARadial_A |
| Radial coordinate of the current position in radians. | |
| double | targetSAAz_A |
| Azimuth coordinate of the target position in radians. | |
| double | targetSARadial_A |
| Radial coordinate of the target position in radians. | |
| double | currentSAAz_B |
| Azimuth coordinate of the current position in radians. | |
| double | currentSARadial_B |
| Azimuth coordinate of the current position in radians. | |
| double | targetSAAz_B |
| X coordinate of Sensor Arm B target position. | |
| double | targetSARadial_B |
| Y coordinate of Sensor Arm B target position. | |
| double | currentSAAz_C |
| Azimuth coordinate of the current position in radians. | |
| double | currentSARadial_C |
| Azimuth coordinate of the current position in radians. | |
| double | targetSAAz_C |
| X coordinate of Sensor Arm C target position. | |
| double | targetSARadial_C |
| Y coordinate of Sensor Arm C target position. | |
Properties inherited from QeRadialItemPlot | |
| bool | isClockwise |
| Flag that determines if radial coordinates of the plot change clockwise (true) or counterclockwise (false) The property is true by default (clockwise) | |
| bool | degRadNumericDisplay |
| Degrees/Radians numerical indicators representation (0 - Degrees, 1 - Radians) | |
| bool | showGrid |
| Show/hide grid. | |
QePreFocalStation widget.
It renders sensor arms position in the focal plane.
The QePreFocalStation is a custom widget that renders in radial coordinates current position of sensor arms
|
explicit |
Constructor that is used to set a parent relationship with.
| parent | QWidget used as parent for this QePreFocalStation. |
|
signal |
Indicates that A1/B1 Science Field Radius has changed.
| newValue | New value for the A1/B1 Science Field Radius |
|
signal |
Indicates that warning angle has changed.
| newValue | New value beat warning angle |
|
protected |
Calculates target color and current color when the widget is disabled.
| baseColor | Color based on which the output is calculated (Current color) |
| roleName | if Role::TARGET, the target color is returned |
|
slot |
Helper method to change the PFS widget view to PFS A or PFS B.
|
protected |
Using m_collisionAngle and m_betaWarningAngle, calculates if current position of a SensorBox is in safety ranges and returns enum value based on which the SAs are changed as follows: If the SB is in a collision zone, it's Sensor Arm is coloured red, if the SB is in a warning zone, it's Sensor Arm is coloured orange.
| elementName | Enum value relating to SA that is currently checked |
|
signal |
Indicates that the current configuration has changed.
| newConfiguration | Newly set configuration |
|
signal |
Indicates that the current azimuth value has changed.
| newValue | New value for the current azimuth in radians, 0 is south, increases eastward. |
|
signal |
Indicates that the current azimuth value has changed.
| newValue | New value for the current azimuth in radians, 0 is south, increases eastward. |
|
signal |
Indicates that the current azimuth value has changed.
| newValue | New value for the current azimuth in radians, 0 is south, increases eastward. |
|
signal |
Indicates that the current radial value has changed.
| newValue | New value for the current radial coordinate of Sensor Arm A. |
|
signal |
Indicates that the current radial value has changed.
| newValue | New value for the current radial coordinate of Sensor Arm B. |
|
signal |
Indicates that the current radial value has changed.
| newValue | New value for the current radial coordinate of Sensor Arm C. |
|
protected |
Draws mirror arm shadow (when A3/B3 configuration)
| painter | QPainter in which the shadow is drawn. |
| config | Configuration based on which shadow shape is drawn |
| double QePreFocalStation::getA1B1ScienceFieldRadius | ( | ) |
Gets the A1/B1 Science Field Radius.
| double QePreFocalStation::getBetaWarningAngle | ( | ) |
Gets the beta angle used to define warning zone.
| QPointF QePreFocalStation::getCurrentBoxPosA | ( | ) |
Gets the position of the Sensor Box A (for testing purposes)
| QPointF QePreFocalStation::getCurrentBoxPosB | ( | ) |
Gets the position of the Sensor Box B (for testing purposes)
| QPointF QePreFocalStation::getCurrentBoxPosC | ( | ) |
Gets the position of the Sensor Box C (for testing purposes)
| Configuration QePreFocalStation::getCurrentConfiguration | ( | ) |
Gets the current configuration of the Pre FocalStation.
| double QePreFocalStation::getCurrentSAAzA | ( | ) |
Gets the value of the current azimuth coordinate the SA A has.
| double QePreFocalStation::getCurrentSAAzB | ( | ) |
Gets the value of the current azimuth the SA B has.
| double QePreFocalStation::getCurrentSAAzC | ( | ) |
Gets the value of the current azimuth the SA C has.
| double QePreFocalStation::getCurrentSARadialA | ( | ) |
Gets the value of the current radial coordinate the SA A has.
| double QePreFocalStation::getCurrentSARadialB | ( | ) |
Gets the value of the current radial coordinate the SA B has.
| double QePreFocalStation::getCurrentSARadialC | ( | ) |
Gets the value of the current radial coordinate the SA C has.
| double QePreFocalStation::getPfsRadius | ( | ) |
Gets the of PFS plane.
| ElementName QePreFocalStation::getPrioritySB | ( | ) |
Gets the priority SB name.
| QPointF QePreFocalStation::getTargetBoxPosA | ( | ) |
Gets target position of the Sensor Box A (for testing purposes)
| QPointF QePreFocalStation::getTargetBoxPosB | ( | ) |
Gets target position of the Sensor Box B (for testing purposes)
| QPointF QePreFocalStation::getTargetBoxPosC | ( | ) |
Gets target position of the Sensor Box C (for testing purposes)
| double QePreFocalStation::getTargetSAAzA | ( | ) |
Gets the value of the target azimuth the SA A has.
| double QePreFocalStation::getTargetSAAzB | ( | ) |
Gets the value of the target azimuth the SA B has.
| double QePreFocalStation::getTargetSAAzC | ( | ) |
Gets the value of the target azimuth the SA C has.
| double QePreFocalStation::getTargetSARadialA | ( | ) |
Gets the value of the target radial coordinate the SA A has.
| double QePreFocalStation::getTargetSARadialB | ( | ) |
Gets the value of the target radial coordinate the SA B has.
| double QePreFocalStation::getTargetSARadialC | ( | ) |
Gets the value of the target radial coordinate the SA C has.
|
overrideprotectedvirtual |
Uses a QPainter to draw the dartboard (mostly static) background.
| painter | QPainter used to perform the raster instructions on. |
Reimplemented from QeRadialItemPlot.
|
overrideprotected |
Overrides QWidget::paintEvent to implement its own rendering instructions.
This method implements most of the rendering logic.
| event | QPaintEvent, ignored. |
|
protected |
Paints Sensor Arm according to given coordinates.
| painter | QPainter in which the background was drawn. |
| positionPoint | QPointF which points to the tip of Sensor Arm. Necessary for testing. |
| azimuth | Azimuth coordinate of the Sensor Arm |
| radial | Radial coordinate of the Sensor Arm (counted from 0,0 point which is the centre of Focal Surface) |
| roleName | String variable used to determine whether the Sensor Box indicates target or current position |
| sbName | Name of the Sensor Box |
|
signal |
Indicates that PFS radius has changed.
| newValue | New value of PFS radius |
|
signal |
Indicates that priority SB has changed.
| newValue | New value of priority SB |
|
slot |
Sets the value of the A1/B1 Science Field Radius property.
| newValue | New value of the radius |
|
slot |
Sets the value of the beta warning angle property.
| newValue | New value of the angle |
|
slot |
Sets the value of the current configuration property.
| newConfiguration | Azimuth in radians, 0 is south, increases eastward. |
|
slot |
Convinience method to allow setting PFS configuration using its integer representation.
| units | Configuration as integer. See Configuration enumerations for details on integer values. |
|
slot |
Sets the value of the current azimuth property.
| newValue | Azimuth in radians, 0 is south, increases eastward. |
|
slot |
Sets the value of the current azimuth property.
| newValue | Azimuth in radians, 0 is south, increases eastward. |
|
slot |
Sets the value of the current azimuth property.
| newValue | Azimuth in radians, 0 is south, increases eastward. |
|
slot |
Sets the value of the current radial coordinate of SA A.
| newValue | Radial coordinate of Sensor Arm A |
|
slot |
Sets the value of the current radial coordinate of SA B.
| newValue | Radial coordinate of Sensor Arm B |
|
slot |
Sets the value of the current radial coordinate of SA C.
| newValue | Radial coordinate of Sensor Arm C |
|
slot |
Sets the value of PFS radius.
| newValue | New value of PFS radius |
|
slot |
Sets the priority Sensor Box.
| newValue | New enum value relating to priority Sensor Box |
|
slot |
Sets the value of the target azimuth property.
| newValue | Azimuth in radians, 0 is south, increases eastward. |
|
slot |
Sets the value of the target azimuth property.
| newValue | Azimuth in radians, 0 is south, increases eastward. |
|
slot |
Sets the value of the target azimuth property.
| newValue | Azimuth in radians, 0 is south, increases eastward. |
|
slot |
Sets the value of the target radial coordinate of SA A.
| newValue | Radial coordinate of Sensor Arm A |
|
slot |
Sets the value of the target radial coordinate of SA B.
| newValue | Radial coordinate of Sensor Arm B |
|
slot |
Sets the value of the current radial coordinate of SA C.
| newValue | Radial coordinate of Sensor Arm C |
|
signal |
Indicates that the target azimuth value has changed.
| newValue | New value for the target azimuth in radians, 0 is south, increases eastward. |
|
signal |
Indicates that the target azimuth value has changed.
| newValue | New value for the target azimuth in radians, 0 is south, increases eastward. |
|
signal |
Indicates that the target azimuth value has changed.
| newValue | New value for the target azimuth in radians, 0 is south, increases eastward. |
|
signal |
Indicates that the target radial value has changed.
| newValue | New value for the target radial coordinate of Sensor Arm A. |
|
signal |
Indicates that the target radial value has changed.
| newValue | New value for the target radial coordinate of Sensor Arm B. |
|
signal |
Indicates that the target radial value has changed.
| newValue | New value for the target radial coordinate of Sensor Arm C. |
|
protected |
Updates Sensor Box color and letter.
| roleName | String variable used to determine whether the Sensor Box indicates target or current position |
| isEnable | Bool variable waying if the widget is enabled or not |
| currentPen | Reference to QPen object which is used to draw Sensor Arms and labels. Its color has to be updated with the color of the SensorBox |
| sbName | reference to QString variable that holds a letter that identifies Sensor Box (A, B or C) |
|
readwrite |
Science field radius in A1/B1 configuration.
|
readwrite |
Beta angle which creates a warning zone to signalize 2 SAs are too close each other.
2 SAs collide when alpha = 50 degrees. When an angle between 2 SAs is alpha + beta, a warning is triggered.
|
readwrite |
Current configuration of the PFS.
|
readwrite |
Azimuth coordinate of the current position in radians.
|
readwrite |
Azimuth coordinate of the current position in radians.
|
readwrite |
Azimuth coordinate of the current position in radians.
|
readwrite |
Radial coordinate of the current position in radians.
|
readwrite |
Azimuth coordinate of the current position in radians.
|
readwrite |
Azimuth coordinate of the current position in radians.
|
readwrite |
Radius of the PFS plane.
|
readwrite |
The Sensor Box that has a priority over other SBs.
|
readwrite |
Azimuth coordinate of the target position in radians.
|
readwrite |
X coordinate of Sensor Arm B target position.
|
readwrite |
X coordinate of Sensor Arm C target position.
|
readwrite |
Radial coordinate of the target position in radians.
|
readwrite |
Y coordinate of Sensor Arm B target position.
|
readwrite |
Y coordinate of Sensor Arm C target position.