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.GPAttitudeLawWithEarthShapeANGLE_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 org.apache.commons.math3.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 org.apache.commons.math3.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.
|
org.orekit.time.AbsoluteDate |
getReferenceDate()
Method to get the reference date for the attitude laws.
|
protected abstract org.apache.commons.math3.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 CustomAttitudeLaw |
getSpinnedLaw(CustomAttitudeLaw 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(CustomAttitudeLaw 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(CustomAttitudeLaw 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(org.orekit.time.AbsoluteDate refDate,
org.orekit.time.TimeScale timeScale)
Method to set the reference date for the attitude laws.
|
void |
setSavedAttitudeLaw(CustomAttitudeLaw savedAttitudeLaw)
Setter of the saved value from a PATRIUS attitude law.
|
protected abstract void |
setSubWidgetsDefaultValues(CustomAttitudeLaw attitudeLaw)
Private method to set the default values to the sub-widgets related to the non-rotating law.
|
protected abstract void |
setSubWidgetsSavedValues(CustomAttitudeLaw attitudeLaw)
Private method to set the saved values to the sub-widgets related to the non-rotating law.
|
protected abstract void |
setSubWidgetsValues(CustomAttitudeLaw 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, writeactivateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getComponent, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, launchInvalidPositionException, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setNameAndCommentInConfigFile, setNameInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidth, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItempublic 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 GPAttitudeLawAbstractpublic 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(CustomAttitudeLaw attitudeLaw) throws GPAttitudeException, fr.cnes.genius.exception.GArithmeticException
setAttitudeLaw in class GPAttitudeLawAbstractattitudeLaw - 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(CustomAttitudeLaw defaultAttitudeLaw) throws GPAttitudeException, fr.cnes.genius.exception.GArithmeticException
setDefaultAttitudeLaw in class GPAttitudeLawAbstractdefaultAttitudeLaw - 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(CustomAttitudeLaw savedAttitudeLaw) throws GPAttitudeException, fr.cnes.genius.exception.GArithmeticException
setSavedAttitudeLaw in class GPAttitudeLawAbstractsavedAttitudeLaw - 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 GPAttitudeLawAbstractwidgetGap - left gap from panel border to display the label of the widget.public void generic()
throws fr.cnes.genius.exception.GException
generic in class GPAttitudeLawAbstractfr.cnes.genius.exception.GExceptionprotected 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 GPAttitudeLawAbstractdisplayIndicatorStatus - 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.GComponentprotected void updateIsModifiedIndicator()
updateIsModifiedIndicator in class GPAttitudeLawAbstractpublic fr.cnes.genius.main.GComponent getSubComponent(int position)
throws fr.cnes.genius.exception.GComponentException
getSubComponent in class GPAttitudeLawAbstractfr.cnes.genius.exception.GComponentExceptionprotected abstract void setSubWidgetsValues(CustomAttitudeLaw 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(CustomAttitudeLaw 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(CustomAttitudeLaw 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.GCondensedStatusInterfaceprotected CustomAttitudeLaw getSpinnedLaw(CustomAttitudeLaw 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 org.apache.commons.math3.geometry.euclidean.threed.Vector3D getPointingAxis()
throws GPAttitudeException
GPAttitudeException - in case of any problem.protected abstract org.apache.commons.math3.geometry.euclidean.threed.Vector3D getDefaultPointingAxis()
throws GPAttitudeException
GPAttitudeException - in case of any problem.protected abstract org.apache.commons.math3.geometry.euclidean.threed.Vector3D getSavedPointingAxis()
throws GPAttitudeException
GPAttitudeException - in case of any problem.public void setReferenceDate(org.orekit.time.AbsoluteDate refDate,
org.orekit.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 org.orekit.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.GClearfr.cnes.genius.exception.GExceptionpublic void setEnabled(boolean flag)
setEnabled in class GPAttitudeLawAbstractpublic void after(fr.cnes.genius.main.GEvent e)
throws fr.cnes.genius.exception.GException
after in interface fr.cnes.genius.main.GListenerfr.cnes.genius.exception.GExceptionCopyright © 2017. All rights reserved.