public class GPSpinStabilizedData
extends fr.cnes.genius.lowLevel.GContainer
implements fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GClear, fr.cnes.genius.main.GCondensedStatusInterface, fr.cnes.genius.main.GListener
| Index | Class | Item | Constraint |
| 0 | GSeparator | separator2 | "newline , gapleft 0 , spanx 3 , growx" |
| 1 | GLabelWithIndicator | labelSpinData | 1, 0 =>
"newline , gapleft 0 , split 2" 1, 1 => (null) |
| 2 | GPDateOffset | dateOffsetSpinDelay | "newline" (see table below) |
| 3 | GCheckBoxWithIndicator | checkboxOccultAxis | 3, 0, 0
=> "newline , gapleft 20 , split 2" 3, 0, 1 => (null) 3, 1 => (null) |
| 4 | GPAxisCoordinates | axisCoordinatesSpinAxis | "newline" (see table below) |
| 5 | GEntryReal | entryRealSpinRate | 5, 0, 0 =>
"newline , gapleft 20 , split 2" 5, 0, 1 => (null) 5, 1 => "split 2" 5, 2 => (null) |
| Index | Class | Item | Constraint |
| 2, 0 | GLabelWithIndicator | label | 2, 0, 0
=> "newline , gapleft 20 , split 2" 2, 0, 1 => (null) |
| 2, 1 | GPDateOffsetField | offsetField | "split 2" |
| 2, 2 | GPopupList | popupListUnits | (null) |
| Index | Class | Item | Constraint |
| 4, 0 | GLabelWithIndicator | label | 4, 0,
0 => "newline , gapleft 20 , split 2" 4, 0, 1 => (null) |
| 4, 1 | GComboBoxWithLabel | comboBoxType | 4, 1, 0, 0 =>
"newline , gapleft 40 , split 2" 4, 1, 0, 1 => (null) 4, 1, 1 => (null) |
| 4, 2 | GEntryReal | entryRealVecX | 4, 2, 0, 0 =>
"newline , gapleft 40 , split 2" 4, 2, 0, 1 => (null) 4, 2, 1 => "split 2" |
| 4, 3 | GEntryReal | entryRealVecY | 4, 3, 0, 0 =>
"newline , gapleft 40 , split 2" 4, 3, 0, 1 => (null) 4, 3, 1 => "split 2" |
| 4, 4 | GEntryReal | entryRealVecZ | 4, 4, 0, 0 =>
"newline , gapleft 40 , split 2" 4, 4, 0, 1 => (null) 4, 4, 1 => "split 2" |
| 4, 5 | GEntryReal | entryRealAlfa | 4, 5, 0, 0 =>
"newline , gapleft 40 , split 2" 4, 5, 0, 1 => (null) 4, 5, 1 => "split 2" 4, 5, 2 => (null) |
| 4, 6 | GEntryReal | entryRealBeta | 4, 6, 0, 0 =>
"newline , gapleft 40 , split 2" 4, 6, 0, 1 => (null) 4, 6, 1 => "split 2" 4, 6, 2 => (null) |
| 4, 7 | GEntryReal | entryRealNorm | 4, 7, 0, 0 =>
"newline , gapleft 40 , split 2" 4, 7, 0, 1 => (null) 4, 7, 1 => "split 2" |
| Constructor and Description |
|---|
GPSpinStabilizedData()
Empty constructor.
|
GPSpinStabilizedData(String widgetId,
boolean withShowAxisMechanism,
String checkboxTooltip)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
after(fr.cnes.genius.main.GEvent e) |
boolean |
axisIsDefined()
True if the spin axis is defined (if it is not hidden).
|
void |
before(fr.cnes.genius.main.GEvent e) |
void |
clear() |
boolean |
defaultAxisIsDefined()
True if the spin axis is hidden by default.
|
void |
display() |
void |
generic() |
fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D |
getDefaultSpinAxis()
Get 3D vector.
|
fr.cnes.genius.highLevel.GCheckBoxWithIndicator |
getGCheckBoxOccultAxis()
Getter for the checkbox to show/occult axis.
|
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.
|
fr.cnes.genius.lowLevel.GSeparator |
getGSeparator2()
Getter for the separator subwidget before the spin data.
|
fr.cnes.sirius.patrius.time.AbsoluteDate |
getReferenceDate()
Method to get the reference date for the attitude laws.
|
fr.cnes.sirius.patrius.time.TimeScale |
getReferenceTimeScale()
Method to get the reference time scale for the attitude laws.
|
fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D |
getSavedSpinAxis()
Get 3D vector.
|
fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D |
getSpinAxis()
Get 3D vector.
|
double |
getSpinRate()
Get rotation.
|
fr.cnes.sirius.patrius.time.AbsoluteDate |
getSpinStartDate()
Get the spin start absolute date as the sum of the reference date and the delay.
|
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
boolean |
isEnabled() |
boolean |
isModified() |
void |
read() |
boolean |
savedAxisIsDefined()
True if the spin axis is saved as hidden.
|
void |
setConstraint(int widgetGap)
Setter for th e constraints of the widget.
|
void |
setData(fr.cnes.sirius.patrius.attitudes.SpinStabilized spinStabilizedAttitudeLaw)
Setter for the spin stabilized data.
|
void |
setDefaultConstraints()
Setter for the default constraint of the widget.
|
void |
setDefaultData(fr.cnes.sirius.patrius.attitudes.SpinStabilized spinStabilizedAttitudeLaw)
Setter for the default values of the spin stabilized data.
|
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 |
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 |
setSavedData(fr.cnes.sirius.patrius.attitudes.SpinStabilized spinStabilizedAttitudeLaw)
Setter for the saved values of the spin stabilized data.
|
void |
setWidgetId(String widgetId) |
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus) |
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, 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 GPSpinStabilizedData()
public GPSpinStabilizedData(String widgetId, boolean withShowAxisMechanism, String checkboxTooltip)
widgetId - widget identifier, if null an identifier will be automatically createdwithShowAxisMechanism - 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 fr.cnes.genius.main.GComponentpublic 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 setDefaultConstraints()
setDefaultConstraints in class fr.cnes.genius.main.GComponentpublic 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 fr.cnes.sirius.patrius.time.AbsoluteDate getSpinStartDate()
throws GPAttitudeException
GPAttitudeException - if the reference date is undefined.public fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D getSpinAxis()
throws GPAttitudeException
GPAttitudeException - if the axis is undefined.public fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D getSavedSpinAxis()
throws GPAttitudeException
GPAttitudeException - if the axis is undefined.public fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D getDefaultSpinAxis()
throws GPAttitudeException
GPAttitudeException - if the axis is undefined.public double getSpinRate()
public 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 setData(fr.cnes.sirius.patrius.attitudes.SpinStabilized spinStabilizedAttitudeLaw)
throws GPAttitudeException,
fr.cnes.genius.exception.GArithmeticException
spinStabilizedAttitudeLaw - the spin stabilized attitude law.GPAttitudeException - if the absolute value of the delay (in days) is too high.fr.cnes.genius.exception.GArithmeticException - if for spinStabilizedAttitudeLaw its rotation start date
contains NaN, if its rotation axis contains NaN or has zero norm or if its spin rate
is NaN.public void setDefaultData(fr.cnes.sirius.patrius.attitudes.SpinStabilized spinStabilizedAttitudeLaw)
throws GPAttitudeException,
fr.cnes.genius.exception.GArithmeticException
spinStabilizedAttitudeLaw - the spin stabilized attitude law.GPAttitudeException - if the absolute value of the delay (in days) is too high.fr.cnes.genius.exception.GArithmeticException - if for spinStabilizedAttitudeLaw its rotation start date
contains NaN, if its rotation axis contains NaN or has zero norm or if its spin rate
is NaN.public void setSavedData(fr.cnes.sirius.patrius.attitudes.SpinStabilized spinStabilizedAttitudeLaw)
throws GPAttitudeException,
fr.cnes.genius.exception.GArithmeticException
spinStabilizedAttitudeLaw - the spin stabilized attitude law.GPAttitudeException - if the absolute value of the delay (in days) is too high.fr.cnes.genius.exception.GArithmeticException - if for spinStabilizedAttitudeLaw its rotation start date
contains NaN, if its rotation axis contains NaN or has zero norm or if its spin rate
is NaN.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 the date 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 fr.cnes.sirius.patrius.time.TimeScale getReferenceTimeScale()
public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus in interface fr.cnes.genius.main.GCondensedStatusInterfacepublic 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 fr.cnes.genius.main.GComponentpublic boolean isEnabled()
isEnabled in class fr.cnes.genius.main.GComponentprotected void updateIsModifiedIndicator()
updateIsModifiedIndicator in class fr.cnes.genius.main.GComponentpublic boolean isModified()
isModified in class fr.cnes.genius.main.GComponentpublic 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 boolean axisIsDefined()
public boolean savedAxisIsDefined()
public boolean defaultAxisIsDefined()
public void before(fr.cnes.genius.main.GEvent e)
throws fr.cnes.genius.exception.GException
before in interface fr.cnes.genius.main.GListenerfr.cnes.genius.exception.GExceptionpublic 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.GExceptionprotected void updateStatus()
Copyright © 2025. All rights reserved.