cut 3.3.0
Loading...
Searching...
No Matches
QePreFocalStation Class Reference

QePreFocalStation widget. More...

#include <CutWidgets.h>

Inheritance diagram for QePreFocalStation:
QeRadialItemPlot taurus.taurusprefocalstation.TaurusPreFocalStation

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 &currentPen, 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.
 

Detailed Description

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

Constructor & Destructor Documentation

◆ QePreFocalStation()

QePreFocalStation::QePreFocalStation ( QWidget * parent = Q_NULLPTR)
explicit

Constructor that is used to set a parent relationship with.

Parameters
parentQWidget used as parent for this QePreFocalStation.

Member Function Documentation

◆ a1b1ScienceFieldRadiusChanged

void QePreFocalStation::a1b1ScienceFieldRadiusChanged ( double newValue)
signal

Indicates that A1/B1 Science Field Radius has changed.

Parameters
newValueNew value for the A1/B1 Science Field Radius

◆ betaWarningAngleChanged

void QePreFocalStation::betaWarningAngleChanged ( double newValue)
signal

Indicates that warning angle has changed.

Parameters
newValueNew value beat warning angle

◆ calculateColor()

QColor QePreFocalStation::calculateColor ( QColor baseColor,
Role roleName )
protected

Calculates target color and current color when the widget is disabled.

Parameters
baseColorColor based on which the output is calculated (Current color)
roleNameif Role::TARGET, the target color is returned

◆ changePFSSide

void QePreFocalStation::changePFSSide ( bool doReverse)
slot

Helper method to change the PFS widget view to PFS A or PFS B.

Returns
current configuration as Configuration enum class object

◆ checkForCollisions()

QePreFocalStation::PositionCheck QePreFocalStation::checkForCollisions ( ElementName elementName)
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.

Parameters
elementNameEnum value relating to SA that is currently checked
Returns
PositionCheck Enum value naming current position check (OK, TOOCLOSE, COLLISION)

◆ currentConfigurationChanged

void QePreFocalStation::currentConfigurationChanged ( Configuration newConfiguration)
signal

Indicates that the current configuration has changed.

Parameters
newConfigurationNewly set configuration

◆ currentSAAzChangedA

void QePreFocalStation::currentSAAzChangedA ( double newValue)
signal

Indicates that the current azimuth value has changed.

Parameters
newValueNew value for the current azimuth in radians, 0 is south, increases eastward.

◆ currentSAAzChangedB

void QePreFocalStation::currentSAAzChangedB ( double newValue)
signal

Indicates that the current azimuth value has changed.

Parameters
newValueNew value for the current azimuth in radians, 0 is south, increases eastward.

◆ currentSAAzChangedC

void QePreFocalStation::currentSAAzChangedC ( double newValue)
signal

Indicates that the current azimuth value has changed.

Parameters
newValueNew value for the current azimuth in radians, 0 is south, increases eastward.

◆ currentSARadialChangedA

void QePreFocalStation::currentSARadialChangedA ( double newValue)
signal

Indicates that the current radial value has changed.

Parameters
newValueNew value for the current radial coordinate of Sensor Arm A.

◆ currentSARadialChangedB

void QePreFocalStation::currentSARadialChangedB ( double newValue)
signal

Indicates that the current radial value has changed.

Parameters
newValueNew value for the current radial coordinate of Sensor Arm B.

◆ currentSARadialChangedC

void QePreFocalStation::currentSARadialChangedC ( double newValue)
signal

Indicates that the current radial value has changed.

Parameters
newValueNew value for the current radial coordinate of Sensor Arm C.

◆ drawM6ArmShadow()

void QePreFocalStation::drawM6ArmShadow ( QPainter * painter,
Configuration config )
protected

Draws mirror arm shadow (when A3/B3 configuration)

Parameters
painterQPainter in which the shadow is drawn.
configConfiguration based on which shadow shape is drawn

◆ getA1B1ScienceFieldRadius()

