public class GPAltitudeDetector extends GPTriggeredEventDetectorAbstract implements GPPatriusWithObjects<CustomEventDetector>
Index | Class | Item | Constraint |
0 | GLabelWithIndicator | label | 0, 0 => "newline , gapleft 0 , split 2" 0, 1 => (null) |
1 | GComboBoxWithLabel | comboBoxAction | 1, 0, 0 =>
"newline , gapleft 30 , split 2" 1, 0, 1 => (null) 1, 1 => (null) |
2 | GCheckBox | checkBoxExpertConfig | "newline , gapleft 30 , split 2" |
3 | GEntryReal | entryRealMaxCheck | 3, 0, 0 =>
"newline , gapleft 30 , split 2" 3, 0, 1 => (null) 3, 1 => "split 2" 3, 2 => (null) |
4 | GEntryReal | entryRealThreshold | 4, 0, 0 =>
"newline , gapleft 30 , split 2" 4, 0, 1 => (null) 4, 1 => "split 2" 4, 2 => (null) |
5 | GEntryReal | entryRealAltitude | 5, 0, 0 =>
"newline , gapleft 30 , split 2" 5, 0, 1 => (null) 5, 1 => "split 2" 5, 2 => (null) |
6 | GPOneAxisEllipsoid | oneAxisEllipsoid | "newline" (see table below) |
Index | Class | Item | Constraint |
6, 0 | GLabelWithIndicator | label | 6, 0, 0 =>
"newline , gapleft 30 , split 2" 6, 0, 1 => (null) |
6, 1 | GPEntryEarthEqRad | entryRealEqRadius | "newline" (see table below) |
6, 2 | GPEntryEarthFlat | entryFlatness | "newline" (see table below) |
6, 3 | GPFrame | bodyFrame | "newline" (see table below) |
6, 4 | GEntryString | entryStringName | 6, 4, 0, 0 =>
"newline , gapleft 60 , split 2" 6, 4, 0, 1 => (null) 6, 4, 1 => (null) |
Index | Class | Item | Constraint |
6, 1, 0 | GLabelWithIndicator | label | 6, 1, 0,
0 => "newline , gapleft 60 , split 2" 6, 1, 0, 1 => (null) |
6, 1, 1 | GRealField | textField | (null) |
6, 1, 2 | GPopupList | units | (null) |
6, 1, 3 | GConstantSelector | constantSelector | "newline" (see table below) |
Index | Class | Item | Constraint |
6, 1, 3, 0 | GButton | button | "split 3" |
6, 1, 3, 1 | GConstantSelelectorDialog | dialog | "newline , pushx , pushy , growx , growy" (see table below) |
Index | Class | Item | Constraint |
6, 1, 3, 1, 0 | GComboBoxWithLabel | combobox | 6, 1, 3, 1,
0, 0, 0 => "split 3" 6, 1, 3, 1, 0, 0, 1 => (null) 6, 1, 3, 1, 0, 1 => (null) |
6, 1, 3, 1, 1 | GLabel | label | "newline , split 3" |
6, 1, 3, 1, 2 | GLabel | valueLabel | (null) |
6, 1, 3, 1, 3 | GLabel | unitLabel | (null) |
6, 1, 3, 1, 4 | GButton | selectButton | "newline , pushx , pushy" |
6, 1, 3, 1, 5 | GButton | cancelButton | (null) |
Index | Class | Item | Constraint |
6, 2, 0 | GLabelWithIndicator | label | 6, 2, 0, 0
=> "newline , gapleft 80 , split 2" 6, 2, 0, 1 => (null) |
6, 2, 1 | GRealField | textField | (null) |
6, 2, 2 | GConstantSelector | constantSelector | "newline" (see table below) |
6, 2, 3 | GChoice | choiceFlattening | 6, 2, 3, 0, 0 =>
"newline , gapleft 60 , split 2" 6, 2, 3, 0, 1 => (null) 6, 2, 3, 1 => "split" |
6, 2, 4 | GEntryReal | entryRealFlatteningInverse | 6, 2, 4, 0, 0 =>
"newline , gapleft 80 , split 2" 6, 2, 4, 0, 1 => (null) 6, 2, 4, 1 => "gapleft 74" |
6, 2, 5 | GEntryString | infFieldDirect | 6, 2, 5, 0, 0 =>
"newline , gapleft 80 , split 2" 6, 2, 5, 0, 1 => (null) 6, 2, 5, 1 => (null) |
6, 2, 6 | GEntryString | infFieldInverse | 6, 2, 6, 0,
0 => "newline , gapleft 80 , split 2" 6, 2, 6, 0, 1 => (null) 6, 2, 6, 1 => "gapleft 74" |
Index | Class | Item | Constraint |
6, 2, 2, 0 | GButton | button | "split 2" |
6, 2, 2, 1 | GConstantSelelectorDialog | dialog | "newline , pushx , pushy , growx , growy" (see table below) |
Index | Class | Item | Constraint |
6, 2, 2, 1, 0 | GComboBoxWithLabel | combobox | 6, 2, 2, 1,
0, 0, 0 => "split 3" 6, 2, 2, 1, 0, 0, 1 => (null) 6, 2, 2, 1, 0, 1 => (null) |
6, 2, 2, 1, 1 | GLabel | label | "newline , split 3" |
6, 2, 2, 1, 2 | GLabel | valueLabel | (null) |
6, 2, 2, 1, 3 | GLabel | unitLabel | (null) |
6, 2, 2, 1, 4 | GButton | selectButton | "newline , pushx , pushy" |
6, 2, 2, 1, 5 | GButton | cancelButton | (null) |
Index | Class | Item | Constraint |
6, 3, 0 | GComboBoxWithLabel | comboBoxRefFrame | 6, 3,
0, 0, 0 => "newline , gapleft 60 , split 2" 6, 3, 0, 0, 1 => (null) 6, 3, 0, 1 => "split 4" |
6, 3, 1 | GCheckBoxWithIndicator | checkBoxEOP | 6,
3, 1, 0, 0 => (null) 6, 3, 1, 0, 1 => (null) 6, 3, 1, 1 => (null) |
6, 3, 2 | GPAbsoluteDate | absoluteDateH0 | "newline" (see table below) |
6, 3, 3 | GEntryReal | entryRealN | 6, 3, 3, 0, 0 =>
"newline , gapleft 80 , split 2" 6, 3, 3, 0, 1 => (null) 6, 3, 3, 1 => "split 2" 6, 3, 3, 2 => (null) |
6, 3, 4 | GEntryReal | entryRealLon | 6, 3, 4, 0, 0 =>
"newline , gapleft 80 , split 2" 6, 3, 4, 0, 1 => (null) 6, 3, 4, 1 => "split 2" 6, 3, 4, 2 => (null) |
Index | Class | Item | Constraint |
6, 3, 2, 0 | GLabelWithIndicator | label | 6, 3, 2,
0, 0 => "newline , gapleft 80 , split 2" 6, 3, 2, 0, 1 => (null) |
6, 3, 2, 1 | GPDateField | dateField | "spanx 2 , split 5" |
6, 3, 2, 2 | GPopupListWithLabel | popupListTimeScales | 6, 3, 2, 2, 0, 0 =>
"split 4" 6, 3, 2, 2, 0, 1 => (null) 6, 3, 2, 2, 1 => (null) |
6, 3, 2, 3 | GButton | buttonRelativeDate | (null) |
Modifier and Type | Class and Description |
---|---|
static class |
GPAltitudeDetector.AltitudeDetectionChoice
Choices for altitude events detection.
|
fr.cnes.genius.main.GComponent.CopyPasteOperation, fr.cnes.genius.main.GComponent.DisplayIndicatorStatus, fr.cnes.genius.main.GComponent.ItemType, fr.cnes.genius.main.GComponent.Operation
GPPatriusWithObjects.ArgsChecker
ACTION, DETECTOR_ERROR
Constructor and Description |
---|
GPAltitudeDetector()
Empty constructor.
|
GPAltitudeDetector(String widgetId)
Constructor.
|
GPAltitudeDetector(String label,
CustomAltitudeDetector altitudeDetector,
fr.cnes.sirius.patrius.propagation.events.EventDetector.Action... actionsToShow)
Constructor.
|
GPAltitudeDetector(String label,
fr.cnes.sirius.patrius.propagation.events.EventDetector.Action... actionsToShow)
Constructor without default altitude detector.
|
GPAltitudeDetector(String widgetId,
String label,
CustomAltitudeDetector altitudeDetector,
fr.cnes.sirius.patrius.propagation.events.EventDetector.Action... actionsToShow)
Constructor.
|
GPAltitudeDetector(String widgetId,
String label,
fr.cnes.sirius.patrius.propagation.events.EventDetector.Action... actionsToShow)
Constructor without default altitude detector.
|
Modifier and Type | Method and Description |
---|---|
void |
after(fr.cnes.genius.main.GEvent e) |
void |
before(fr.cnes.genius.main.GEvent e) |
void |
clear() |
void |
display() |
void |
generic() |
fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid |
getBodyShape()
Getter for the OneAxisEllipsoid defining the central ellipsoid for the event
detector.
|
fr.cnes.genius.highLevel.GChoice |
getGChoiceAltitudeType()
Getter for the Gchoice defining the type of altitude detection, ascending, descending or
both.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealAltitude()
Getter for the GEntryReal defining the target altitude of the event detector.
|
GPOneAxisEllipsoid |
getGPOneAxisEllipsoid()
Getter for the GPOneAxisEllipsoid defining the central ellipsoid for the event detector.
|
CustomEventDetector |
getPatriusObject()
Returns the PATRIUS object associated to a GENOPUS widget.
|
CustomEventDetector |
getPatriusObject(Object... args)
Returns the PATRIUS object associated to a GENOPUS widget.
|
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
protected GPItemType |
getXMLTag()
Getter for the tag to be used int the XML configuration file.
|
boolean |
isModified() |
boolean |
isNativeEventDetector(CustomEventDetector eventDetector)
Check if a given event detector is defined in the native type of event detector of the widget.
|
void |
setBodyShape(fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid ellipsoid)
Setter for the OneAxisEllipsoid defining the central ellipsoid for the event
detector.
|
void |
setBodyShapeWidgetVisible(boolean b)
Method to force the GPOneAxisEllipsoid widget to be visible/invisible.
|
void |
setConstraint(int labelGap,
int subWidgetGap)
Setter for the constraints of the Event Detector widget.
|
void |
setDefaultEventDetector(CustomEventDetector defaultEventDetector)
Setter for the default event detector.
|
void |
setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
Controls the display of the isModified indicator of all sub-widgets.
|
void |
setEnabled(boolean b) |
void |
setEventDetector(CustomEventDetector eventDetector)
Setter for the event detector.
|
void |
setSavedEventDetector(CustomEventDetector savedEventDetector)
Setter for the reference event detector.
|
void |
setWidgetId(String widgetId) |
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus) |
buildWrapper, getGEntryIntTriggerAt, getGEntryIntTriggerFrom, getGEntryIntTriggerStep, getGEntryIntTriggerTo, getTriggerFrom, getTriggerStep, getTriggerTo, setAbstractClassDefaultValue, setAbstractClassSavedValue, setAbstractClassValue
attachCopyPasteMenu, getAvailableActions, getGCheckBoxExpertConfig, getGComboBoxAction, getGEntryRealMaxCheck, getGEntryRealThreshold, getGLabel, getSelectedAction, initMaxCheckAndThresholdGEntryReals, isEnabled, read, setAvailableActions, setDefaultConstraint, setDisplayExpertConfig, updateIsModifiedIndicator, updateStatus, write
activateConstraintsByType, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getComponent, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isForcedStatus, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, processMouseWheelEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDefaultConstraints, setDisplayIsModifiedIndicator, setElement, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidth, setWindowBusyCursor, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public GPAltitudeDetector()
public GPAltitudeDetector(String widgetId)
widgetId
- widget identifier, if null an identifier will be automatically created.public GPAltitudeDetector(String label, fr.cnes.sirius.patrius.propagation.events.EventDetector.Action... actionsToShow)
label
- text to display in the label.actionsToShow
- list of actions to show in the widget. If null or empty all actions will
be available.public GPAltitudeDetector(String label, CustomAltitudeDetector altitudeDetector, fr.cnes.sirius.patrius.propagation.events.EventDetector.Action... actionsToShow)
label
- text to display in the label.altitudeDetector
- altitude detector to set.actionsToShow
- list of actions to show in the widget. If null or empty all actions will
be available.public GPAltitudeDetector(String widgetId, String label, fr.cnes.sirius.patrius.propagation.events.EventDetector.Action... actionsToShow)
widgetId
- widget identifier, if null an identifier will be automatically created.label
- text to display in the label.actionsToShow
- list of actions to show in the widget. If null or empty all actions will
be available.public GPAltitudeDetector(String widgetId, String label, CustomAltitudeDetector altitudeDetector, fr.cnes.sirius.patrius.propagation.events.EventDetector.Action... actionsToShow)
widgetId
- widget identifier, if null an identifier will be automatically created.label
- text to display in the label.altitudeDetector
- altitude detector to set.actionsToShow
- list of actions to show in the widget. If null or empty all actions will
be available.public void setWidgetId(String widgetId)
setWidgetId
in class GPTriggeredEventDetectorAbstract
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealAltitude()
public fr.cnes.genius.highLevel.GChoice getGChoiceAltitudeType()
public GPOneAxisEllipsoid getGPOneAxisEllipsoid()
public void setBodyShapeWidgetVisible(boolean b)
b
- if true the widget will be visible, if false it will not.public void setBodyShape(fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid ellipsoid) throws GPEventException, fr.cnes.genius.exception.GArithmeticException
ellipsoid
- the OneAxisEllipsoid defining the central body shape for the event
detector.GPEventException
- if frame contained in the ellipsoid is not available in the
GPOneAxisEllipsoid frame selectorfr.cnes.genius.exception.GArithmeticException
- if eq. radius or flatness in ellipsoid are NaN.public fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid getBodyShape() throws GPEventException
GPEventException
- if EOP data is not initialized.public CustomEventDetector getPatriusObject() throws GPEventException
getPatriusObject
in interface GPPatrius<CustomEventDetector>
getPatriusObject
in class GPEventDetectorAbstract
GPEventException
- if EOP data is not initializedpublic CustomEventDetector getPatriusObject(Object... args) throws fr.cnes.genius.exception.GException
getPatriusObject
in interface GPPatriusWithObjects<CustomEventDetector>
args
- The parameters are 0: OneAxisEllipsoid.fr.cnes.genius.exception.GException
- if the PATRIUS object cannot be created from the widget data.public void setEventDetector(CustomEventDetector eventDetector) throws GPEventException, fr.cnes.genius.exception.GArithmeticException
setEventDetector
in class GPEventDetectorAbstract
eventDetector
- event detector to set.GPEventException
- if the given event detector is not compatible with the widget. If
body shape defined in given altitude detector is not a one axis ellipsoid or if
ellipsoid's frame is not available in the frame selector.fr.cnes.genius.exception.GArithmeticException
- if altitude in eventDetector or eq. radius or flatness in
eventDetector ellipsoid are NaN.public void setDefaultEventDetector(CustomEventDetector defaultEventDetector) throws GPEventException, fr.cnes.genius.exception.GArithmeticException
setDefaultEventDetector
in class GPEventDetectorAbstract
defaultEventDetector
- default event detector to set.GPEventException
- If body shape defined in given altitude detector is not a one axis
ellipsoid or if ellipsoid's frame is not available in the frame selector.fr.cnes.genius.exception.GArithmeticException
- if altitude in defaultEventDetector or eq. radius or flatness in
defaultEventDetector ellipsoid are NaN.public void setSavedEventDetector(CustomEventDetector savedEventDetector) throws GPEventException, fr.cnes.genius.exception.GArithmeticException
setSavedEventDetector
in class GPEventDetectorAbstract
savedEventDetector
- reference event detector to set.GPEventException
- If body shape defined in given altitude detector is not a one axis
ellipsoid or if ellipsoid's frame is not available in the frame selector.fr.cnes.genius.exception.GArithmeticException
- if altitude in savedEventDetector or eq. radius or flatness in
savedEventDetector ellipsoid are NaN.public void setConstraint(int labelGap, int subWidgetGap)
setConstraint
in class GPTriggeredEventDetectorAbstract
labelGap
- left gap from panel border to display the label of the event.subWidgetGap
- left gap from panel border to display the sub-widgets of the event.public void setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
setDisplayIsModifiedIndicatorAll
in class GPTriggeredEventDetectorAbstract
displayIndicatorStatus
- if Always the modifiedStatusIndicator is always shown, if Never the modifiedStatusIndicator
is always shown, if Automatic the modifiedStatusIndicator is shown as needed.public boolean isNativeEventDetector(CustomEventDetector eventDetector)
isNativeEventDetector
in class GPEventDetectorAbstract
eventDetector
- the event detector to be checked.public void setEnabled(boolean b)
setEnabled
in class GPTriggeredEventDetectorAbstract
public boolean isModified()
isModified
in class GPTriggeredEventDetectorAbstract
public void generic() throws fr.cnes.genius.exception.GException
generic
in class GPTriggeredEventDetectorAbstract
fr.cnes.genius.exception.GException
public void clear() throws fr.cnes.genius.exception.GException
clear
in interface fr.cnes.genius.main.GClear
clear
in class GPEventDetectorAbstract
fr.cnes.genius.exception.GException
public void display() throws fr.cnes.genius.exception.GException
display
in interface fr.cnes.genius.main.GDisplay
display
in class GPTriggeredEventDetectorAbstract
fr.cnes.genius.exception.GException
public void before(fr.cnes.genius.main.GEvent e)
before
in interface fr.cnes.genius.main.GListener
public void after(fr.cnes.genius.main.GEvent e) throws GPEventException
after
in interface fr.cnes.genius.main.GListener
after
in class GPTriggeredEventDetectorAbstract
GPEventException
protected GPItemType getXMLTag()
getXMLTag
in class GPEventDetectorAbstract
public fr.cnes.genius.main.GComponent getSubComponent(int position) throws fr.cnes.genius.exception.GComponentException
getSubComponent
in class GPTriggeredEventDetectorAbstract
fr.cnes.genius.exception.GComponentException
public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus
in interface fr.cnes.genius.main.GCondensedStatusInterface
updateCondensedStatus
in class GPTriggeredEventDetectorAbstract
Copyright © 2023. All rights reserved.