public class ModelToFile extends Object
Constructor and Description |
---|
ModelToFile(File file)
Creates the object.
|
Modifier and Type | Method and Description |
---|---|
ModelToFile |
addModel(IModel model)
Adds a model to the list of models this class will save.
|
ModelToFile |
addModels(Collection<IModel> models)
Adds models to the list of models this class will save.
|
void |
saveToFile(IColorGenerationContext context)
Saves the models to the file.
|
public ModelToFile(File file) throws IllegalValueException
file
- the file where the model(s) will be savedIllegalValueException
- if the file is nullpublic ModelToFile addModel(IModel model)
model
- the model to be addedpublic ModelToFile addModels(Collection<IModel> models)
models
- the models to be addedpublic void saveToFile(IColorGenerationContext context) throws IOException
context
- the color context to be used for the generationIOException
- if any IO error happens during opening, writing or closing the fileCopyright © 2014–2020, Printing in 3D. All rights reserved.