org.ngbw.web.actions
Class RayTraceDispatcher
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.ngbw.web.actions.RayTraceDispatcher
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class RayTraceDispatcher
- extends javax.servlet.http.HttpServlet
This servlet resides on the server and accepts requests for ray-traced images of the currently
displayed scene. The applet sends a String content of the povray scene description file
that needs to be saved with a .pov extension and fed into the povray executable using the
command line below.
There are a number of parameters that need to be provided as well, such as image dimensions and
on/off antialiasing switch.
- Author:
- Sasha Buzko
- See Also:
- Serialized Form
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
Methods inherited from class javax.servlet.http.HttpServlet |
service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RayTraceDispatcher
public RayTraceDispatcher()
doPost
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
doGet
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException,
java.io.OptionalDataException
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
java.io.OptionalDataException