5mm
| Genre: | |
|---|---|
| Authors: | Christian Tietjen, Konrad Mühler |
| Short description: | The METKManager is the heart of every METK network. This module must always be included. |
The METKManager is always needed in an METK network. It takes care about the consistency, creates Open Inventor Surfaces out of segmentation masks if necessary and converts different XML files into the METK readable format.
To load a case, e.g. a neck or liver data set, enter the filename and load the case. All METK modules, you want to use, must be connected to the METKManager before you press "`Load"'! While loading the case, the manager prompts several status informations. Loading has been finished when "`Loaded :o)"' is prompted in the status message. After that, the manager sends the message "`Loaded"' to all connected METK modules. If you want to load a new case, you have to cleanup the old case first. This will cause the manager to tell all other METK modules to clean up their internal data structures.
METKManager comes up with a warning message and a question to save the case, if something noticable has changed in the data. The case is stored in a XML-file (see File format). When load a case a first time, converted from another application, there will be a lot of changes, so you will get a warning without changing anything on your own. The saved XML file must be in the same directory as the original XML file.
You may enable different warning levels:
The saved XML file must be in the same directory as the original XML file.
| ObjMgr-Key | Value | Action |
|---|---|---|
| ObjID |
TRUE | Create a surface container if not exist |
| FALSE | do nothing |
| Message | Data | Description |
|---|---|---|
| Loaded | -- | Tells everyone that case and database are loaded. |
| Cleanup | -- | Tells everyone to clean up their data. |
| Message | Data | Description |
|---|---|---|
| createIVFile | ObjectID | Generate the surface of the given structure. |
| getMeasures | ObjectID | Compute the measures of the given structure. |
| loadFile | Path and file name | Another way to load an XML case file. |
| new: | generate a new dataset. Prompts for location and name. |
| load: | will cause the manager to load the current case |
| browse: | will cause the manager to load a case, selected by a file dialog |
| save: | Trigger to save the case with the given filename. |
| saveAs: | Save the case with the user specified filename via dialog. |
| cleanup: | will cause the manager to clean up the case |
| fileName: | path/filename of the desired case |
| detectedFormat: | format of the XML file |
| status: | current status of the manager |
| changeDetected: | Is true when changes are recognized. |
| warnLevel: | If a case is going to close, and changes were made, the warn level defines, if when a message appear. Possible values: 0...3 |
| computeSurfaces: | Compute surfaces on load event |
Include METKSaveCase into the manager and establish a new message "`Save"' to tell all modules, that their temporary generated data needs to be saved, or to be discarded when the message is not sent.
ConvertXML, NeckVisionXMLConverter, HepaXMLConverter, StandardXMLConverter, GenerateIVFile