public class GPVehicleShape extends fr.cnes.genius.lowLevel.GContainer implements fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GClear, fr.cnes.genius.main.GCondensedStatusInterface, GPPatrius<fr.cnes.sirius.patrius.assembly.vehicle.VehicleSurfaceModel>
Index | Class | Item | Constraint |
0 | GLabelWithIndicator | label | 0, 0 => "newline , gapleft 0 , split 2" 0, 1 => (null) |
1 | GChoice | shapeChoice | 1, 0, 0 =>
"newline , gapleft 20 , split 2" 1, 0, 1 => (null) 1, 1 => "split" |
2 | GChoice | shapeDefChoice | 2, 0, 0 =>
"newline , gapleft 20 , split 2" 2, 0, 1 => (null) 2, 1 => "split" |
3 | GEntryReal | sphRadEntryReal | 3, 0, 0 =>
"newline , gapleft 40 , split 2" 3, 0, 1 => (null) 3, 1 => "split 2" 3, 2 => (null) |
4 | GEntryReal | sphSurfEntryReal | 4, 0, 0 =>
"newline , gapleft 40 , split 2" 4, 0, 1 => (null) 4, 1 => "split 2" 4, 2 => (null) |
5 | GEntryReal | parallLengthEntryReal | 5, 0, 0 =>
"newline , gapleft 40 , split 2" 5, 0, 1 => (null) 5, 1 => "split 2" 5, 2 => (null) |
6 | GEntryReal | parallWidthEntryReal | 6, 0, 0 =>
"newline , gapleft 40 , split 2" 6, 0, 1 => (null) 6, 1 => "split 2" 6, 2 => (null) |
7 | GEntryReal | parallHeightEntryReal | 7, 0, 0 =>
"newline , gapleft 40 , split 2" 7, 0, 1 => (null) 7, 1 => "split 2" 7, 2 => (null) |
8 | GEntryReal | parallXSurfEntryReal | 8, 0, 0 =>
"newline , gapleft 40 , split 2" 8, 0, 1 => (null) 8, 1 => "split 2" 8, 2 => (null) |
9 | GEntryReal | parallYSurfEntryReal | 9, 0, 0 =>
"newline , gapleft 40 , split 2" 9, 0, 1 => (null) 9, 1 => "split 2" 9, 2 => (null) |
10 | GEntryReal | parallZSurfEntryReal | 10, 0, 0 =>
"newline , gapleft 40 , split 2" 10, 0, 1 => (null) 10, 1 => "split 2" 10, 2 => (null) |
11 | GEntryReal | cylRadEntryReal | 11, 0, 0 =>
"newline , gapleft 40 , split 2" 11, 0, 1 => (null) 11, 1 => "split 2" 11, 2 => (null) |
12 | GEntryReal | cylLengthEntryReal | 12, 0, 0 =>
"newline , gapleft 40 , split 2" 12, 0, 1 => (null) 12, 1 => "split 2" 12, 2 => (null) |
13 | GEntryReal | cylXSurfEntryReal | 13, 0, 0 =>
"newline , gapleft 40 , split 2" 13, 0, 1 => (null) 13, 1 => "split 2" 13, 2 => (null) |
14 | GEntryReal | cylTSurfEntryReal | 14, 0, 0 =>
"newline , gapleft 40 , split 2" 14, 0, 1 => (null) 14, 1 => "split 2" 14, 2 => (null) |
15 | GCheckBoxWithIndicator | solarPanelsChoice | 15, 0, 0
=> "newline , gapleft 20 , split 2" 15, 0, 1 => (null) 15, 1 => (null) |
16 | GEntryReal | panelXSurfEntryReal | 16, 0, 0 =>
"newline , gapleft 40 , split 2" 16, 0, 1 => (null) 16, 1 => "split 2" 16, 2 => (null) |
17 | GEntryReal | panelYSurfEntryReal | 17, 0, 0 =>
"newline , gapleft 40 , split 2" 17, 0, 1 => (null) 17, 1 => "split 2" 17, 2 => (null) |
18 | GEntryReal | panelZSurfEntryReal | 18, 0, 0 =>
"newline , gapleft 40 , split 2" 18, 0, 1 => (null) 18, 1 => "split 2" 18, 2 => (null) |
Modifier and Type | Class and Description |
---|---|
static class |
GPVehicleShape.ShapeTypes
Enum of available shapes: sphere, parallelepiped, cylinder.
|
Constructor and Description |
---|
GPVehicleShape(String label)
Creates a new instance.
|
GPVehicleShape(String widgetId,
String label)
Creates a new instance.
|
GPVehicleShape(String widgetId,
String label,
fr.cnes.sirius.patrius.assembly.vehicle.VehicleSurfaceModel vehicleShape)
Creates a new instance.
|
GPVehicleShape(String label,
fr.cnes.sirius.patrius.assembly.vehicle.VehicleSurfaceModel vehicleShape)
Creates a new instance.
|
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.genius.highLevel.GCheckBoxWithIndicator |
getGCheckBoxSolarPanels()
Getter for the checkbox to define solar panels.
|
fr.cnes.genius.highLevel.GChoice |
getGChoiceShapeDef()
Getter for the choice with the shape definition.
|
fr.cnes.genius.highLevel.GChoice |
getGChoiceType()
Getter for the choice with the type of shape.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealCylLength()
Getter for the entry real to set the cylinder length.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealCylRad()
Getter for the entry real to set the cylinder radius.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealCylTSurf()
Getter for the entry real to set the cylinder transversal surface.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealCylXSurf()
Getter for the entry real to set the cylinder X surface.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealPanelXSurf()
Getter for the entry real to set the solar panel X surface.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealPanelYSurf()
Getter for the entry real to set the solar panel Y surface.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealPanelZSurf()
Getter for the entry real to set the solar panel Z surface.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealParallHeight()
Getter for the entry real to set the parallelepiped height.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealParallLength()
Getter for the entry real to set the parallelepiped length.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealParallWidth()
Getter for the entry real to set the parallelepiped width.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealParallXSurf()
Getter for the entry real to set the parallelepiped X surface.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealParallYSurf()
Getter for the entry real to set the parallelepiped Y surface.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealParallZSurf()
Getter for the entry real to set the parallelepiped Z surface.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealSphRad()
Getter for the entry real to set the sphere radius.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealSphSurf()
Getter for the entry real to set the sphere surface.
|
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabel()
Getter for the label of the widget.
|
fr.cnes.sirius.patrius.assembly.vehicle.VehicleSurfaceModel |
getPatriusObject()
Getter for the vehicle shape.
|
GPVehicleShape.ShapeTypes |
getSelectedShape()
Get selected shape as a
GPVehicleShape.ShapeTypes enum value. |
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
boolean |
hasSolarPanels()
Method to check if the vehicle has solar panels defined.
|
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 |
setDefaultVehicleShape(fr.cnes.sirius.patrius.assembly.vehicle.VehicleSurfaceModel vehicleShape)
Setter for the default
VehicleSurfaceModel instance. |
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 |
setSavedVehicleShape(fr.cnes.sirius.patrius.assembly.vehicle.VehicleSurfaceModel vehicleShape)
Setter for the saved
VehicleSurfaceModel instance. |
void |
setVehicleShape(fr.cnes.sirius.patrius.assembly.vehicle.VehicleSurfaceModel vehicleShape)
Setter for a
VehicleSurfaceModel instance. |
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, setToolTipText, setWidth, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public GPVehicleShape(String label)
label
- label for the widget.public GPVehicleShape(String label, fr.cnes.sirius.patrius.assembly.vehicle.VehicleSurfaceModel vehicleShape)
label
- label for the widget.vehicleShape
- initial vehicle shapepublic GPVehicleShape(String widgetId, String label)
widgetId
- widget identifier, if null an identifier will be automatically createdlabel
- label for the widget.public GPVehicleShape(String widgetId, String label, fr.cnes.sirius.patrius.assembly.vehicle.VehicleSurfaceModel vehicleShape)
widgetId
- widget identifier, if null an identifier will be automatically createdlabel
- label for the widget.vehicleShape
- initial vehicle shapepublic void setWidgetId(String widgetId)
setWidgetId
in class fr.cnes.genius.main.GComponent
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 attachCopyPasteMenu(String label, fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
attachCopyPasteMenu
in class fr.cnes.genius.main.GComponent
public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabel()
public fr.cnes.genius.highLevel.GChoice getGChoiceType()
public fr.cnes.genius.highLevel.GChoice getGChoiceShapeDef()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealSphRad()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealSphSurf()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealParallLength()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealParallWidth()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealParallHeight()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealParallXSurf()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealParallYSurf()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealParallZSurf()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealCylRad()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealCylLength()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealCylXSurf()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealCylTSurf()
public fr.cnes.genius.highLevel.GCheckBoxWithIndicator getGCheckBoxSolarPanels()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealPanelXSurf()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealPanelYSurf()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealPanelZSurf()
public void generic() throws fr.cnes.genius.exception.GException
generic
in class fr.cnes.genius.lowLevel.GContainer
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 clear() throws fr.cnes.genius.exception.GException
clear
in interface fr.cnes.genius.main.GClear
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 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 read() throws fr.cnes.genius.exception.GException
read
in interface fr.cnes.genius.main.GReadWrite
fr.cnes.genius.exception.GException
public GPVehicleShape.ShapeTypes getSelectedShape()
GPVehicleShape.ShapeTypes
enum value.public void write() throws fr.cnes.genius.exception.GException
write
in interface fr.cnes.genius.main.GReadWrite
fr.cnes.genius.exception.GException
public fr.cnes.sirius.patrius.assembly.vehicle.VehicleSurfaceModel getPatriusObject()
getPatriusObject
in interface GPPatrius<fr.cnes.sirius.patrius.assembly.vehicle.VehicleSurfaceModel>
public void setVehicleShape(fr.cnes.sirius.patrius.assembly.vehicle.VehicleSurfaceModel vehicleShape) throws GPVehicleException, fr.cnes.genius.exception.GArithmeticException
VehicleSurfaceModel
instance.vehicleShape
- the vehicle shapeGPVehicleException
- if the main body shape is not supportedfr.cnes.genius.exception.GArithmeticException
- if vehicleShape has sphere, parallelepiped, cylinder or solar
panels surfaces equal to NaN.public void setDefaultVehicleShape(fr.cnes.sirius.patrius.assembly.vehicle.VehicleSurfaceModel vehicleShape) throws GPVehicleException, fr.cnes.genius.exception.GArithmeticException
VehicleSurfaceModel
instance.vehicleShape
- the vehicle shapeGPVehicleException
- if the main body shape is not supportedfr.cnes.genius.exception.GArithmeticException
- if vehicleShape has sphere, parallelepiped, cylinder or solar
panels surfaces equal to NaN.public void setSavedVehicleShape(fr.cnes.sirius.patrius.assembly.vehicle.VehicleSurfaceModel vehicleShape) throws GPVehicleException, fr.cnes.genius.exception.GArithmeticException
VehicleSurfaceModel
instance.vehicleShape
- the vehicle shapeGPVehicleException
- if the main body shape is not supportedfr.cnes.genius.exception.GArithmeticException
- if vehicleShape has sphere, parallelepiped, cylinder or solar
panels surfaces equal to NaN.public boolean hasSolarPanels()
public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus
in interface fr.cnes.genius.main.GCondensedStatusInterface
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 boolean isModified()
isModified
in class fr.cnes.genius.main.GComponent
protected void updateIsModifiedIndicator()
updateIsModifiedIndicator
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
Copyright © 2018. All rights reserved.