resetCamera
Sets the camera to its reset position.
Signatures
- Paramate.Viewport.resetCamera( doRedraw = false )
Details
The camera gets set to a reset position. This either is a default position or it was defined earlier by function setCameraReset .
Example
[...]
configurator = new Paramate.Configurator({...});
viewPort = new Paramate.Viewport({...});
configurator.viewPort = viewPort;
configurator.initialize( function(){
viewPort.resetCamera({
origin : [ 0.0, 0.0, 0.0 ],
focus : [ 0.0, 0.0, 100.0 ],
view : [ 0.0, 0.0, -1.0 ],
top : [ 0.0, 1.0, 0.0 ],
right : [ 1.0, 0.0, 0.0 ],
aperture : 30.0 });
viewPort.resetCamera();
});
Internal
The function is also used for intializing all camera properties and their values.
Parameters
- doRedraw
-
(optional) If this argument is present and has a value 'true' the function will call function redraw implicitly after the camera positioning.