public class RenderThread
extends Job
Modifier and Type | Field and Description |
---|---|
static java.lang.Character |
IMG_TYPE_PNG |
static java.lang.Character |
IMG_TYPE_PPM |
static java.lang.Character |
IMG_TYPE_SYSTEM |
static java.lang.Character |
IMG_TYPE_TARGA_COMPRESSED |
static java.lang.Character |
IMG_TYPE_TARGA_UNCOMPRESSED |
static java.lang.String |
MESSAGE_KEY_FILE_DEBUG |
static java.lang.String |
MESSAGE_KEY_FILE_FATAL |
static java.lang.String |
MESSAGE_KEY_FILE_RENDER |
static java.lang.String |
MESSAGE_KEY_FILE_STATISTIC |
static java.lang.String |
MESSAGE_KEY_FILE_WARNING |
Constructor and Description |
---|
RenderThread(IniDocument iniDocument,
RenderMessagesView renderView)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
IniDocument |
getIniDocument() |
java.util.Map<java.lang.String,java.io.File> |
getMessageFiles()
Gets the list of
IFile objects, each
representing a Povray Console outputfiles being used by the render run. |
int |
getReadyFrameNumber() |
boolean |
isImageReady() |
boolean |
isPreprocessing() |
boolean |
isRenderingFinished() |
boolean |
isRenderingStarted() |
IStatus |
run(IProgressMonitor pmonitor)
Writes the line using the writer, followed ba a NEWLINE.
|
void |
setImageLoaderThread(ImageLoaderThread imageLoaderThread) |
void |
setImageReady(boolean imageReady) |
void |
setPreprocessing(boolean preprocessing) |
void |
setRenderingStarted(boolean renderingStarted) |
public static final java.lang.Character IMG_TYPE_TARGA_COMPRESSED
public static final java.lang.Character IMG_TYPE_TARGA_UNCOMPRESSED
public static final java.lang.Character IMG_TYPE_PNG
public static final java.lang.Character IMG_TYPE_PPM
public static final java.lang.Character IMG_TYPE_SYSTEM
public static final java.lang.String MESSAGE_KEY_FILE_DEBUG
public static final java.lang.String MESSAGE_KEY_FILE_FATAL
public static final java.lang.String MESSAGE_KEY_FILE_RENDER
public static final java.lang.String MESSAGE_KEY_FILE_STATISTIC
public static final java.lang.String MESSAGE_KEY_FILE_WARNING
public RenderThread(IniDocument iniDocument, RenderMessagesView renderView)
renderConfig
- The RenderConfiguration
to be used for the rendering.renderView
- The view receiving the Povray console output dor display.public java.util.Map<java.lang.String,java.io.File> getMessageFiles()
IFile
objects, each
representing a Povray Console outputfiles being used by the render run.project
- The Project to receive the files.java.util.Map
of IFile
objects.public IStatus run(IProgressMonitor pmonitor)
writer
- The writer beeing used for outputline
- The line top be written.java.io.IOException
- IN case of an error.public boolean isRenderingFinished()
true
if the Povray rendering system thread has been
completed, false
otherwise.public boolean isRenderingStarted()
true
if Povray was started, false
otherwise.public void setRenderingStarted(boolean renderingStarted)
renderingStarted
- true
if Povray has been started,
false
otherwise.public IniDocument getIniDocument()
IniDocument
beeing used.public boolean isPreprocessing()
true
if the preprocessing has been started
(e. g. the creation of the INI file), false
otherwiese.public void setPreprocessing(boolean preprocessing)
public boolean isImageReady()
public void setImageReady(boolean imageReady)
imageReady
- the imageReady to setpublic int getReadyFrameNumber()
public void setImageLoaderThread(ImageLoaderThread imageLoaderThread)
imageLoaderThread
- The ImageLoaderThread
to be
used for displaying the rendered image.