objectgraphics/
mggr3dconverter__define.pro
Class to convert a 3D scene to an anaglyph.
Author information
- Author
Michael Galloy
Class description for mggr3dconverter
Properties
Properties in mggr3dconverter
- _extra init
- dimensions get set init
- eye_separation get set init
- picture init
Fields
Fields in mggr3dconverter
- buffer obj_new()
IDLgrBuffer to send left and right eye images to and extract
- eyeSeparation 0.00000
number of degrees of the cone formed by drawing lines from each eye to the origin
- image obj_new()
IDLgrImage actually being displayed
- view obj_new()
IDLgrView to contain the 3D image
Routines
Routines from mggr3dconverter__define.pro
result = mggr3dconverter::_combineImages( [leftImage] [, rightImage])
Creates a combined image from images from the left and right eyes where the left eye is "shaded" red and the right eye is "shaded" blue.
mggr3dconverter::_rotateModels, picture, degrees
Rotates "top-level" models of the given picture by the given number of degrees about the y-axis.
result = mggr3dconverter::convert( [picture])
Converts a standard object graphics picture to a view containing a 3D image.
mggr3dconverter::getProperty [, eye_separation=float] [, dimensions=intarr(2)]
Get properties of the converter.
mggr3dconverter::setProperty [, eye_separation=float] [, dimensions=intarr(2)]
Set properties of the converter.
mggr3dconverter::cleanup
Free resources.
result = mggr3dconverter::init( [eye_separation=float], dimensions=dimensions [, picture=IDLgrView] [, _extra=keywords])
Initialize Window3D.
mggr3dconverter__define
Helper object to transform a normal object graphics scene to a 3d picture.
Routine details
top source mggr3dconverter::_combineImagesprivate
result = mggr3dconverter::_combineImages( [leftImage] [, rightImage])
Creates a combined image from images from the left and right eyes where the left eye is "shaded" red and the right eye is "shaded" blue.
Return value
bytarr(3, xsize, ysize)
Parameters
- leftImage in optional type=bytarr(3, xsize, ysize)
image from left eye
- rightImage in optional type=bytarr(3, xsize, ysize)
image from right eye
top source mggr3dconverter::_rotateModelsprivate
mggr3dconverter::_rotateModels, picture, degrees
Rotates "top-level" models of the given picture by the given number of degrees about the y-axis.
Parameters
- picture in required type=obj ref
the view, viewgroup, or scene to be drawn
- degrees in required type=float
number of degrees to rotate "top-level" models
top source mggr3dconverter::convert
result = mggr3dconverter::convert( [picture])
Converts a standard object graphics picture to a view containing a 3D image.
Return value
IDLgrView object reference
Parameters
- picture in optional type=obj ref
the view, viewgroup, or scene to be drawn; if the GRAPHICS_TREE property is set to a valid picture, then this argument must *not* be given
top source mggr3dconverter::getProperty
mggr3dconverter::getProperty [, eye_separation=float] [, dimensions=intarr(2)]
Get properties of the converter.
Keywords
- eye_separation out optional type=float
number of degrees of the cone formed by drawing lines from each eye to the origin
- dimensions out optional type=intarr(2)
dimensions of the window
top source mggr3dconverter::setProperty
mggr3dconverter::setProperty [, eye_separation=float] [, dimensions=intarr(2)]
Set properties of the converter.
Keywords
- eye_separation in optional type=float
number of degrees of the cone formed by drawing lines from each eye to the origin
- dimensions in optional type=intarr(2)
dimensions of the window
top source mggr3dconverter::init
result = mggr3dconverter::init( [eye_separation=float], dimensions=dimensions [, picture=IDLgrView] [, _extra=keywords])
Initialize Window3D.
Return value
1 for success, o/w for failure
Keywords
- eye_separation in optional type=float default=4.0
number of degrees of the cone formed by drawing lines from each eye to the origin
- dimensions
- picture out optional type=IDLgrView
view which will contain a 3D image; the same view is updated each time that "convert_3d_picture" method is called
- _extra in optional type=keywords
keywords to IDLgrBuffer::init method are accepted
File attributes
Modification date: | Tue Aug 4 07:55:59 2015 |
Lines: | 87 |
Docformat: | rst rst |