double QePreFocalStation::getA1B1ScienceFieldRadius ( )

Gets the A1/B1 Science Field Radius.

Returns
A1/B1 Science Field Radius

◆ getBetaWarningAngle()

double QePreFocalStation::getBetaWarningAngle ( )

Gets the beta angle used to define warning zone.

Returns
Beta angle

◆ getCurrentBoxPosA()

QPointF QePreFocalStation::getCurrentBoxPosA ( )

Gets the position of the Sensor Box A (for testing purposes)

Returns
point (of QPointF type) that relates to current Sensor Box A position

◆ getCurrentBoxPosB()

QPointF QePreFocalStation::getCurrentBoxPosB ( )

Gets the position of the Sensor Box B (for testing purposes)

Returns
point (of QPointF type) that relates to current Sensor Box B position

◆ getCurrentBoxPosC()

QPointF QePreFocalStation::getCurrentBoxPosC ( )

Gets the position of the Sensor Box C (for testing purposes)

Returns
point (of QPointF type) that relates to current Sensor Box C position

◆ getCurrentConfiguration()

Configuration QePreFocalStation::getCurrentConfiguration ( )

Gets the current configuration of the Pre FocalStation.

Returns
current configuration as Configuration enum class object

◆ getCurrentSAAzA()

double QePreFocalStation::getCurrentSAAzA ( )

Gets the value of the current azimuth coordinate the SA A has.

Returns
current azimuth in radians, 0 is north, increases clockwise.

◆ getCurrentSAAzB()

double QePreFocalStation::getCurrentSAAzB ( )

Gets the value of the current azimuth the SA B has.

Returns
current azimuth in radians, 0 is north, increases clockwise.

◆ getCurrentSAAzC()

double QePreFocalStation::getCurrentSAAzC ( )

Gets the value of the current azimuth the SA C has.

Returns
current azimuth in radians, 0 is north, increases clockwise.

◆ getCurrentSARadialA()

double QePreFocalStation::getCurrentSARadialA ( )

Gets the value of the current radial coordinate the SA A has.

Returns
current radial of Sensor Arm A

◆ getCurrentSARadialB()

double QePreFocalStation::getCurrentSARadialB ( )

Gets the value of the current radial coordinate the SA B has.

Returns
current radial of Sensor Arm B

◆ getCurrentSARadialC()

double QePreFocalStation::getCurrentSARadialC ( )

Gets the value of the current radial coordinate the SA C has.

Returns
current radial of Sensor Arm C

◆ getPfsRadius()

double QePreFocalStation::getPfsRadius ( )

Gets the of PFS plane.

Returns
PFS radius

◆ getPrioritySB()

ElementName QePreFocalStation::getPrioritySB ( )

Gets the priority SB name.

Returns
Priority SB name

◆ getTargetBoxPosA()

QPointF QePreFocalStation::getTargetBoxPosA ( )

Gets target position of the Sensor Box A (for testing purposes)

Returns
point (of QPointF type) that relates to target Sensor Box A position

◆ getTargetBoxPosB()

QPointF QePreFocalStation::getTargetBoxPosB ( )

Gets target position of the Sensor Box B (for testing purposes)

Returns
point (of QPointF type) that relates to target Sensor Box B position

◆ getTargetBoxPosC()

QPointF QePreFocalStation::getTargetBoxPosC ( )

Gets target position of the Sensor Box C (for testing purposes)

Returns
point (of QPointF type) that relates to target Sensor Box C position

◆ getTargetSAAzA()

double QePreFocalStation::getTargetSAAzA ( )

Gets the value of the target azimuth the SA A has.

Returns
target azimuth in radians, 0 is north, increases clockwise.

◆ getTargetSAAzB()

double QePreFocalStation::getTargetSAAzB ( )

Gets the value of the target azimuth the SA B has.

Returns
target azimuth in radians, 0 is north, increases clockwise.

◆ getTargetSAAzC()

double QePreFocalStation::getTargetSAAzC ( )

Gets the value of the target azimuth the SA C has.

