public abstract class GPSpinStabilizedAbstract extends GPAttitudeLawAbstract implements fr.cnes.genius.main.GListener
Modifier and Type | Class and Description |
---|---|
static class |
GPSpinStabilizedAbstract.GPLawsEvolution
Law evolutions enumerate.
|
GPAttitudeLawAbstract.GPAttitudeLawWithEarthShape
ANGLE_UNITS, ANGULAR_SPEED_UNITS, SUB_GAP
Constructor and Description |
---|
GPSpinStabilizedAbstract(String widgetId,
String label)
Constructor.
|
GPSpinStabilizedAbstract(String widgetId,
String label,
boolean withShowAxisMechanism,
String checkboxTooltip)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
after(fr.cnes.genius.main.GEvent e) |
void |
clear() |
protected void |
displaySpinStabilizedData()
Calls put method for all subwidgets related to spin stabilized data.
|
void |
generic() |
GPSpinStabilizedAbstract.GPLawsEvolution[] |
getAvailableLawEvolutions()
Getter for the list of laws evolutions proposed in the combo box.
|
protected abstract fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D |
getDefaultPointingAxis()
Gets the pointing axis for the spin stabilized attitude law in case of comming from outside
the spin stabilized data.
|
fr.cnes.genius.highLevel.GCheckBoxWithIndicator |
getGCheckBoxOccultAxis()
Getter for the checkbox to show/occult axis.
|
fr.cnes.genius.highLevel.GComboBoxWithLabel |
getGComboBoxLawEvolution()
Getter for the law evolution combo box subwidget.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealSpinRate()
Getter for the spin rate subwidget.
|
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabelSpinData()
Getter for the spin data label subwidget.
|
GPAxisCoordinates |
getGPAxisCoordinatesSpinAxis()
Get spin axis subwidget.
|
GPDateOffset |
getGPDateOffsetSpinDelay()
Getter for the spin delay subwidget.
|
GPSpinStabilizedAbstract.GPLawsEvolution |
getGPLawEvolutionEnum()
Get attitude law evolution type currently selected in the combo box.
|
fr.cnes.genius.lowLevel.GSeparator |
getGSeparator2()
Getter for the separator subwidget before the spin data.
|
protected abstract fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D |
getPointingAxis()
Gets the pointing axis for the spin stabilized attitude law in case of comming from outside
the spin stabilized data.
|
fr.cnes.sirius.patrius.time.AbsoluteDate |
getReferenceDate()
Method to get the reference date for the attitude laws.
|
protected abstract fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D |
getSavedPointingAxis()
Gets the pointing axis for the spin stabilized attitude law in case of comming from outside
the spin stabilized data.
|
protected fr.cnes.sirius.patrius.attitudes.AttitudeLaw |
getSpinnedLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw basicLaw)
Gets the PATRIUS spin stabilized attitude law from a non rotating law, applying the spin
stabilized data.
|
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
boolean |
isModified() |
void |
setAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw attitudeLaw)
Setter from a PATRIUS attitude law.
|
protected void |
setAvailableLawEvolutions(GPSpinStabilizedAbstract.GPLawsEvolution... evolutions)
Method to modify the laws evolutions proposed in the combo box.
|
void |
setConstraint(int widgetGap)
Setter for the constraints of the widget.
|
void |
setDefaultAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw defaultAttitudeLaw)
Setter of the default value from a PATRIUS attitude law.
|
void |
setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
Controls the display of the isModified indicator of all sub-widgets.
|
void |
setEnabled(boolean flag) |
void |
setGPLawEvolutionEnum(GPSpinStabilizedAbstract.GPLawsEvolution evolution)
Set attitude law evolution type combo box to a given value.
|
void |
setReferenceDate(fr.cnes.sirius.patrius.time.AbsoluteDate refDate,
fr.cnes.sirius.patrius.time.TimeScale timeScale)
Method to set the reference date for the attitude laws.
|
void |
setSavedAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw savedAttitudeLaw)
Setter of the saved value from a PATRIUS attitude law.
|
protected abstract void |
setSubWidgetsDefaultValues(fr.cnes.sirius.patrius.attitudes.AttitudeLaw attitudeLaw)
Private method to set the default values to the sub-widgets related to the non-rotating law.
|
protected abstract void |
setSubWidgetsSavedValues(fr.cnes.sirius.patrius.attitudes.AttitudeLaw attitudeLaw)
Private method to set the saved values to the sub-widgets related to the non-rotating law.
|
protected abstract void |
setSubWidgetsValues(fr.cnes.sirius.patrius.attitudes.AttitudeLaw attitudeLaw)
Private method to set the values to the sub-widgets related to the non-rotating law.
|
void |
setWidgetId(String widgetId) |
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus) |
protected void |
updateIsModifiedIndicator() |
display, getGLabelLawName, getGSeparator1, getPatriusObject, isEnabled, isNativeAttitudeLaw, read, setDefaultConstraints, updateStatus, 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, launchInvalidPositionException, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setNameAndCommentInConfigFile, setNameInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidth, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public GPSpinStabilizedAbstract(String widgetId, String label)
widgetId
- widget identifier, if null an identifier will be automatically createdlabel
- label for the attitude law contents section.public GPSpinStabilizedAbstract(String widgetId, String label, boolean withShowAxisMechanism, String checkboxTooltip)
widgetId
- widget identifier, if null an identifier will be automatically createdlabel
- label for the attitude law contents section.withShowAxisMechanism
- true to activate the mecanism to hide the axis coordinates
depending on a checkbox.checkboxTooltip
- tooltip to associate to the checkbox that hides the axis coordinates.public void setWidgetId(String widgetId)
setWidgetId
in class GPAttitudeLawAbstract
public fr.cnes.genius.highLevel.GComboBoxWithLabel getGComboBoxLawEvolution()
public fr.cnes.genius.lowLevel.GSeparator getGSeparator2()
public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabelSpinData()
public GPDateOffset getGPDateOffsetSpinDelay()
public fr.cnes.genius.highLevel.GCheckBoxWithIndicator getGCheckBoxOccultAxis()
public GPAxisCoordinates getGPAxisCoordinatesSpinAxis()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealSpinRate()
public void setAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw attitudeLaw) throws GPAttitudeException, fr.cnes.genius.exception.GArithmeticException
setAttitudeLaw
in class GPAttitudeLawAbstract
attitudeLaw
- to be set in the widgetfr.cnes.genius.exception.GArithmeticException
- if attitudeLaw contains NaNs.GPAttitudeException
- if the given attitude law is not compatible with the widget.public void setDefaultAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw defaultAttitudeLaw) throws GPAttitudeException, fr.cnes.genius.exception.GArithmeticException
setDefaultAttitudeLaw
in class GPAttitudeLawAbstract
defaultAttitudeLaw
- to be set as default in the widgetfr.cnes.genius.exception.GArithmeticException
- if attitudeLaw contains NaNs.GPAttitudeException
- if the given attitude law is not compatible with the widget.public void setSavedAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw savedAttitudeLaw) throws GPAttitudeException, fr.cnes.genius.exception.GArithmeticException
setSavedAttitudeLaw
in class GPAttitudeLawAbstract
savedAttitudeLaw
- to be set as saved in the widgetfr.cnes.genius.exception.GArithmeticException
- if attitudeLaw contains NaNs.GPAttitudeException
- if the given attitude law is not compatible with the widget.public void setConstraint(int widgetGap)
setConstraint
in class GPAttitudeLawAbstract
widgetGap
- left gap from panel border to display the label of the widget.public void generic() throws fr.cnes.genius.exception.GException
generic
in class GPAttitudeLawAbstract
fr.cnes.genius.exception.GException
protected void displaySpinStabilizedData() throws fr.cnes.genius.exception.GException
fr.cnes.genius.exception.GException
- in case of problem when reading or writingpublic void setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
setDisplayIsModifiedIndicatorAll
in class GPAttitudeLawAbstract
displayIndicatorStatus
- if Always the modifiedStatusIndicator is always shown, if Never
the modifiedStatusIndicator is never shown, if Automatic the modifiedStatusIndicator
is shown as needed.public boolean isModified()
isModified
in class fr.cnes.genius.main.GComponent
protected void updateIsModifiedIndicator()
updateIsModifiedIndicator
in class GPAttitudeLawAbstract
public fr.cnes.genius.main.GComponent getSubComponent(int position) throws fr.cnes.genius.exception.GComponentException
getSubComponent
in class GPAttitudeLawAbstract
fr.cnes.genius.exception.GComponentException
protected abstract void setSubWidgetsValues(fr.cnes.sirius.patrius.attitudes.AttitudeLaw attitudeLaw) throws GPAttitudeException, fr.cnes.genius.exception.GArithmeticException
attitudeLaw
- PATRIUS attitude law. Must be of native type.GPAttitudeException
- if there is some problemfr.cnes.genius.exception.GArithmeticException
- if the quaternion of theprotected abstract void setSubWidgetsDefaultValues(fr.cnes.sirius.patrius.attitudes.AttitudeLaw attitudeLaw) throws GPAttitudeException, fr.cnes.genius.exception.GArithmeticException
attitudeLaw
- PATRIUS attitude law. Must be of native type.GPAttitudeException
- if there is some problemfr.cnes.genius.exception.GArithmeticException
- if attitudeLaw contain NaNs.protected abstract void setSubWidgetsSavedValues(fr.cnes.sirius.patrius.attitudes.AttitudeLaw attitudeLaw) throws GPAttitudeException, fr.cnes.genius.exception.GArithmeticException
attitudeLaw
- PATRIUS attitude law. Must be of native type.GPAttitudeException
- if there is some problemfr.cnes.genius.exception.GArithmeticException
- if attitudeLaw contain NaNs.public GPSpinStabilizedAbstract.GPLawsEvolution getGPLawEvolutionEnum()
GPSpinStabilizedAbstract.GPLawsEvolution
enum).public void setGPLawEvolutionEnum(GPSpinStabilizedAbstract.GPLawsEvolution evolution)
evolution
- the attitude evolution type (as a choice of the GPSpinStabilizedAbstract.GPLawsEvolution
enum).protected void setAvailableLawEvolutions(GPSpinStabilizedAbstract.GPLawsEvolution... evolutions)
evolutions
- items of GPSpinStabilizedAbstract.GPLawsEvolution
enum to be shown in the combobox.public GPSpinStabilizedAbstract.GPLawsEvolution[] getAvailableLawEvolutions()
GPSpinStabilizedAbstract.GPLawsEvolution
enum items with the list of laws evolutions
proposed in the widget.public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus
in interface fr.cnes.genius.main.GCondensedStatusInterface
protected fr.cnes.sirius.patrius.attitudes.AttitudeLaw getSpinnedLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw basicLaw) throws GPAttitudeException
basicLaw
- the widget non rotating attitude lawGPAttitudeException
- if the spin vector is not defined (unreacheble) or if the spin
start date is not defined or out of bounds (for calendar format representation)protected abstract fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D getPointingAxis() throws GPAttitudeException
GPAttitudeException
- in case of any problem.protected abstract fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D getDefaultPointingAxis() throws GPAttitudeException
GPAttitudeException
- in case of any problem.protected abstract fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D getSavedPointingAxis() throws GPAttitudeException
GPAttitudeException
- in case of any problem.public void setReferenceDate(fr.cnes.sirius.patrius.time.AbsoluteDate refDate, fr.cnes.sirius.patrius.time.TimeScale timeScale) throws fr.cnes.genius.exception.GArithmeticException
refDate
- reference datetimeScale
- time scale for the time offsets of the spin stabilized lawsfr.cnes.genius.exception.GArithmeticException
- if refDate contains a NaN value in the double for the seconds in
day (offset attribut)public fr.cnes.sirius.patrius.time.AbsoluteDate getReferenceDate() throws GPAttitudeException
GPAttitudeException
- if the reference date is undefined.public void clear() throws fr.cnes.genius.exception.GException
clear
in interface fr.cnes.genius.main.GClear
fr.cnes.genius.exception.GException
public void setEnabled(boolean flag)
setEnabled
in class GPAttitudeLawAbstract
public void after(fr.cnes.genius.main.GEvent e) throws fr.cnes.genius.exception.GException
after
in interface fr.cnes.genius.main.GListener
fr.cnes.genius.exception.GException
Copyright © 2018. All rights reserved.