|
Gridarta Editor
|
A Collectable that creates the atrinik.0/crossfire.0/daimonin.0 files which contains all defined faces. More...
Inheritance diagram for net.sf.gridarta.model.collectable.FaceObjectsCollectable:
Collaboration diagram for net.sf.gridarta.model.collectable.FaceObjectsCollectable:Public Member Functions | |||||||
| void | collect (@NotNull final Progress progress, @NotNull final File collectedDirectory) throws IOException | ||||||
Collects information.
| |||||||
| FaceObjectsCollectable (@NotNull final FaceObjects faceObjects, @NotNull final ArchFaceProvider archFaceProvider) | |||||||
| Creates a new instance. More... | |||||||
Private Member Functions | |
| void | collectBmapsFile (@NotNull final Progress progress, @NotNull final File collectedDirectory) throws IOException |
| Creates the bmaps file. More... | |
| void | collectFile (@NotNull final Progress progress, @NotNull final File file, @NotNull final String label, @NotNull final String format) throws IOException |
| Creates an output file containing all faces. More... | |
| void | collectImageFile (@NotNull final Progress progress, @NotNull final File collectedDirectory) throws IOException |
| Creates the image file. More... | |
| void | collectTreeFile (@NotNull final Progress progress, @NotNull final File collectedDirectory) throws IOException |
| Creates the tree file. More... | |
Private Attributes | |
| final ArchFaceProvider | archFaceProvider |
| The ArchFaceProvider to use for collection. More... | |
| final FaceObjects | faceObjects |
| The FaceObjects being collected. More... | |
Static Private Attributes | |
| static final ActionBuilder | ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta") |
| The ActionBuilder instance. More... | |
A Collectable that creates the atrinik.0/crossfire.0/daimonin.0 files which contains all defined faces.
It also creates index or editor helper files such as bmaps or bmaps.paths.
Definition at line 50 of file FaceObjectsCollectable.java.
| net.sf.gridarta.model.collectable.FaceObjectsCollectable.FaceObjectsCollectable | ( | @NotNull final FaceObjects | faceObjects, |
| @NotNull final ArchFaceProvider | archFaceProvider | ||
| ) |
Creates a new instance.
| faceObjects | the face objects to collect |
| archFaceProvider | the arch face provider to use |
Definition at line 75 of file FaceObjectsCollectable.java.
References net.sf.gridarta.model.collectable.FaceObjectsCollectable.archFaceProvider, and net.sf.gridarta.model.collectable.FaceObjectsCollectable.faceObjects.
| void net.sf.gridarta.model.collectable.FaceObjectsCollectable.collect | ( | @NotNull final Progress | progress, |
| @NotNull final File | collectedDirectory | ||
| ) | throws IOException |
Collects information.
| progress | the progress to report progress to |
| collectedDirectory | the destination directory to collect data to |
| IOException | in case of I/O problems during collection |
The graphics information is written to "crossfire.0" resp. "daimonin.0". The meta information (offsets etc.) is written to "bmaps". The tree information for the editor is written to "bmaps.paths" resp. "facetree".
Theoretically it would also be possible to recode the images. But the Java image encoder isn't as good as that of gimp in many cases (yet much better as the old visualtek's).
Implements net.sf.gridarta.model.collectable.Collectable.
Definition at line 91 of file FaceObjectsCollectable.java.
References net.sf.gridarta.model.collectable.FaceObjectsCollectable.collectBmapsFile(), net.sf.gridarta.model.collectable.FaceObjectsCollectable.collectImageFile(), and net.sf.gridarta.model.collectable.FaceObjectsCollectable.collectTreeFile().
Here is the call graph for this function:
|
private |
Creates the bmaps file.
| progress | the progress to report progress to |
| collectedDirectory | the destination directory to collect data to |
| IOException | in case of I/O problems during collection |
Definition at line 158 of file FaceObjectsCollectable.java.
References net.sf.gridarta.model.collectable.FaceObjectsCollectable.collectFile(), and net.sf.gridarta.utils.ActionBuilderUtils.getString().
Referenced by net.sf.gridarta.model.collectable.FaceObjectsCollectable.collect().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Creates an output file containing all faces.
| progress | the process to report progress to |
| file | the output file to write |
| label | the progress label |
| format | the format string for writing the output file |
| IOException | if an I/O error occurs |
Definition at line 170 of file FaceObjectsCollectable.java.
References net.sf.gridarta.model.data.NamedObjects< E extends NamedObject >.size().
Referenced by net.sf.gridarta.model.collectable.FaceObjectsCollectable.collectBmapsFile(), and net.sf.gridarta.model.collectable.FaceObjectsCollectable.collectTreeFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Creates the image file.
| progress | the progress to report progress to |
| collectedDirectory | the destination directory to collect data to |
| IOException | in case of I/O problems during collection |
Definition at line 103 of file FaceObjectsCollectable.java.
References net.sf.gridarta.model.face.ArchFaceProvider.getFilename(), net.sf.gridarta.utils.ActionBuilderUtils.getString(), and net.sf.gridarta.model.data.NamedObjects< E extends NamedObject >.size().
Referenced by net.sf.gridarta.model.collectable.FaceObjectsCollectable.collect().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Creates the tree file.
| progress | the progress to report progress to |
| collectedDirectory | the destination directory to collect data to |
| IOException | in case of I/O problems during collection |
Definition at line 148 of file FaceObjectsCollectable.java.
References net.sf.gridarta.model.collectable.FaceObjectsCollectable.collectFile(), and net.sf.gridarta.utils.ActionBuilderUtils.getString().
Referenced by net.sf.gridarta.model.collectable.FaceObjectsCollectable.collect().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
The ActionBuilder instance.
Definition at line 56 of file FaceObjectsCollectable.java.
|
private |
The ArchFaceProvider to use for collection.
Definition at line 68 of file FaceObjectsCollectable.java.
Referenced by net.sf.gridarta.model.collectable.FaceObjectsCollectable.FaceObjectsCollectable().
|
private |
The FaceObjects being collected.
Definition at line 62 of file FaceObjectsCollectable.java.
Referenced by net.sf.gridarta.model.collectable.FaceObjectsCollectable.FaceObjectsCollectable().