Returns
target azimuth in radians, 0 is north, increases clockwise.

◆ getTargetSARadialA()

double QePreFocalStation::getTargetSARadialA ( )

Gets the value of the target radial coordinate the SA A has.

Returns
target radial of Sensor Arm A

◆ getTargetSARadialB()

double QePreFocalStation::getTargetSARadialB ( )

Gets the value of the target radial coordinate the SA B has.

Returns
target radial of Sensor Arm B

◆ getTargetSARadialC()

double QePreFocalStation::getTargetSARadialC ( )

Gets the value of the target radial coordinate the SA C has.

Returns
target radial of Sensor Arm C

◆ paintDartBoard()

void QePreFocalStation::paintDartBoard ( QPainter * painter)
overrideprotectedvirtual

Uses a QPainter to draw the dartboard (mostly static) background.

Parameters
painterQPainter used to perform the raster instructions on.

Reimplemented from QeRadialItemPlot.

◆ paintEvent()

void QePreFocalStation::paintEvent ( QPaintEvent * event)
overrideprotected

Overrides QWidget::paintEvent to implement its own rendering instructions.

This method implements most of the rendering logic.

Parameters
eventQPaintEvent, ignored.

◆ paintSA()

void QePreFocalStation::paintSA ( QPainter * painter,
QPointF * positionPoint,
double azimuth,
double radial,
Role roleName,
ElementName sbName )
protected

Paints Sensor Arm according to given coordinates.

Parameters
painterQPainter in which the background was drawn.
positionPointQPointF which points to the tip of Sensor Arm. Necessary for testing.
azimuthAzimuth coordinate of the Sensor Arm
radialRadial coordinate of the Sensor Arm (counted from 0,0 point which is the centre of Focal Surface)
roleNameString variable used to determine whether the Sensor Box indicates target or current position
sbNameName of the Sensor Box

◆ pfsRadiusChanged

void QePreFocalStation::pfsRadiusChanged ( double newValue)
signal

Indicates that PFS radius has changed.

Parameters
newValueNew value of PFS radius

◆ prioritySBChanged

void QePreFocalStation::prioritySBChanged ( ElementName newValue)
signal

Indicates that priority SB has changed.

Parameters
newValueNew value of priority SB

◆ setA1B1ScienceFieldRadius

void QePreFocalStation::setA1B1ScienceFieldRadius ( double newValue)
slot

Sets the value of the A1/B1 Science Field Radius property.

Parameters
newValueNew value of the radius

◆ setBetaWarningAngle

void QePreFocalStation::setBetaWarningAngle ( double newValue)
slot

Sets the value of the beta warning angle property.

Parameters
newValueNew value of the angle

◆ setCurrentConfiguration

void QePreFocalStation::setCurrentConfiguration ( Configuration newConfiguration)
slot

Sets the value of the current configuration property.

Parameters
newConfigurationAzimuth in radians, 0 is south, increases eastward.

◆ setCurrentConfigurationInt

void QePreFocalStation::setCurrentConfigurationInt ( int configuration)
slot

Convinience method to allow setting PFS configuration using its integer representation.

Parameters
unitsConfiguration as integer. See Configuration enumerations for details on integer values.

◆ setCurrentSAAzA

void QePreFocalStation::setCurrentSAAzA ( double newValue)
slot

Sets the value of the current azimuth property.

Parameters
newValueAzimuth in radians, 0 is south, increases eastward.

◆ setCurrentSAAzB

void QePreFocalStation::setCurrentSAAzB ( double newValue)
slot

Sets the value of the current azimuth property.

Parameters
newValueAzimuth in radians, 0 is south, increases eastward.

◆ setCurrentSAAzC

void QePreFocalStation::setCurrentSAAzC ( double newValue)
slot

Sets the value of the current azimuth property.

Parameters
newValueAzimuth in radians, 0 is south, increases eastward.

◆ setCurrentSARadialA

void QePreFocalStation::setCurrentSARadialA ( double newValue)
slot

