public class GPRotation extends fr.cnes.genius.lowLevel.GContainer implements fr.cnes.genius.main.GListener, fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GClear, GPPatrius<fr.cnes.sirius.patrius.math.geometry.euclidean.threed.EulerRotation>, fr.cnes.genius.main.GCondensedStatusInterface
Index | Class | Item | Constraint |
0 | GLabelWithIndicator | label | 0, 0 => "newline , gapleft 0 , split 2" 0, 1 => (null) |
1 | GButton | forcePivotButton | (null) |
2 | GCheckBox | deactivateConversionsCheckbox | "newline , gapleft 20 , spanx 4" |
3 | GComboBoxWithLabel | comboBoxRotationOrder | 3, 0, 0 =>
"newline , gapleft 20 , split 2" 3, 0, 1 => (null) 3, 1 => (null) |
4 | GEntryReal | entryRealPsi | 4, 0, 0 =>
"newline , gapleft 20 , split 2" 4, 0, 1 => (null) 4, 1 => "split 2" 4, 2 => (null) |
5 | GEntryReal | entryRealTheta | 5, 0, 0 =>
"newline , gapleft 20 , split 2" 5, 0, 1 => (null) 5, 1 => "split 2" 5, 2 => (null) |
6 | GEntryReal | entryRealPhi | 6, 0, 0 =>
"newline , gapleft 20 , split 2" 6, 0, 1 => (null) 6, 1 => "split 2" 6, 2 => (null) |
Constructor and Description |
---|
GPRotation()
Empty constructor.
|
GPRotation(String label)
Constructor.
|
GPRotation(String label,
fr.cnes.sirius.patrius.math.geometry.euclidean.threed.EulerRotation rotation)
Constructor with an initial rotation.
|
GPRotation(String widgetId,
String label)
Constructor.
|
GPRotation(String widgetId,
String label,
fr.cnes.sirius.patrius.math.geometry.euclidean.threed.EulerRotation rotation)
Constructor with an initial rotation.
|
Modifier and Type | Method and Description |
---|---|
void |
after(fr.cnes.genius.main.GEvent e) |
void |
attachCopyPasteMenu(String label,
fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList) |
void |
before(fr.cnes.genius.main.GEvent e) |
static void |
checkQuaternion(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Rotation rotation)
Method to check if a rotation is valid.
|
void |
clear() |
void |
display() |
void |
generic() |
fr.cnes.genius.lowLevel.GButton |
getGButtonForcePivot()
Getter for the GButton used to force the pivot.
|
fr.cnes.genius.lowLevel.GCheckBox |
getGCheckBoxBlockConversions()
Getter for the GCheckBox used to block conversions.
|
fr.cnes.genius.highLevel.GComboBoxWithLabel |
getGComboBoxRotationOrder()
Getter for the GComboBoxWithLabel used to select rotation order.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealPhi()
Getter for the GEntryReal corresponding to Phi angle.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealPsi()
Getter for the GEntryReal corresponding to Psi angle.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealTheta()
Getter for the GEntryReal corresponding to Theta angle.
|
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabel()
Getter for the label of the widget.
|
fr.cnes.sirius.patrius.math.geometry.euclidean.threed.EulerRotation |
getPatriusObject()
Returns the PATRIUS object associated to a GENOPUS widget.
|
double |
getPhi()
Get phi (third elementary rotation).
|
double |
getPsi()
Get psi (first elementary rotation).
|
fr.cnes.sirius.patrius.math.geometry.euclidean.threed.RotationOrder |
getRotationOrder()
Get rotation order.
|
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
double |
getTeta()
Get theta (second elementary rotation).
|
boolean |
isEnabled() |
boolean |
isModified() |
static boolean |
isNullRotation(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Rotation rotation)
Checks if a rotation is null (the three angles are zero).
|
void |
read() |
void |
setConstraint(int widgetGap)
Setter for the constraints of the widget.
|
void |
setDefaultConstraints()
Setter for the default constraint of the widget.
|
void |
setDefaultRotation(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.EulerRotation rotation)
Setter for a default rotation.
|
void |
setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
Controls the display of the isModified indicator of all sub-widgets.
|
void |
setEnabled(boolean b) |
void |
setRotation(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.EulerRotation rotation)
Setter for a rotation.
|
void |
setSavedRotation(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.EulerRotation rotation)
Setter for a saved rotation.
|
void |
setWidgetId(String widgetId) |
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus) |
protected void |
updateIsModifiedIndicator() |
void |
write() |
activateConstraintsByType, 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, writeConfigItem
public GPRotation()
public GPRotation(String label)
label
- text to display in the label.public GPRotation(String label, fr.cnes.sirius.patrius.math.geometry.euclidean.threed.EulerRotation rotation)
label
- text to display in the label.rotation
- to show in the widget.public GPRotation(String widgetId, String label)
widgetId
- widget identifier, if null an identifier will be automatically created.label
- text to display in the label.public GPRotation(String widgetId, String label, fr.cnes.sirius.patrius.math.geometry.euclidean.threed.EulerRotation rotation)
widgetId
- widget identifier, if null an identifier will be automatically created.label
- text to display in the label.rotation
- to show in the widget.public void setWidgetId(String widgetId)
setWidgetId
in class fr.cnes.genius.main.GComponent
public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabel()
public fr.cnes.genius.lowLevel.GButton getGButtonForcePivot()
public fr.cnes.genius.lowLevel.GCheckBox getGCheckBoxBlockConversions()
public fr.cnes.genius.highLevel.GComboBoxWithLabel getGComboBoxRotationOrder()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealPsi()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealTheta()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealPhi()
public boolean isModified()
isModified
in class fr.cnes.genius.main.GComponent
public boolean isEnabled()
isEnabled
in class fr.cnes.genius.main.GComponent
public void display() throws fr.cnes.genius.exception.GException
display
in interface fr.cnes.genius.main.GDisplay
fr.cnes.genius.exception.GException
public void read() throws fr.cnes.genius.exception.GException
read
in interface fr.cnes.genius.main.GReadWrite
fr.cnes.genius.exception.GException
public void write() throws fr.cnes.genius.exception.GException
write
in interface fr.cnes.genius.main.GReadWrite
fr.cnes.genius.exception.GException
public void generic() throws fr.cnes.genius.exception.GException
generic
in class fr.cnes.genius.lowLevel.GContainer
fr.cnes.genius.exception.GException
public void setEnabled(boolean b)
setEnabled
in class fr.cnes.genius.main.GComponent
public final void setDefaultConstraints()
setDefaultConstraints
in class fr.cnes.genius.main.GComponent
public final void setConstraint(int widgetGap)
widgetGap
- left gap from panel border to display the label of the widget.public void attachCopyPasteMenu(String label, fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
attachCopyPasteMenu
in class fr.cnes.genius.main.GComponent
protected void updateIsModifiedIndicator()
updateIsModifiedIndicator
in class fr.cnes.genius.main.GComponent
public fr.cnes.sirius.patrius.math.geometry.euclidean.threed.RotationOrder getRotationOrder()
public double getPsi()
public double getTeta()
public double getPhi()
public fr.cnes.sirius.patrius.math.geometry.euclidean.threed.EulerRotation getPatriusObject()
getPatriusObject
in interface GPPatrius<fr.cnes.sirius.patrius.math.geometry.euclidean.threed.EulerRotation>
public void before(fr.cnes.genius.main.GEvent e) throws fr.cnes.genius.exception.GException
before
in interface fr.cnes.genius.main.GListener
fr.cnes.genius.exception.GException
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
public void clear() throws fr.cnes.genius.exception.GException
clear
in interface fr.cnes.genius.main.GClear
fr.cnes.genius.exception.GException
public fr.cnes.genius.main.GComponent getSubComponent(int position) throws fr.cnes.genius.exception.GComponentException
getSubComponent
in class fr.cnes.genius.main.GComponent
fr.cnes.genius.exception.GComponentException
public void setRotation(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.EulerRotation rotation) throws fr.cnes.genius.exception.GArithmeticException
rotation
- the rotation to be set.fr.cnes.genius.exception.GArithmeticException
- if any of the angles in rotation is NaN.public final void setDefaultRotation(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.EulerRotation rotation) throws fr.cnes.genius.exception.GArithmeticException
rotation
- the rotation to be set as defaultfr.cnes.genius.exception.GArithmeticException
- if any of the angles in rotation is NaN.public final void setSavedRotation(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.EulerRotation rotation) throws fr.cnes.genius.exception.GArithmeticException
rotation
- the rotation to be set as saved.fr.cnes.genius.exception.GArithmeticException
- if any of the angles in rotation is NaN.public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus
in interface fr.cnes.genius.main.GCondensedStatusInterface
public 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 static boolean isNullRotation(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Rotation rotation) throws fr.cnes.genius.exception.GArithmeticException
rotation
- to be checkedfr.cnes.genius.exception.GArithmeticException
- if the rotation quaternion is not valid:public static void checkQuaternion(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Rotation rotation) throws fr.cnes.genius.exception.GArithmeticException
rotation
- to be checked.fr.cnes.genius.exception.GArithmeticException
- if the rotation quaternion is not valid:Copyright © 2023. All rights reserved.