public abstract class GPAttitudeLawAbstract extends fr.cnes.genius.lowLevel.GContainer implements fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GClear, GPPatrius<fr.cnes.sirius.patrius.attitudes.AttitudeLaw>, fr.cnes.genius.main.GCondensedStatusInterface
| Modifier and Type | Class and Description |
|---|---|
static interface |
GPAttitudeLawAbstract.GPAttitudeLawWithEarthShape
Interface to be implemented by all the types of attitude law requiering the Earth Shape.
|
| Modifier and Type | Field and Description |
|---|---|
static fr.cnes.genius.unit.GUnit[] |
ANGLE_UNITS
Angular units.
|
static fr.cnes.genius.unit.GUnit[] |
ANGULAR_SPEED_UNITS
Angular speed units.
|
protected static int |
SUB_GAP
Subsequent left gap for subwidgets.
|
| Constructor and Description |
|---|
GPAttitudeLawAbstract()
Empty constructor.
|
GPAttitudeLawAbstract(String widgetId,
String label)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
display() |
void |
generic() |
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabelLawName()
Getter for the label name subwidget.
|
fr.cnes.genius.lowLevel.GSeparator |
getGSeparator1()
Getter for the separator subwidget after the law name label.
|
abstract fr.cnes.sirius.patrius.attitudes.AttitudeLaw |
getPatriusObject()
Returns the PATRIUS object associated to a GENOPUS widget.
|
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
boolean |
isEnabled() |
abstract boolean |
isNativeAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw attLaw)
Method to check if an attitude law is an instance of this type.
|
void |
read() |
abstract void |
setAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw attitudeLaw)
Setter from a PATRIUS attitude law.
|
protected void |
setConstraint(int widgetGap)
Setter for the constraints of the widget.
|
abstract void |
setDefaultAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw defaultAttitudeLaw)
Setter of the default value from a PATRIUS attitude law.
|
protected void |
setDefaultConstraints()
Setter for the default constraint of the widget.
|
abstract void |
setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
Controls the display of the isModified indicator of all sub-widgets.
|
void |
setEnabled(boolean flag) |
abstract void |
setSavedAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw savedAttitudeLaw)
Setter of the saved value from a PATRIUS attitude law.
|
void |
setWidgetId(String widgetId) |
protected void |
updateIsModifiedIndicator() |
protected void |
updateStatus()
Update the global status of the widget following the status of its components.
|
void |
write() |
activateConstraintsByType, attachCopyPasteMenu, 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, isModified, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, processMouseWheelEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidth, setWindowBusyCursor, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItempublic static final fr.cnes.genius.unit.GUnit[] ANGLE_UNITS
public static final fr.cnes.genius.unit.GUnit[] ANGULAR_SPEED_UNITS
protected static final int SUB_GAP
public void setWidgetId(String widgetId)
setWidgetId in class fr.cnes.genius.main.GComponentpublic fr.cnes.genius.lowLevel.GSeparator getGSeparator1()
public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabelLawName()
protected void setDefaultConstraints()
setDefaultConstraints in class fr.cnes.genius.main.GComponentprotected void setConstraint(int widgetGap)
widgetGap - left gap from panel border to display the label of the widget.public void display()
throws fr.cnes.genius.exception.GException
display in interface fr.cnes.genius.main.GDisplayfr.cnes.genius.exception.GExceptionpublic void read()
throws fr.cnes.genius.exception.GException
read in interface fr.cnes.genius.main.GReadWritefr.cnes.genius.exception.GExceptionpublic void write()
throws fr.cnes.genius.exception.GException
write in interface fr.cnes.genius.main.GReadWritefr.cnes.genius.exception.GExceptionpublic void generic()
throws fr.cnes.genius.exception.GException
generic in class fr.cnes.genius.lowLevel.GContainerfr.cnes.genius.exception.GExceptionpublic abstract boolean isNativeAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw attLaw)
attLaw - input attitude law.public abstract void setAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw attitudeLaw)
throws GPAttitudeException,
fr.cnes.genius.exception.GArithmeticException
attitudeLaw - to be set in the widgetGPAttitudeException - if the given attitude law is not compatible with the widget.fr.cnes.genius.exception.GArithmeticException - if attitudeLaw contain NaNs.public abstract void setDefaultAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw defaultAttitudeLaw)
throws GPAttitudeException,
fr.cnes.genius.exception.GArithmeticException
defaultAttitudeLaw - to be set as default in the widgetGPAttitudeException - if the given attitude law is not compatible with the widget.fr.cnes.genius.exception.GArithmeticException - if attitudeLaw contain NaNs.public abstract void setSavedAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw savedAttitudeLaw)
throws GPAttitudeException,
fr.cnes.genius.exception.GArithmeticException
savedAttitudeLaw - to be set as saved in the widgetGPAttitudeException - if the given attitude law is not compatible with the widget.fr.cnes.genius.exception.GArithmeticException - if attitudeLaw contain NaNs.public abstract void setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
displayIndicatorStatus - if Always the modifiedStatusIndicator is always shown, if Never
the modifiedStatusIndicator is never shown, if Automatic the modifiedStatusIndicator
is shown as needed.public abstract fr.cnes.sirius.patrius.attitudes.AttitudeLaw getPatriusObject()
throws fr.cnes.sirius.patrius.utils.exception.PatriusException,
GPAttitudeException
getPatriusObject in interface GPPatrius<fr.cnes.sirius.patrius.attitudes.AttitudeLaw>fr.cnes.sirius.patrius.utils.exception.PatriusExceptionGPAttitudeExceptionpublic fr.cnes.genius.main.GComponent getSubComponent(int position)
throws fr.cnes.genius.exception.GComponentException
getSubComponent in class fr.cnes.genius.main.GComponentfr.cnes.genius.exception.GComponentExceptionpublic void setEnabled(boolean flag)
setEnabled in class fr.cnes.genius.main.GComponentpublic boolean isEnabled()
isEnabled in class fr.cnes.genius.main.GComponentprotected void updateIsModifiedIndicator()
updateIsModifiedIndicator in class fr.cnes.genius.main.GComponentprotected void updateStatus()
Copyright © 2025. All rights reserved.