Package net.sf.gridarta.model.face
Interface FaceObjects
-
- All Superinterfaces:
java.lang.Iterable<FaceObject>,NamedObjects<FaceObject>,java.io.Serializable
- All Known Implementing Classes:
AbstractFaceObjects,DefaultFaceObjects
public interface FaceObjects extends NamedObjects<FaceObject>
FaceObjects is a container forFaceObjects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddFaceObject(@NotNull java.lang.String faceName, @NotNull java.lang.String originalFilename, int offset, int size)Adds a new face object.booleanisIncludeFaceNumbers()Returns whether the images file contains face numbers.@NotNull FaceProviderloadFacesCollection(@NotNull ErrorView errorView, @NotNull java.io.File collectedDirectory)Loads all faces from a png collection file.-
Methods inherited from interface net.sf.gridarta.model.data.NamedObjects
containsKey, get, getName, getTreeRoot, iterator, size
-
-
-
-
Method Detail
-
loadFacesCollection
@NotNull @NotNull FaceProvider loadFacesCollection(@NotNull @NotNull ErrorView errorView, @NotNull @NotNull java.io.File collectedDirectory)
Loads all faces from a png collection file.- Parameters:
errorView- the error view for reporting errorscollectedDirectory- directory to load from- Returns:
- the face provider for accessing the read faces
-
addFaceObject
void addFaceObject(@NotNull @NotNull java.lang.String faceName, @NotNull @NotNull java.lang.String originalFilename, int offset, int size) throws DuplicateFaceException, IllegalFaceExceptionAdds a new face object.- Parameters:
faceName- the name of the face, e.g. "robe.101"originalFilename- the original filename, e.g. "arch/objects/misc/robe.101.png"offset- the offset in the file denoted byactualFilename, e.g. 148676size- the size in the file denoted byactualFilename, e.g. 567,- Throws:
DuplicateFaceException- in case the face was not uniqueIllegalFaceException- if the face cannot be added
-
isIncludeFaceNumbers
boolean isIncludeFaceNumbers()
Returns whether the images file contains face numbers.- Returns:
- whether the images file contains face numbers
-
-