mglib

Personal IDL library for M. Galloy

single page | use frames     summary     class     fields     routine details     file attributes

vis/povray/

mggrpovrayview__define.pro

object graphics

includes main-level program

Controls top-level properties of the POV-Ray scene like focal blur.

Examples

Focal blur can be set up by setting the APERTURE and BLUR_SAMPLES keywords when creating the view:

view = obj_new('MGgrPOVRayView', name='view', color=[200, 200, 255], $ aperture=0.4, blur_samples=20L)
The FOCAL_POINT can be set later when the coordinate transformations are known since the coordinates of the FOCAL_POINT are in view coordinates, not data coordinates:
view->setProperty, focal_point=mg_transformpoint([0.52, 0.317, 0.0], cow)
See the example attached to the end of this file as a main-level program (only available if you have the source code version of this routine):
IDL> .run mggrpovrayview__define
This should produce output with a focal blur (focus is on the cow's head):

Class description for mggrpovrayview

Inheritance

All ancestor classes: IDLGRVIEW IDLGRCONTAINER IDL_CONTAINER IDLGRCOMPONENT IDLITCOMPONENT

Properties

Properties in mggrpovrayview

_extra set init
_ref_extra get
aperture get set init

aperature of camera (small aperature value gives a larger depth of field)

blur_samples get set init

number of rays used to sample each pixel in POV-Ray

focal_point get set init

point which the camera focuses in view coordinates (not data coordinates)

Routines

Routines from mggrpovrayview__define.pro

mggrpovrayview::getProperty, focal_point=focal_point, aperture=aperture, blur_samples=blur_samples, _ref_extra=_ref_extra

Get properties.

mggrpovrayview::setProperty, focal_point=focal_point, aperture=aperture, blur_samples=blur_samples, _extra=_extra

Set properties.

result = mggrpovrayview::init(focal_point=focal_point, aperture=aperture, blur_samples=blur_samples, _extra=_extra)

Create a POV-Ray view object.

mggrpovrayview__define

Define instance variables.

Routine details

top mggrpovrayview::getProperty

mggrpovrayview::getProperty, focal_point=focal_point, aperture=aperture, blur_samples=blur_samples, _ref_extra=_ref_extra

Get properties.

Keywords

focal_point

point which the camera focuses in view coordinates (not data coordinates)

aperture

aperature of camera (small aperature value gives a larger depth of field)

blur_samples

number of rays used to sample each pixel in POV-Ray

_ref_extra

top mggrpovrayview::setProperty

mggrpovrayview::setProperty, focal_point=focal_point, aperture=aperture, blur_samples=blur_samples, _extra=_extra

Set properties.

Keywords

focal_point

point which the camera focuses in view coordinates (not data coordinates)

aperture

aperature of camera (small aperature value gives a larger depth of field)

blur_samples

number of rays used to sample each pixel in POV-Ray

_extra

top mggrpovrayview::init

result = mggrpovrayview::init(focal_point=focal_point, aperture=aperture, blur_samples=blur_samples, _extra=_extra)

Create a POV-Ray view object.

Return value

1 for success, 0 for failure

Keywords

focal_point

point which the camera focuses in view coordinates (not data coordinates)

aperture

aperature of camera (small aperature value gives a larger depth of field)

blur_samples

number of rays used to sample each pixel in POV-Ray

_extra

top mggrpovrayview__define

mggrpovrayview__define

Define instance variables.

File attributes

Modification date: Wed May 14 15:07:15 2014
Lines: 85
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.