public class GPNadirPointingAttitudeLaw extends GPSpinStabilizedAbstract implements GPAttitudeLawAbstract.GPAttitudeLawWithEarthShape, fr.cnes.genius.main.GCondensedStatusInterface, GPPatriusWithObjects<fr.cnes.sirius.patrius.attitudes.AttitudeLaw>
| Index | Class | Item | Constraint |
| 0 | GLabelWithIndicator | labelLawName | 0, 0 =>
"newline , gapleft 0 , split 2" 0, 1 => (null) |
| 1 | GSeparator | separator1 | "newline , gapleft 0 , spanx 3 , growx" |
| 2 | GComboBoxWithLabel | comboBoxLawEvol | 2, 0, 0 =>
"newline , gapleft 0 , split 2" 2, 0, 1 => (null) 2, 1 => (null) |
| 3 | GPSpinStabilizedData | spinStabilizedData | "newline" (see table below) |
| Index | Class | Item | Constraint |
| 3, 0 | GSeparator | separator2 | "newline , gapleft 20 , spanx 3 , growx" |
| 3, 1 | GLabelWithIndicator | labelSpinData | 3, 1, 0 =>
"newline , gapleft 20 , split 2" 3, 1, 1 => (null) |
| 3, 2 | GPDateOffset | dateOffsetSpinDelay | "newline" (see table below) |
| 3, 3 | GCheckBoxWithIndicator | checkboxOccultAxis | 3,
3, 0, 0 => "newline , gapleft 40 , split 2" 3, 3, 0, 1 => (null) 3, 3, 1 => (null) |
| 3, 4 | GPAxisCoordinates | axisCoordinatesSpinAxis | "newline" (see table below) |
| 3, 5 | GEntryReal | entryRealSpinRate | 3, 5, 0, 0 =>
"newline , gapleft 40 , split 2" 3, 5, 0, 1 => (null) 3, 5, 1 => "split 2" 3, 5, 2 => (null) |
| Index | Class | Item | Constraint |
| 3, 2, 0 | GLabelWithIndicator | label | 3, 2,
0, 0 => "newline , gapleft 40 , split 2" 3, 2, 0, 1 => (null) |
| 3, 2, 1 | GPDateOffsetField | offsetField | "split 2" |
| 3, 2, 2 | GPopupList | popupListUnits | (null) |
| Index | Class | Item | Constraint |
| 3, 4, 0 | GLabelWithIndicator | label | 3,
4, 0, 0 => "newline , gapleft 40 , split 2" 3, 4, 0, 1 => (null) |
| 3, 4, 1 | GComboBoxWithLabel | comboBoxType | 3, 4, 1,
0, 0 => "newline , gapleft 60 , split 2" 3, 4, 1, 0, 1 => (null) 3, 4, 1, 1 => (null) |
| 3, 4, 2 | GEntryReal | entryRealVecX | 3, 4, 2, 0, 0
=> "newline , gapleft 60 , split 2" 3, 4, 2, 0, 1 => (null) 3, 4, 2, 1 => "split 2" |
| 3, 4, 3 | GEntryReal | entryRealVecY | 3, 4, 3, 0, 0 =>
"newline , gapleft 60 , split 2" 3, 4, 3, 0, 1 => (null) 3, 4, 3, 1 => "split 2" |
| 3, 4, 4 | GEntryReal | entryRealVecZ | 3, 4, 4, 0, 0 =>
"newline , gapleft 60 , split 2" 3, 4, 4, 0, 1 => (null) 3, 4, 4, 1 => "split 2" |
| 3, 4, 5 | GEntryReal | entryRealAlfa | 3, 4, 5, 0, 0 =>
"newline , gapleft 60 , split 2" 3, 4, 5, 0, 1 => (null) 3, 4, 5, 1 => "split 2" 3, 4, 5, 2 => (null) |
| 3, 4, 6 | GEntryReal | entryRealBeta | 3, 4, 6, 0, 0
=> "newline , gapleft 60 , split 2" 3, 4, 6, 0, 1 => (null) 3, 4, 6, 1 => "split 2" 3, 4, 6, 2 => (null) |
| 3, 4, 7 | GEntryReal | entryRealNorm | 3, 4, 7, 0, 0
=> "newline , gapleft 60 , split 2" 3, 4, 7, 0, 1 => (null) 3, 4, 7, 1 => "split 2" |
GPSpinStabilizedAbstract.GPLawsEvolutionGPAttitudeLawAbstract.GPAttitudeLawWithEarthShapefr.cnes.genius.main.GComponent.CopyPasteOperation, fr.cnes.genius.main.GComponent.DisplayIndicatorStatus, fr.cnes.genius.main.GComponent.ItemType, fr.cnes.genius.main.GComponent.OperationGPPatriusWithObjects.ArgsCheckerANGLE_UNITS, ANGULAR_SPEED_UNITS, SUB_GAP| Constructor and Description |
|---|
GPNadirPointingAttitudeLaw()
Empty constructor.The widgetId will be assigned automatically.
|
GPNadirPointingAttitudeLaw(String label)
Creates a new instance.The widgetId will be assigned automatically.
|
GPNadirPointingAttitudeLaw(String label,
fr.cnes.sirius.patrius.attitudes.NadirPointing attitudeLaw)
Creates a new instance.
|
GPNadirPointingAttitudeLaw(String widgetId,
String label)
Creates a new instance.
|
GPNadirPointingAttitudeLaw(String widgetId,
String label,
fr.cnes.sirius.patrius.attitudes.NadirPointing attitudeLaw)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
before(fr.cnes.genius.main.GEvent e) |
void |
generic() |
protected 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.sirius.patrius.bodies.OneAxisEllipsoid |
getEarthShape()
Getter for the Earth shape.
|
fr.cnes.sirius.patrius.attitudes.AttitudeLaw |
getPatriusObject()
Returns the PATRIUS object associated to a GENOPUS widget.
|
fr.cnes.sirius.patrius.attitudes.AttitudeLaw |
getPatriusObject(Object... args)
Returns the PATRIUS object associated to a GENOPUS widget.
|
protected 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.
|
protected 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.
|
boolean |
isNativeAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw attLaw)
Method to check if an attitude law is an instance of this type.
|
void |
setEarthShape(fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid earthShape)
Setter for the Earth shape.
|
protected 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 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 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.
|
protected void |
updateStatus()
Update the global status of the widget following the status of its components.
|
after, clear, displaySpinStabilizedData, getAvailableLawEvolutions, getGCheckBoxOccultAxis, getGComboBoxLawEvolution, getGEntryRealSpinRate, getGLabelSpinData, getGPAxisCoordinatesSpinAxis, getGPDateOffsetSpinDelay, getGPLawEvolutionEnum, getGSeparator2, getReferenceDate, getSpinnedLaw, getSubComponent, isModified, setAttitudeLaw, setAvailableLawEvolutions, setConstraint, setDefaultAttitudeLaw, setDisplayIsModifiedIndicatorAll, setEnabled, setGPLawEvolutionEnum, setReferenceDate, setSavedAttitudeLaw, setWidgetId, updateCondensedStatus, updateIsModifiedIndicatordisplay, getGLabelLawName, getGSeparator1, isEnabled, read, setDefaultConstraints, writeactivateConstraintsByType, 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 GPNadirPointingAttitudeLaw()
public GPNadirPointingAttitudeLaw(String label)
label - for the widgetpublic GPNadirPointingAttitudeLaw(String widgetId, String label)
widgetId - widget identifier, if null an identifier will be automatically created.label - for the widgetpublic GPNadirPointingAttitudeLaw(String widgetId, String label, fr.cnes.sirius.patrius.attitudes.NadirPointing attitudeLaw)
widgetId - widget identifier, if null an identifier will be automatically created.label - for the widgetattitudeLaw - attitude law to initialize the widgetpublic GPNadirPointingAttitudeLaw(String label, fr.cnes.sirius.patrius.attitudes.NadirPointing attitudeLaw)
label - for the widgetattitudeLaw - attitude law to initialize the widgetpublic void generic()
throws fr.cnes.genius.exception.GException
generic in class GPSpinStabilizedAbstractfr.cnes.genius.exception.GExceptionpublic fr.cnes.sirius.patrius.attitudes.AttitudeLaw getPatriusObject()
throws GPAttitudeException
getPatriusObject in interface GPPatrius<fr.cnes.sirius.patrius.attitudes.AttitudeLaw>getPatriusObject in class GPAttitudeLawAbstractGPAttitudeException - if the spin start date is not definedpublic fr.cnes.sirius.patrius.attitudes.AttitudeLaw getPatriusObject(Object... args) throws fr.cnes.genius.exception.GException
getPatriusObject in interface GPPatriusWithObjects<fr.cnes.sirius.patrius.attitudes.AttitudeLaw>args - The parameters are 0: OneAxisEllipsoid.fr.cnes.genius.exception.GException - if the PATRIUS object cannot be created from the widget data.protected fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D getPointingAxis()
getPointingAxis in class GPSpinStabilizedAbstractprotected fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D getDefaultPointingAxis()
throws GPAttitudeException
getDefaultPointingAxis in class GPSpinStabilizedAbstractGPAttitudeException - in case of any problem.protected fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D getSavedPointingAxis()
throws GPAttitudeException
getSavedPointingAxis in class GPSpinStabilizedAbstractGPAttitudeException - in case of any problem.public void setEarthShape(fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid earthShape)
throws fr.cnes.genius.exception.GArithmeticException
setEarthShape in interface GPAttitudeLawAbstract.GPAttitudeLawWithEarthShapeearthShape - the Earth shape.fr.cnes.genius.exception.GArithmeticException - if equatorial radius or flatness in earthShape are NaNpublic fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid getEarthShape()
getEarthShape in interface GPAttitudeLawAbstract.GPAttitudeLawWithEarthShapepublic boolean isNativeAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw attLaw)
isNativeAttitudeLaw in class GPAttitudeLawAbstractattLaw - input attitude law.protected void setSubWidgetsValues(fr.cnes.sirius.patrius.attitudes.AttitudeLaw attitudeLaw)
throws fr.cnes.genius.exception.GArithmeticException
setSubWidgetsValues in class GPSpinStabilizedAbstractattitudeLaw - PATRIUS attitude law. Must be of native type.fr.cnes.genius.exception.GArithmeticException - if equatorial radius or flatness in earthShape in attitudeLaw
are NaNprotected void setSubWidgetsDefaultValues(fr.cnes.sirius.patrius.attitudes.AttitudeLaw attitudeLaw)
setSubWidgetsDefaultValues in class GPSpinStabilizedAbstractattitudeLaw - PATRIUS attitude law. Must be of native type.protected void setSubWidgetsSavedValues(fr.cnes.sirius.patrius.attitudes.AttitudeLaw attitudeLaw)
setSubWidgetsSavedValues in class GPSpinStabilizedAbstractattitudeLaw - PATRIUS attitude law. Must be of native type.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.GExceptionprotected void updateStatus()
updateStatus in class GPAttitudeLawAbstractCopyright © 2025. All rights reserved.