povray/
visgrpovrayview__define.pro
object graphics
includes main-level programControls 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('VISgrPOVRayView', 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=vis_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 visgrpovrayview__define
This should produce output with a focal blur (focus is on the cow's
head):
Class description for visgrpovrayview
Inheritance
- IDLGRVIEW
All ancestor classes: IDLGRVIEW IDLGRCONTAINER IDL_CONTAINER IDLGRCOMPONENT IDLITCOMPONENT
Properties
- _extra set init
- blur_samples get set init
number of rays used to sample each pixel in POV-Ray
- _ref_extra get
- focal_point get set init
point which the camera focuses in view coordinates (not data coordinates)
- aperture get set init
aperature of camera (small aperature value gives a larger depth of field)
Routines
visgrpovrayview::getProperty, focal_point=focal_point, aperture=aperture, blur_samples=blur_samples, _ref_extra=_ref_extraGet properties.
visgrpovrayview::setProperty, focal_point=focal_point, aperture=aperture, blur_samples=blur_samples, _extra=_extraSet properties.
result = visgrpovrayview::init(focal_point=focal_point, aperture=aperture, blur_samples=blur_samples, _extra=_extra)Create a POV-Ray view object.
visgrpovrayview__defineDefine instance variables.
Routine details
top visgrpovrayview::getProperty
visgrpovrayview::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 visgrpovrayview::setProperty
visgrpovrayview::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 visgrpovrayview::init
result = visgrpovrayview::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
File attributes
| Modification date: | Fri Sep 24 15:42:28 2010 |
| Lines: | 186 |
| Docformat: | rst rst |