Sets the value of the current radial coordinate of SA A.

Parameters
newValueRadial coordinate of Sensor Arm A

◆ setCurrentSARadialB

void QePreFocalStation::setCurrentSARadialB ( double newValue)
slot

Sets the value of the current radial coordinate of SA B.

Parameters
newValueRadial coordinate of Sensor Arm B

◆ setCurrentSARadialC

void QePreFocalStation::setCurrentSARadialC ( double newValue)
slot

Sets the value of the current radial coordinate of SA C.

Parameters
newValueRadial coordinate of Sensor Arm C

◆ setPfsRadius

void QePreFocalStation::setPfsRadius ( double newValue)
slot

Sets the value of PFS radius.

Parameters
newValueNew value of PFS radius

◆ setPrioritySB

void QePreFocalStation::setPrioritySB ( ElementName newValue)
slot

Sets the priority Sensor Box.

Parameters
newValueNew enum value relating to priority Sensor Box

◆ setTargetSAAzA

void QePreFocalStation::setTargetSAAzA ( double newValue)
slot

Sets the value of the target azimuth property.

Parameters
newValueAzimuth in radians, 0 is south, increases eastward.

◆ setTargetSAAzB

void QePreFocalStation::setTargetSAAzB ( double newValue)
slot

Sets the value of the target azimuth property.

Parameters
newValueAzimuth in radians, 0 is south, increases eastward.

◆ setTargetSAAzC

void QePreFocalStation::setTargetSAAzC ( double newValue)
slot

Sets the value of the target azimuth property.

Parameters
newValueAzimuth in radians, 0 is south, increases eastward.

◆ setTargetSARadialA

void QePreFocalStation::setTargetSARadialA ( double newValue)
slot

Sets the value of the target radial coordinate of SA A.

Parameters
newValueRadial coordinate of Sensor Arm A

◆ setTargetSARadialB

void QePreFocalStation::setTargetSARadialB ( double newValue)
slot

Sets the value of the target radial coordinate of SA B.

Parameters
newValueRadial coordinate of Sensor Arm B

◆ setTargetSARadialC

void QePreFocalStation::setTargetSARadialC ( double newValue)
slot

Sets the value of the current radial coordinate of SA C.

Parameters
newValueRadial coordinate of Sensor Arm C

◆ targetSAAzChangedA

void QePreFocalStation::targetSAAzChangedA ( double newValue)
signal

Indicates that the target azimuth value has changed.

Parameters
newValueNew value for the target azimuth in radians, 0 is south, increases eastward.

◆ targetSAAzChangedB

void QePreFocalStation::targetSAAzChangedB ( double newValue)
signal

Indicates that the target azimuth value has changed.

Parameters
newValueNew value for the target azimuth in radians, 0 is south, increases eastward.

◆ targetSAAzChangedC

void QePreFocalStation::targetSAAzChangedC ( double newValue)
signal

Indicates that the target azimuth value has changed.

Parameters
newValueNew value for the target azimuth in radians, 0 is south, increases eastward.

◆ targetSARadialChangedA

void QePreFocalStation::targetSARadialChangedA ( double newValue)
signal

Indicates that the target radial value has changed.

Parameters
newValueNew value for the target radial coordinate of Sensor Arm A.

◆ targetSARadialChangedB

void QePreFocalStation::targetSARadialChangedB ( double newValue)
signal

Indicates that the target radial value has changed.

Parameters
newValueNew value for the target radial coordinate of Sensor Arm B.

◆ targetSARadialChangedC

void QePreFocalStation::targetSARadialChangedC ( double newValue)
signal

Indicates that the target radial value has changed.

Parameters
newValueNew value for the target radial coordinate of Sensor Arm C.

◆ updateSBColorAndText()

void QePreFocalStation::updateSBColorAndText ( Role roleName,
QColor elementColor,
QPen & currentPen,
QString & sbName )
protected

Updates Sensor Box color and letter.

