Package beamformer.algorithms
Class BeamAlgoParamsPane
- Direct Known Subclasses:
BasicFreqDomParamsPane2
,MVDRParamsPane2
- Author:
- mo55
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
class
Inner class, containing beam information for each beam in the spreadsheet -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionTest whether the beamogram data is valid.javafx.scene.Node
Create the pane holding the list of beamsjavafx.scene.Node
void
Create a list of default beams, evenly spread between 0 and 180 degrees.javafx.scene.Node
Get node for GUI change of settings.getName()
Get the name of the pane.Take settings from the pane and save them into the parameters objectvoid
Called when settings pane is first initialised.void
Get the current hydrophone locations, and set the field vector elementLocsvoid
Sets the valid angle range, based on the array shapevoid
void
Fills in the data on the beamogram tab, or clears itvoid
setDataSource
(AcousticDataBlock fftSource) void
setParams
(BeamAlgorithmParams newParams) Take settings from the parameters object and load them into the panevoid
Adds/Removes the beam and beamogram tabs, based on the current parametersMethods inherited from class PamController.SettingsPane
getAWTWindow, getFXWindow, getHelpPoint, getOwnerWindow, notifyChange, repackContents, setDefaults, setOwnerWindow
-
Constructor Details
-
BeamAlgoParamsPane
- Parameters:
basicFreqDomBeamProvider
-
-
-
Method Details
-
createBeamListPane
public javafx.scene.Node createBeamListPane()Create the pane holding the list of beams- Returns:
-
createDefaults
public void createDefaults()Create a list of default beams, evenly spread between 0 and 180 degrees. For these, the elevation is 0 deg -
createBeamPatternPane
public javafx.scene.Node createBeamPatternPane()- Returns:
-
prepareConstants
public void prepareConstants()Get the current hydrophone locations, and set the field vector elementLocs -
getParams
Take settings from the pane and save them into the parameters object- Specified by:
getParams
in classSettingsPane<BeamAlgorithmParams>
- Parameters:
p
- settings passed into this object by PamDialogFX2AWT - ignored- Returns:
- settings class
-
checkBeamogramStatus
Test whether the beamogram data is valid. This should only be called if the beamogram check box is checked- Returns:
-
setParams
Take settings from the parameters object and load them into the pane- Specified by:
setParams
in classSettingsPane<BeamAlgorithmParams>
- Parameters:
newParams
- - current settings class.
-
setBeamogramData
public void setBeamogramData()Fills in the data on the beamogram tab, or clears it -
setTabVisibility
public void setTabVisibility()Adds/Removes the beam and beamogram tabs, based on the current parameters -
setAngleRange
public void setAngleRange()Sets the valid angle range, based on the array shape -
setArrayTypeLables
public void setArrayTypeLables() -
getDataSource
- Returns:
- the fftSource
-
setDataSource
- Parameters:
fftSource
- the fftSource to set
-
getName
Description copied from class:SettingsPane
Get the name of the pane.- Specified by:
getName
in classSettingsPane<BeamAlgorithmParams>
- Returns:
- name of the pane
-
getContentNode
public javafx.scene.Node getContentNode()Description copied from class:SettingsPane
Get node for GUI change of settings.- Specified by:
getContentNode
in classSettingsPane<BeamAlgorithmParams>
-
paneInitialized
public void paneInitialized()Description copied from class:SettingsPane
Called when settings pane is first initialised. This can be used if for example, a the size of a pane is needed for a param. (Sizes are only initialised when Nodes are shown);- Specified by:
paneInitialized
in classSettingsPane<BeamAlgorithmParams>
-