public class GPAxisCoordinates extends fr.cnes.genius.lowLevel.GContainer implements fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GDisplay, GPPatrius<fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D>, fr.cnes.genius.main.GClear, fr.cnes.genius.main.GCondensedStatusInterface
Index | Class | Item | Constraint |
0 | GLabelWithIndicator | label | 0, 0 => "newline , gapleft 0 , split 2" 0, 1 => (null) |
1 | GComboBoxWithLabel | comboBoxType | 1, 0, 0 =>
"newline , gapleft 20 , split 2" 1, 0, 1 => (null) 1, 1 => (null) |
2 | GEntryReal | entryRealVecX | 2, 0, 0 =>
"newline , gapleft 20 , split 2" 2, 0, 1 => (null) 2, 1 => "split 2" 2, 2 => (null) |
3 | GEntryReal | entryRealVecY | 3, 0, 0 =>
"newline , gapleft 20 , split 2" 3, 0, 1 => (null) 3, 1 => "split 2" 3, 2 => (null) |
4 | GEntryReal | entryRealVecZ | 4, 0, 0 =>
"newline , gapleft 20 , split 2" 4, 0, 1 => (null) 4, 1 => "split 2" 4, 2 => (null) |
5 | GEntryReal | entryRealAlfa | 5, 0, 0 =>
"newline , gapleft 20 , split 2" 5, 0, 1 => (null) 5, 1 => "split 2" 5, 2 => (null) |
6 | GEntryReal | entryRealBeta | 6, 0, 0 =>
"newline , gapleft 20 , split 2" 6, 0, 1 => (null) 6, 1 => "split 2" 6, 2 => (null) |
7 | GEntryReal | entryRealNorm | 7, 0, 0 =>
"newline , gapleft 20 , split 2" 7, 0, 1 => (null) 7, 1 => "split 2" 7, 2 => (null) |
Modifier and Type | Class and Description |
---|---|
static class |
GPAxisCoordinates.GPAxisEnum
Available options for the type of axis coordinates.
|
Constructor and Description |
---|
GPAxisCoordinates(String label,
boolean isUnitary,
fr.cnes.genius.unit.GUnit[] units)
Constructor.
|
GPAxisCoordinates(String label,
boolean isUnitary,
fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D vector,
fr.cnes.genius.unit.GUnit[] units)
Constructor with an initial vector.
|
GPAxisCoordinates(String widgetId,
String label,
boolean isUnitary,
fr.cnes.genius.unit.GUnit[] units)
Creates a new instance.
|
GPAxisCoordinates(String widgetId,
String label,
boolean isUnitary,
fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D vector,
fr.cnes.genius.unit.GUnit[] units)
Constructor with an initial vector.
|
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) |
void |
clear() |
void |
display() |
void |
generic() |
fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D |
getDefaultValue() |
fr.cnes.genius.highLevel.GComboBoxWithLabel |
getGComboBoxType()
Getter for the combo box with the type of coordinates.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealAlfa()
Getter for the entry real to set alfa angle.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealBeta()
Getter for the entry real to set beta angle.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealNorm()
Getter for the entry real to set norm.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealVecX()
Getter for the entry real to set X axis.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealVecY()
Getter for the entry real to set Y axis.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealVecZ()
Getter for the entry real to set Z axis.
|
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabel()
Getter for the label of the widget.
|
fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D |
getPatriusObject()
Returns the PATRIUS object associated to a GENOPUS widget.
|
fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D |
getSavedValue() |
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
boolean |
isEnabled() |
boolean |
isModified() |
void |
read() |
void |
setConstraint(int widgetGap)
Setter for the constraints of the widget.
|
void |
setDefaultConstraints()
Setter for the default constraint of the widget.
|
void |
setDefaultValue(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D vector)
Setter of the default values from a PATRIUS Vector3D object.
|
void |
setDefaultValue(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D vector,
GPAxisCoordinates.GPAxisEnum typeOfCoord)
Setter of the default values from a PATRIUS Vector3D object.
|
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 |
setLabel(String string)
Set title.
|
void |
setNormInterval(fr.cnes.genius.interval.GInterval... intervals)
Method to modify the interval for the norm of the vector.
|
void |
setSavedValue(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D vector)
Setter of the saved values from a PATRIUS Vector3D object.
|
void |
setSavedValue(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D vector,
GPAxisCoordinates.GPAxisEnum typeOfCoord)
Setter of the saved values from a PATRIUS Vector3D object.
|
void |
setToolTipText(String text) |
void |
setValue(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D vector)
Setter from a PATRIUS Vector3D object.
|
void |
setValue(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D vector,
GPAxisCoordinates.GPAxisEnum typeOfCoord)
Setter from a PATRIUS Vector3D object.
|
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, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setNameAndCommentInConfigFile, setNameInConfigFile, setStatus, setStringConstraint, setWidth, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public GPAxisCoordinates(String label, boolean isUnitary, fr.cnes.genius.unit.GUnit[] units)
label
- label for the widget.isUnitary
- flag indicating if the widget must accept only unitary vectors. In this case, the units will
be ignored.units
- list of units to display in the unit menu of the widget. Set to null for a widget without
units.public GPAxisCoordinates(String widgetId, String label, boolean isUnitary, fr.cnes.genius.unit.GUnit[] units)
widgetId
- widget identifier, if null an identifier will be automatically createdlabel
- label for the widget.isUnitary
- flag indicating if the widget must accept only unitary vectors. In this case, the units will
be ignored.units
- list of units to display in the unit menu of the widget. Set to null for a widget without
units.public GPAxisCoordinates(String widgetId, String label, boolean isUnitary, fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D vector, fr.cnes.genius.unit.GUnit[] units)
widgetId
- widget identifier, if null an identifier will be automatically createdlabel
- label for the widgetisUnitary
- flag indicating if the widget must accept only unitary vectors. In this case, the units will
be ignored.vector
- to be set in the widgetunits
- list of units to display in the unit menu of the widget. Set to null for a widget without
units.public GPAxisCoordinates(String label, boolean isUnitary, fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D vector, fr.cnes.genius.unit.GUnit[] units)
label
- label for the widgetisUnitary
- flag indicating if the widget must accept only unitary vectors. In this case, the units will
be ignored.vector
- to be set in the widgetunits
- list of units to display in the unit menu of the widget. Set to null for a widget without
units.public void setWidgetId(String widgetId)
setWidgetId
in class fr.cnes.genius.main.GComponent
public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabel()
public fr.cnes.genius.highLevel.GComboBoxWithLabel getGComboBoxType()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealVecX()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealVecY()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealVecZ()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealAlfa()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealBeta()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealNorm()
public void attachCopyPasteMenu(String label, fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
attachCopyPasteMenu
in class fr.cnes.genius.main.GComponent
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 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 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 setDefaultConstraints()
setDefaultConstraints
in class fr.cnes.genius.main.GComponent
public void setConstraint(int widgetGap)
widgetGap
- left gap from panel border to display the label of the widget.public void setLabel(String string)
string
- titlepublic fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D getPatriusObject()
getPatriusObject
in interface GPPatrius<fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D>
public fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D getDefaultValue()
public fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D getSavedValue()
public void setValue(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D vector) throws fr.cnes.genius.exception.GArithmeticException
vector
- to be set in the widget.fr.cnes.genius.exception.GArithmeticException
- if one of the vector components is NaN or if all components are zero.public void setValue(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D vector, GPAxisCoordinates.GPAxisEnum typeOfCoord) throws fr.cnes.genius.exception.GArithmeticException
vector
- to be set in the widget. It cannot be null.typeOfCoord
- type of coordinates to select in the combobox.fr.cnes.genius.exception.GArithmeticException
- if one of the vector components is NaN or if all components are zero.public void setDefaultValue(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D vector) throws fr.cnes.genius.exception.GArithmeticException
vector
- to be set as default one in the widget. It cannot be null.fr.cnes.genius.exception.GArithmeticException
- if one of the vector components is NaN or if all components are zero.public void setDefaultValue(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D vector, GPAxisCoordinates.GPAxisEnum typeOfCoord) throws fr.cnes.genius.exception.GArithmeticException
vector
- to be set as default one in the widget. It cannot be null.typeOfCoord
- default type of coordinatesfr.cnes.genius.exception.GArithmeticException
- if one of the vector components is NaN or if all components are zero.public void setSavedValue(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D vector) throws fr.cnes.genius.exception.GArithmeticException
vector
- to be set as saved one in the widget. It cannot be null.fr.cnes.genius.exception.GArithmeticException
- if one of the vector components is NaN or if all components are zero.public void setSavedValue(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D vector, GPAxisCoordinates.GPAxisEnum typeOfCoord) throws fr.cnes.genius.exception.GArithmeticException
vector
- to be set as saved one in the widget. It cannot be null.typeOfCoord
- saved type of Coordinatesfr.cnes.genius.exception.GArithmeticException
- if one of the vector components is NaN or if all components are zero.public void clear() throws fr.cnes.genius.exception.GException
clear
in interface fr.cnes.genius.main.GClear
fr.cnes.genius.exception.GException
public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus
in interface fr.cnes.genius.main.GCondensedStatusInterface
protected void updateIsModifiedIndicator()
updateIsModifiedIndicator
in class fr.cnes.genius.main.GComponent
public boolean isModified()
isModified
in class fr.cnes.genius.main.GComponent
public boolean isEnabled()
isEnabled
in class fr.cnes.genius.main.GComponent
public void setEnabled(boolean b)
setEnabled
in class fr.cnes.genius.main.GComponent
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 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 setToolTipText(String text)
setToolTipText
in class fr.cnes.genius.main.GComponent
public void setNormInterval(fr.cnes.genius.interval.GInterval... intervals) throws fr.cnes.genius.exception.GIntervalException
intervals
- new intervals for the norm of the vector.fr.cnes.genius.exception.GIntervalException
- in case that the new intervals overlaps with each otherCopyright © 2018. All rights reserved.