Parameters
roleNameString variable used to determine whether the Sensor Box indicates target or current position
isEnableBool variable waying if the widget is enabled or not
currentPenReference to QPen object which is used to draw Sensor Arms and labels. Its color has to be updated with the color of the SensorBox
sbNamereference to QString variable that holds a letter that identifies Sensor Box (A, B or C)

Property Documentation

◆ a1b1ScienceFieldRadius

double QePreFocalStation::a1b1ScienceFieldRadius
readwrite

Science field radius in A1/B1 configuration.

Accessors:
getA1B1ScienceFieldRadius(), setA1B1ScienceFieldRadius(double)

◆ betaWarningAngle

double QePreFocalStation::betaWarningAngle
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.

Accessors:
getBetaWarningAngle(), setBetaWarningAngle(double)

◆ currentConfiguration

Configuration QePreFocalStation::currentConfiguration
readwrite

Current configuration of the PFS.

Accessors:
getCurrentConfiguration(), setCurrentConfiguration(Configuration)

◆ currentSAAz_A

double QePreFocalStation::currentSAAz_A
readwrite

Azimuth coordinate of the current position in radians.

Accessors:
getCurrentSAAzA(), setCurrentSAAzA(double)

◆ currentSAAz_B

double QePreFocalStation::currentSAAz_B
readwrite

Azimuth coordinate of the current position in radians.

Accessors:
getCurrentSAAzB(), setCurrentSAAzB(double)

◆ currentSAAz_C

double QePreFocalStation::currentSAAz_C
readwrite

Azimuth coordinate of the current position in radians.

Accessors:
getCurrentSAAzC(), setCurrentSAAzC(double)

◆ currentSARadial_A

double QePreFocalStation::currentSARadial_A
readwrite

Radial coordinate of the current position in radians.

Accessors:
getCurrentSAAzA(), setCurrentSAAzA(double)

◆ currentSARadial_B

double QePreFocalStation::currentSARadial_B
readwrite

Azimuth coordinate of the current position in radians.

Accessors:
getCurrentSAAzB(), setCurrentSAAzB(double)

◆ currentSARadial_C

double QePreFocalStation::currentSARadial_C
readwrite

Azimuth coordinate of the current position in radians.

Accessors:
getCurrentSAAzC(), setCurrentSAAzC(double)

◆ pfsRadius

double QePreFocalStation::pfsRadius
readwrite

Radius of the PFS plane.

Accessors:
getPfsRadius(), setPfsRadius(double)

◆ prioritySB

ElementName QePreFocalStation::prioritySB
readwrite

The Sensor Box that has a priority over other SBs.

Accessors:
getPrioritySB(), setPrioritySB(ElementName)

◆ targetSAAz_A

double QePreFocalStation::targetSAAz_A
readwrite

Azimuth coordinate of the target position in radians.

Accessors:
getTargetSAAzA(), setTargetSAAzA(double)

◆ targetSAAz_B

double QePreFocalStation::targetSAAz_B
readwrite

X coordinate of Sensor Arm B target position.

Accessors:
getTargetSAAzB(), setTargetSAAzB(double)

◆ targetSAAz_C

double QePreFocalStation::targetSAAz_C
readwrite

X coordinate of Sensor Arm C target position.

Accessors:
getTargetSAAzC(), setTargetSAAzC(double)

◆ targetSARadial_A

double QePreFocalStation::targetSARadial_A
readwrite

Radial coordinate of the target position in radians.

Accessors:
getTargetSARadialA(), setTargetSARadialA(double)

◆ targetSARadial_B

double QePreFocalStation::targetSARadial_B
readwrite

Y coordinate of Sensor Arm B target position.

Accessors:
getTargetSARadialB(), setTargetSARadialB(double)

◆ targetSARadial_C

double QePreFocalStation::targetSARadial_C
readwrite

Y coordinate of Sensor Arm C target position.

Accessors:
getTargetSARadialC(), setTargetSARadialC(double)

The documentation for this class was generated from the following files: