Packagecom.mi.rs
Classpublic class GenericRenderCommand
InheritanceGenericRenderCommand Inheritance Command Inheritance Object
Implements IRenderCommand

This is a generic implementation of the IRenderCommand interface.



Public Properties
 PropertyDefined By
 InheritedisCancelled : Boolean
[read-only] Always false.
Command
 Inheritedname : String
[read-only] The name of the RealityServer command to call.
Command
 Inheritedparams : Object
[read-only] An associative array containing the command arguments as name/value pairs.
Command
  renderTarget : ImageRenderTarget
[read-only] Returns the ImageRenderTarget that will display the rendered image.
GenericRenderCommand
Public Methods
 MethodDefined By
  
GenericRenderCommand(renderTarget:ImageRenderTarget, name:String, params:Object)
A generic implementation of the render command interface.
GenericRenderCommand
  
createGetCanvasCommand(renderTarget:ImageRenderTarget, sceneName:String, renderContextName:String, canvasName:String, format:String = jpg):IRenderCommand
[static] Creates a "get_canvas" command with the most common options.
GenericRenderCommand
  
createGetLastRenderCommand(renderTarget:ImageRenderTarget, sceneName:String, renderContextName:String, format:String = jpg):IRenderCommand
[static] Creates a "get_last_render" command with the most common options.
GenericRenderCommand
  
createRenderCommand(renderTarget:ImageRenderTarget, sceneName:String, renderContextName:String = null, renderer:String = null, canvasName:String = null, format:String = jpg, renderContextTimeout:uint = 30):IRenderCommand
[static] Creates a "render" command with the most common options.
GenericRenderCommand
 Inherited
toString():String
Returns a string for debugging purposes.
Command
Property Detail
renderTargetproperty
renderTarget:ImageRenderTarget  [read-only]

Returns the ImageRenderTarget that will display the rendered image.


Implementation
    public function get renderTarget():ImageRenderTarget
Constructor Detail
GenericRenderCommand()Constructor
public function GenericRenderCommand(renderTarget:ImageRenderTarget, name:String, params:Object)

A generic implementation of the render command interface. Use this class to invoke any command that returns an image. Use the factory methods to create more specialized render commands. It is possible to add properties after the command has been created by adding them to the params property.

Parameters
renderTarget:ImageRenderTarget
 
name:String
 
params:Object
Method Detail
createGetCanvasCommand()method
public static function createGetCanvasCommand(renderTarget:ImageRenderTarget, sceneName:String, renderContextName:String, canvasName:String, format:String = jpg):IRenderCommand

Creates a "get_canvas" command with the most common options. Additional parameters can be added to the params property after the render command has been created.

Parameters

renderTarget:ImageRenderTarget
 
sceneName:String
 
renderContextName:String
 
canvasName:String
 
format:String (default = jpg)

Returns
IRenderCommand
createGetLastRenderCommand()method 
public static function createGetLastRenderCommand(renderTarget:ImageRenderTarget, sceneName:String, renderContextName:String, format:String = jpg):IRenderCommand

Creates a "get_last_render" command with the most common options. Additional parameters can be added to the params property after the render command has been created.

Parameters

renderTarget:ImageRenderTarget
 
sceneName:String
 
renderContextName:String
 
format:String (default = jpg)

Returns
IRenderCommand
createRenderCommand()method 
public static function createRenderCommand(renderTarget:ImageRenderTarget, sceneName:String, renderContextName:String = null, renderer:String = null, canvasName:String = null, format:String = jpg, renderContextTimeout:uint = 30):IRenderCommand

Creates a "render" command with the most common options. Additional parameters can be added to the params property after the render command has been created.

Parameters

renderTarget:ImageRenderTarget
 
sceneName:String
 
renderContextName:String (default = null)
 
renderer:String (default = null)
 
canvasName:String (default = null)
 
format:String (default = jpg)
 
renderContextTimeout:uint (default = 30)

Returns
IRenderCommand