A render handler that renders into a viewport.
Inherits :
DAZ Script |
---|
Dz3DViewRenderHandler ( DzViewport view, DzTime startTime, String filename ) |
DAZ Script | |
---|---|
Number | getLeftOffset () |
Number | getTopOffset () |
renderview_dz | getView () |
DzViewport | getViewport () |
This render handler is a DzImageRenderHandler that is the size of the aspect frame for the given viewport, and paints all data passed to it over the current view.
Dz3DViewRenderHandler( DzViewport view, DzTime startTime, String filename )
Constructor. Creates a render handler that will render to the given viewport.
Parameter(s):
Example:
// Get the active viewport and camera var oActiveView = MainWindow.getViewportMgr().getActiveViewport(); var oCamera = oActiveView.get3DViewport().getCamera(); // Create a handler var oHandler = new Dz3DViewRenderHandler( oActiveView, 0, App.getTempPath() + "/test.png" ); // If we have a valid handler if( oHandler ){ // Set the background color oHandler.setBackColor( oActiveView.get3DViewport().background ); // Get the render options var oRenderOptions = App.getRenderOptions(); // Get the renderer var oRenderer = oRenderOptions.getActiveRenderer(); // Render, using our handler and options oRenderer.render( oHandler, oCamera, oRenderOptions ); }
Number : getLeftOffset()
Return Value:
Since:
Number : getTopOffset()
Return Value:
Since:
renderview_dz : getView()
Return Value:
Since:
Return Value:
Since: