|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.keridwen.modelling.group.editor.app.GroupsTreeEditor
public class GroupsTreeEditor
General Groups Editor.
This editor can be used as stand alone application as well as Keridwen component.
A typical instantiation scheme can be:
GroupsTreeEditor groupTreeEditor = new GroupsTreeEditor();To recover the GUI elements:
grpEditorGUI.getMainPanel()To load a mesh and initialise the group tree and related 3D pipelines.
selectionGroupsTree.updateTree(groupList); grpToVtkConverter.setMesh(theMeshIn); grpEditorGUI.showGroupsIn3D(grpToVtkConverter);To convert attributed properties into DataFields:
deployProperties();The generated DataFields can be recovered from the DataSetManager generated by the mapper, as follow:
getMapper().getOutputDataFieldManager()
Constructor Summary | |
---|---|
GroupsTreeEditor(com.artenum.frida.processing.PropertyTypesFilter propertiesTypesFilterIn,
com.artenum.frida.processing.GroupOperatorTypeFilter operatorTypesFilter)
Basic constructor. |
|
GroupsTreeEditor(com.artenum.frida.processing.PropertyTypesFilter propertiesTypesFilterIn,
com.artenum.frida.processing.GroupOperatorTypeFilter operatorTypesFilter,
boolean isVtkAvailableIn)
Main constructor. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent evt)
|
void |
addGroupOperator(String operatorKeyName,
com.artenum.frida.interfaces.GroupOperatorInterface groupOperator)
Add a group operator to the present tree group editor. |
void |
addPropertyValidator(String validatorName,
com.artenum.frida.processing.DefaultPropertyValidator validator)
Add a property validator in the central table. |
void |
buildNewConsole()
Generate a new JyConsole. |
void |
cleanUpPropertyAndCharacteristicIds(com.artenum.frida.interfaces.PropertyInterface propIn)
Clean-up the Properties and Characteristic list. |
com.artenum.penelope.field.DataFieldManager |
deployDataFieldAction()
Perform the properties deployments (mapping) action. |
com.artenum.penelope.field.DataFieldManager |
deployProperties()
Deploy the properties as DataFiels according the group/Properties attributions |
void |
exportDataFieldsToVtkDataSet(com.artenum.penelope.field.DataFieldManager dataFieldManager,
File outputDir)
Export all DataFields gathered in the given DataFieldManager into VtkDataSet. |
void |
exportDataFieldToVtkAction()
Perform the DataField export to VtkDataSet action. |
static void |
exportMappedPropertiesToDataFields(com.artenum.penelope.field.DataFieldManager mappedPropertiesManager,
File outputDir)
Export the DataFields generated from the mapping of Properties and stored into the given DataFieldManager into vtkDataSet and write them on files. |
com.artenum.penelope.field.DataFieldManager |
getCentralDataFieldManager()
Get the central output DataFieldManager, shared by the Characteristic Mapper and the various GroupOperators. |
String |
getDefaultPropertyValidator()
|
com.artenum.frida.group.OrderedGroupList |
getGroupList()
Get the group list. |
com.artenum.frida.interfaces.GroupOperatorInterface |
getGroupOperator(String operatorKeyName)
Get the group operator for the given key-name. |
com.artenum.frida.processing.CharacteristicsToDataFieldsMapper |
getMapper()
Get the mapping filter, used to deploy the Properties on Groups to DataFields. |
com.artenum.penelope.mesh.interfaces.Mesh |
getMesh()
Get the loaded mesh. |
com.artenum.frida.processing.DefaultPropertyValidator |
getPropertyValidator(String validatorName)
Get the PropertyValidtor for the given key name. |
ImprovedSelectionTree |
getSelectionGroupsTree()
Get the selection tree for the groups. |
GroupsTreeEditorView |
getView()
Get the GUI of this editor. |
void |
init3DComponents(boolean isVtkAvailableIn)
Initialise the 3D viewer, if the VTK context is correctly loaded. |
com.artenum.frida.group.OrderedGroupList |
loadAndUpdateGroupsList(File inputFile,
com.artenum.frida.group.OrderedGroupList meshGroupsList,
DefaultGroupsListValidator listValidator)
Load the OrderedGroupsList from the given file. |
void |
loadAndUpdateGroupsListAction()
Open a file chooser to load a group List from a file, call a validator and load the groups list. |
void |
loadDefaultSettings()
Load the default settings of the application (i.e Java properties). |
void |
loadGroupListFile(File selectedFile)
Load group list from .xml file. |
com.artenum.penelope.mesh.interfaces.Mesh |
loadMesh(String fileInPath)
Load the mesh and the corresponding group list. |
void |
loadMeshandInitModelAction()
Performs the action of the mesh loading (from a selected file) and initialisation of the model (tree and 3D view). |
com.artenum.frida.properties.PropertiesList |
loadNascapMaterialCataLog(File inputDir)
Load a NASCAP properties. |
void |
loadNascapMaterialsAction()
Perform the action to load a given NASCAP material catalog. |
com.artenum.frida.properties.PropertiesList |
loadPropertiesCataLog(File inputDir)
Load a catalog of properties. |
com.artenum.frida.properties.PropertiesList |
loadPropertiesCataLog(File inputDir,
com.artenum.frida.processing.DefaultPropertyValidator validator)
Load the given properties catalog according to the properties-to-group-types validator. |
void |
loadPropertiesCatalogAction()
Performs the loading action of Properties Catalog. |
static void |
main(String[] args)
To be run as standalone application. |
void |
moveDown()
Move the priority of the selected group down. |
void |
moveUp()
Move the priority of the selected group up. |
void |
resetModelAndUpdateView()
Reset the model and update the view. |
void |
resetPropertyValidatorMap()
Reset (i.e remove all loaded elements) of the central PropertyValidators. |
void |
saveDataFieldsToXML(com.artenum.penelope.field.DataFieldManager dataFieldManager,
String meshPath,
File outputDir)
Save the DataFields of the given DataSetManager into the Penelope XML format. |
void |
saveDataFieldToXMLAction()
Perform the DataField saving action to Penelope's XML format. |
void |
saveDefaultSettings(String settingKey)
Sate the global settings of the application. |
void |
saveGroupsList(File ouputFile)
Save the GroupsList into the given file. |
void |
saveGroupsListAction()
Open a save file chooser and save the group list. |
void |
setCentralDataFieldManager(com.artenum.penelope.field.DataFieldManager centralDataFieldManager)
Set the central output DataFieldManager, shared by the Characteristic Mapper and the various GroupOperators. |
void |
setDefaultPropertyValidator(String defaultPropertyValidator)
|
void |
setGroupList(com.artenum.frida.group.OrderedGroupList groupList)
Set the group list. |
void |
setGroupListAndUpdateModels(com.artenum.frida.group.OrderedGroupList groupList)
Set the group list, update all related models (i.e tree and mapper) and expands groups nodes having properties in the tree. |
void |
setMapper(com.artenum.frida.processing.CharacteristicsToDataFieldsMapper mapper)
Set the mapping filter, used to deploy the Properties on Groups to DataFields. |
void |
setMesh(com.artenum.penelope.mesh.interfaces.Mesh mesh)
Set the Mesh of support containing the MeshMasks corresponding to the groups |
void |
setSelectionGroupsTree(ImprovedSelectionTree selectionGroupsTree)
Set the selection tree for the groups. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroupsTreeEditor(com.artenum.frida.processing.PropertyTypesFilter propertiesTypesFilterIn, com.artenum.frida.processing.GroupOperatorTypeFilter operatorTypesFilter)
public GroupsTreeEditor(com.artenum.frida.processing.PropertyTypesFilter propertiesTypesFilterIn, com.artenum.frida.processing.GroupOperatorTypeFilter operatorTypesFilter, boolean isVtkAvailableIn)
propertiesTypesFilterIn
- - Set the input PropertyTypes to GroupTypes filter.operatorTypesFilter
- - Set the input OperatorTypes to GroupTypes filter.isVtkAvailableIn
- - Set if the VTK context is available or not, to display (or not) the 3D view.Method Detail |
---|
public static void main(String[] args)
args
- public void init3DComponents(boolean isVtkAvailableIn)
isVtkAvailableIn
- public void addGroupOperator(String operatorKeyName, com.artenum.frida.interfaces.GroupOperatorInterface groupOperator)
operatorKeyName
- - Key name of the input GroupOperator.groupOperator
- - Input Group Operatorpublic com.artenum.frida.interfaces.GroupOperatorInterface getGroupOperator(String operatorKeyName)
operatorKeyName
- - key name of the group operator.
public com.artenum.penelope.mesh.interfaces.Mesh loadMesh(String fileInPath)
fileInPath
- - Path of the input mesh.
public com.artenum.penelope.mesh.interfaces.Mesh getMesh()
public GroupsTreeEditorView getView()
public ImprovedSelectionTree getSelectionGroupsTree()
public void setSelectionGroupsTree(ImprovedSelectionTree selectionGroupsTree)
selectionGroupsTree
- public com.artenum.frida.group.OrderedGroupList getGroupList()
public void setGroupList(com.artenum.frida.group.OrderedGroupList groupList)
groupList
- - the group list.public void setGroupListAndUpdateModels(com.artenum.frida.group.OrderedGroupList groupList)
groupList
- - input groups listpublic com.artenum.frida.processing.CharacteristicsToDataFieldsMapper getMapper()
public void setMapper(com.artenum.frida.processing.CharacteristicsToDataFieldsMapper mapper)
mapper
- - The mapper.public void actionPerformed(ActionEvent evt)
actionPerformed
in interface ActionListener
public void moveUp()
public void moveDown()
public com.artenum.penelope.field.DataFieldManager deployDataFieldAction()
public void saveGroupsListAction()
public void saveGroupsList(File ouputFile)
ouputFile
- - output file.public void loadNascapMaterialsAction()
public void loadAndUpdateGroupsListAction()
public void loadGroupListFile(File selectedFile)
selectedFile
- the xml file which must be used to load group list.public com.artenum.frida.group.OrderedGroupList loadAndUpdateGroupsList(File inputFile, com.artenum.frida.group.OrderedGroupList meshGroupsList, DefaultGroupsListValidator listValidator)
inputFile
- - File with the list to be read.meshGroupsList
- - mesh based group list.listValidator
- - Validator of the groups lists.
public void saveDataFieldToXMLAction()
public void loadMeshandInitModelAction()
public void setMesh(com.artenum.penelope.mesh.interfaces.Mesh mesh)
mesh
- - input mesh.public void resetModelAndUpdateView()
public void addPropertyValidator(String validatorName, com.artenum.frida.processing.DefaultPropertyValidator validator)
validatorName
- - Key name of the validator (also used in the GUI)validator
- - The loaded validator.public com.artenum.frida.processing.DefaultPropertyValidator getPropertyValidator(String validatorName)
validatorName
- - Key-name of the PropertyValidtor.
public void resetPropertyValidatorMap()
public void loadPropertiesCatalogAction()
public void exportDataFieldToVtkAction()
public void saveDataFieldsToXML(com.artenum.penelope.field.DataFieldManager dataFieldManager, String meshPath, File outputDir)
dataFieldManager
- meshPath
- outputDir
- public com.artenum.frida.properties.PropertiesList loadPropertiesCataLog(File inputDir)
inputDir
-
public com.artenum.frida.properties.PropertiesList loadPropertiesCataLog(File inputDir, com.artenum.frida.processing.DefaultPropertyValidator validator)
inputDir
- validator
-
public com.artenum.frida.properties.PropertiesList loadNascapMaterialCataLog(File inputDir)
inputDir
- the folder which contains the nascap material file.
public void cleanUpPropertyAndCharacteristicIds(com.artenum.frida.interfaces.PropertyInterface propIn)
propIn
- - list to be cleaned.public void saveDefaultSettings(String settingKey)
settingKey
- public void loadDefaultSettings()
public com.artenum.penelope.field.DataFieldManager deployProperties()
public void exportDataFieldsToVtkDataSet(com.artenum.penelope.field.DataFieldManager dataFieldManager, File outputDir)
outputDir
- public static void exportMappedPropertiesToDataFields(com.artenum.penelope.field.DataFieldManager mappedPropertiesManager, File outputDir)
mappedPropertiesManager
- outputDir
- public void buildNewConsole()
public com.artenum.penelope.field.DataFieldManager getCentralDataFieldManager()
public void setCentralDataFieldManager(com.artenum.penelope.field.DataFieldManager centralDataFieldManager)
centralDataFieldManager
- - Central dataFieldManager.public String getDefaultPropertyValidator()
public void setDefaultPropertyValidator(String defaultPropertyValidator)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |