MG Library

Library of Michael Galloy

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

objectgraphics/

mggr3dconverter__define.pro

Class description for mggr3dconverter

Properties

_extra init
picture init
eye_separation get set init
dimensions get set init

Fields

obuffer obj_new()

IDLgrBuffer to send left and right eye images to and extract

eye_separation 0.00000

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

oimage obj_new()

IDLgrImage actually being displayed

oview obj_new()

IDLgrView to contain the 3D image

Routines

result = mggr3dconverter::combineImages( [left_image] [, right_image])

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( [opicture])

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=intarr(2) [, picture=IDLgrView] [, _extra=keywords])

Initialize Window3D.

mggr3dconverter__define

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

Routine details

topmggr3dconverter::combineImagesprivate

result = mggr3dconverter::combineImages( [left_image] [, right_image])

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

left_image in optional type=bytarr(3, xsize, ysize)

image from left eye

right_image in optional type=bytarr(3, xsize, ysize)

image from right eye

topmggr3dconverter::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

topmggr3dconverter::convert

result = mggr3dconverter::convert( [opicture])

Converts a standard object graphics picture to a view containing a 3D image.

Return value

IDLgrView object reference

Parameters

opicture 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

topmggr3dconverter::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

topmggr3dconverter::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

topmggr3dconverter::cleanup

mggr3dconverter::cleanup

Free resources.

topmggr3dconverter::init

result = mggr3dconverter::init( [eye_separation=float], dimensions=intarr(2) [, 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 in required type=intarr(2)

dimensions of the window

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 IDLgrWindows "init" method are accepted

topmggr3dconverter__define

mggr3dconverter__define

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

Author information

Author:

Michael Galloy

File attributes

Modification date: Tue Nov 20 11:24:27 2007
Lines: 208