|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.keridwen.modelling.mesh.inspector.core.Controller
public class Controller
Main controller of the Penelope Mesh Inspector.
Nested Class Summary | |
---|---|
class |
Controller.MeshLoader
Threaded mesh loader. |
Field Summary | |
---|---|
static String |
BORDER_CELL_LOCATOR
|
static String |
CELL_VOL_ANALYSER
|
static String |
ETA_ANALYSER
|
static String |
RHO_ANALYSER
|
Constructor Summary | |
---|---|
Controller()
default constructor, generate the mesh object |
Method Summary | |
---|---|
Object |
analyseAndBuildVtkDataSet()
Performs the analysis and convert the result under the form of a vtkDataSet. |
GenericAnalysis |
analyseMesh()
Perform the analysis and return it. |
void |
analyseMeshAndPrint()
|
MeshAnalyser |
AnalyserFactory(String analyserName,
com.artenum.penelope.mesh.interfaces.Mesh mesh,
HashMap inputParameters)
Dispatcher used to select the chosen analyzer (i.e process to measure the selected information or quality, that we want measure on the mesh). |
void |
buildNewConsole()
|
void |
exportMeshToCassandra()
export the current mesh to the Cassandra's pipeline manager, if the Cassandra's and VTK's contexts are both true. |
vtk.vtkDataSet |
exportMeshToVtkDataSet()
export the current mesh to a vtkUnstructuredGrid, if the VTK's context is true. |
void |
exportMeshToVtkGridFile(String fileOut)
export the current mesh to the VTK legacy file defined by fileOut, if the VTK context is set to true. |
void |
exportVtkDataSetToCassandra()
export the current analysis to Cassandra, if both Cassandra's and VTK's contexts are true. |
void |
exportVtkDataSetToFile(String fileOut)
Perform the selected analysis, export it under the form of a vtkDataSet and save it into the given file. |
MeshAnalyser |
getAnalyser()
|
GenericAnalysis |
getAnalysis()
return the analysis of the current analyser |
com.artenum.cassandra.Cassandra |
getCassandraViewer()
|
InspectorGUI |
getMainGUI()
|
com.artenum.penelope.mesh.interfaces.Mesh |
getMesh()
|
HashMap |
getMeshMetaData()
|
File |
getReportFile()
|
DefaultMutableTreeNode |
getSelectedNode()
|
InspectorTreeModel |
getTreeModel()
|
void |
loadMeshFromDataBus(com.artenum.penelope.mesh.interfaces.Mesh mesh,
MeshUIPanel uiPanel)
Load the mesh given in parameter (typically from the Keridwen's data bus. |
com.artenum.penelope.mesh.interfaces.Mesh |
loadMeshFromFile(String fileIn)
load a mesh from a mesh file (Gmsh format only for the moment) DEPRECATED |
void |
loadMeshUpdateTreeAndGo(File fileIn,
MeshUIPanel uiPanel)
load a mesh from a mesh file (Gmsh format only for the moment) through an independent thread. |
void |
progressBarUpdated(ActionEvent evt)
|
void |
runAnalyser()
|
void |
setAnalyser(MeshAnalyser analyser)
set the current analyzer. |
void |
setCassandraViewer(com.artenum.cassandra.Cassandra cassandraViewer)
set the linked Cassandra viewer. |
void |
setMainGUI(InspectorGUI mainGUI)
set the main GUI. |
void |
setMesh(com.artenum.penelope.mesh.interfaces.Mesh mesh)
set the current mesh. |
void |
setReportFile(File reportFile)
Set the path of the common reporting file. |
void |
setSelectedNode(DefaultMutableTreeNode selectedNodeTree)
|
void |
setTreeModel(InspectorTreeModel treeModel)
Set the tree model (InspectorTreeModel) of the present study. |
void |
updateControlPanel(DefaultTreeNode node)
update the view of the control panel. |
void |
updateControlPanel(String panelKey)
Deprecated. |
void |
updateControlTree()
update the view of the control tree. |
void |
updateMenuBar(String menuKey)
update the view of the menu bar (i.e hide inaccessible actions). |
void |
updateMeshMetaData()
update the meta-data table from the values of the current mesh. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String RHO_ANALYSER
public static final String ETA_ANALYSER
public static final String CELL_VOL_ANALYSER
public static final String BORDER_CELL_LOCATOR
Constructor Detail |
---|
public Controller()
Method Detail |
---|
public com.artenum.penelope.mesh.interfaces.Mesh loadMeshFromFile(String fileIn)
public void loadMeshUpdateTreeAndGo(File fileIn, MeshUIPanel uiPanel)
fileIn
- uiPanel
- public void progressBarUpdated(ActionEvent evt)
public GenericAnalysis analyseMesh()
public void loadMeshFromDataBus(com.artenum.penelope.mesh.interfaces.Mesh mesh, MeshUIPanel uiPanel)
mesh
- uiPanel
- public void setSelectedNode(DefaultMutableTreeNode selectedNodeTree)
public DefaultMutableTreeNode getSelectedNode()
public MeshAnalyser AnalyserFactory(String analyserName, com.artenum.penelope.mesh.interfaces.Mesh mesh, HashMap inputParameters)
analyserName
- inputParameters
- public void analyseMeshAndPrint()
public void runAnalyser()
public GenericAnalysis getAnalysis()
public Object analyseAndBuildVtkDataSet()
public vtk.vtkDataSet exportMeshToVtkDataSet()
public void exportMeshToCassandra()
public void exportMeshToVtkGridFile(String fileOut)
fileOut
- public void exportVtkDataSetToCassandra()
public void exportVtkDataSetToFile(String fileOut)
fileOut
- - output file for the vtkDataSet with the quality factor mapped.public com.artenum.penelope.mesh.interfaces.Mesh getMesh()
public void setMesh(com.artenum.penelope.mesh.interfaces.Mesh mesh)
mesh
- public void setTreeModel(InspectorTreeModel treeModel)
treeModel
- - input InspectorTreeModel.public InspectorTreeModel getTreeModel()
public MeshAnalyser getAnalyser()
public void setAnalyser(MeshAnalyser analyser)
analyser
- public void updateControlTree()
public void updateMenuBar(String menuKey)
menuKey
- @Deprecated public void updateControlPanel(String panelKey)
public void updateControlPanel(DefaultTreeNode node)
node
- public InspectorGUI getMainGUI()
public void setMainGUI(InspectorGUI mainGUI)
mainGUI
- public void updateMeshMetaData()
public HashMap getMeshMetaData()
public void setReportFile(File reportFile)
reportFile
- public File getReportFile()
public com.artenum.cassandra.Cassandra getCassandraViewer()
public void setCassandraViewer(com.artenum.cassandra.Cassandra cassandraViewer)
cassandraViewer
- public void buildNewConsole()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |