public class PovrayRenderView extends ViewPart implements IPovrayMessageView
View showing the messages generated by Povray when rendering.
Each Povray output line is shown as a Table entry, the different Povray output streams are using different background colors in this view.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID_VIEW |
Constructor and Description |
---|
PovrayRenderView()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addMessage(java.lang.String text,
java.lang.String classification)
Adds the given message entry to the Povray Message View table.
|
void |
addMessageData(java.lang.String text,
java.lang.String classification) |
void |
clearMessages()
Clears the complete Povray Message View output window.
|
void |
createPartControl(Composite parent)
This is a callback that will allow us
to create the viewer and initialize it.
|
void |
dispose() |
static PovrayRenderView |
getInstance(boolean activate)
Note: Use only within the synchronous eclipse main thread!
|
RenderThread |
getRenderThread() |
void |
readFiles()
Reads all message files in a parallel manner,
each file is read by a thread of it's own.
|
void |
setFocus()
Passing the focus request to the viewer's control.
|
void |
setRenderThread(RenderThread renderThread)
Sets the thread used for performing the rendering.
|
public static final java.lang.String ID_VIEW
public static PovrayRenderView getInstance(boolean activate) throws PartInitException
PovrayRenderView
.PartInitException
- If the viedw can not be created.public void dispose()
public void createPartControl(Composite parent)
public void setFocus()
public RenderThread getRenderThread()
public void setRenderThread(RenderThread renderThread)
renderThread
- The thread used for performing the rendering.public void readFiles()
public void addMessage(java.lang.String text, java.lang.String classification)
IPovrayMessageView
addMessage
in interface IPovrayMessageView
text
- The text of the message to be shown.classification
- The message classification.
Use the org.povclipse2.thread.RenderThread.MESSAGE_KEY_FILE_*
constants!public void addMessageData(java.lang.String text, java.lang.String classification)
public void clearMessages()
IPovrayMessageView
clearMessages
in interface IPovrayMessageView