mglib

Personal IDL library for M. Galloy

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

vis/objectgraphics/

mggr3dconverter__define.pro

object graphics


Class to convert a 3-dimensional scene to an anaglyph.

This is not done the "correct" way i.e. as described in:

http://www.triplespark.net/render/stereo/create.html
Better results were achieved with a simple rotation.

Author information

Author

Michael Galloy

Class description for mggr3dconverter

Properties

Properties in mggr3dconverter

_extra set init type=keywords

properties of IDLgrBuffer

_ref_extra get
color get set init type=boolean

set to create color anaglyphs

dimensions get set init type=intarr(2)

dimensions of the window

eye_separation get set init type=float

number of degrees of the cone formed by drawing lines from each eye to the origin

Routines

Routines from mggr3dconverter__define.pro

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), /color, _ref_extra=_ref_extra

Get properties of the converter.

mggr3dconverter::setProperty, eye_separation=float, dimensions=intarr(2), /color, _extra=keywords

Set properties of the converter.

mggr3dconverter::cleanup

Free resources.

result = mggr3dconverter::init(eye_separation=float, dimensions=intarr(2), /color [, _extra=keywords])

Initialize Window3D.

mggr3dconverter__define

Helper object to transform a normal object graphics scene to a 3D picture.

Routine details

top 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=object

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 mggr3dconverter::getProperty

mggr3dconverter::getProperty, eye_separation=float, dimensions=intarr(2), /color, _ref_extra=_ref_extra

Get properties of the converter.

Keywords

eye_separation type=float

number of degrees of the cone formed by drawing lines from each eye to the origin

dimensions type=intarr(2)

dimensions of the window

color type=boolean

set to create color anaglyphs

_ref_extra

top mggr3dconverter::setProperty

mggr3dconverter::setProperty, eye_separation=float, dimensions=intarr(2), /color, _extra=keywords

Set properties of the converter.

Keywords

eye_separation type=float

number of degrees of the cone formed by drawing lines from each eye to the origin

dimensions type=intarr(2)

dimensions of the window

color type=boolean

set to create color anaglyphs

_extra type=keywords

properties of IDLgrBuffer

top mggr3dconverter::cleanup

mggr3dconverter::cleanup

Free resources.

top mggr3dconverter::init

result = mggr3dconverter::init(eye_separation=float, dimensions=intarr(2), /color [, _extra=keywords])

Initialize Window3D.

Return value

1 for success, o/w for failure

Keywords

eye_separation type=float

number of degrees of the cone formed by drawing lines from each eye to the origin

dimensions type=intarr(2)

dimensions of the window

color type=boolean

set to create color anaglyphs

_extra in optional type=keywords

keywords to IDLgrBuffer::init method are accepted

top mggr3dconverter__define

mggr3dconverter__define

Helper object to transform a normal object graphics scene to a 3D picture.

File attributes

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