Modern IDL by Michael Galloy

API documentation for example code

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

objectgraphics/

mggrwindow3d__define.pro

includes main-level program

Class description for mggrwindow3d

Inheritance

All ancestor classes: IDLGRWINDOW IDLGRSRCDEST IDLITCOMPONENT

Properties

_extra set init
eye_separation get set init
dimensions set init
_ref_extra get

Fields

converter obj_new()

object which takes a view and converts to a 3D anaglyph

Fields in IDLGRWINDOW

Fields in IDLGRSRCDEST

Fields in IDLITCOMPONENT

Routines

mggrwindow3d::getProperty [, eye_separation=float] [, _ref_extra=keywords]

Get properties of the MGgrWindow3D.

mggrwindow3d::setProperty [, dimensions=intarr(2)], eye_separation=eye_separation [, _extra=keywords]

Set properties of the MGgrWindow3D.

mggrwindow3d::draw [, picture]

Draw the picture in 3D.

mggrwindow3d::cleanup

Free resources.

result = mggrwindow3d::init( [eye_separation=float], dimensions=dimensions [, _extra=keywords])

Initialize Window3D.

mggrwindow3d__define

Destination for object graphics that automatically creates a 3d anaglyph appropriate to view with red-blue glasses.

Routine details

top source mggrwindow3d::getProperty

mggrwindow3d::getProperty [, eye_separation=float] [, _ref_extra=keywords]

Get properties of the MGgrWindow3D.

Keywords

eye_separation out optional type=float

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

_ref_extra out optional type=keywords

keyword of IDLgrWindow::getProperty

top source mggrwindow3d::setProperty

mggrwindow3d::setProperty [, dimensions=intarr(2)], eye_separation=eye_separation [, _extra=keywords]

Set properties of the MGgrWindow3D. Must intercept DIMENSIONS property to set the converter's buffer size correctly; otherwise, just pass along stuff to IDLgrWindow's setProperty method.

Keywords

dimensions in optional type=intarr(2)

dimensions of the window

eye_separation

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

_extra in optional type=keywords

keywords of IDLgrWindow's "setProperty" method are accepted

top source mggrwindow3d::draw

mggrwindow3d::draw [, picture]

Draw the picture in 3D.

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 mggrwindow3d::cleanup

mggrwindow3d::cleanup

Free resources.

top source mggrwindow3d::init

result = mggrwindow3d::init( [eye_separation=float], dimensions=dimensions [, _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 of the view

dimensions
_extra in optional type=keywords

keywords to IDLgrWindows "init" method are accepted

top source mggrwindow3d__define

mggrwindow3d__define

Destination for object graphics that automatically creates a 3d anaglyph appropriate to view with red-blue glasses.

File attributes

Modification date: Mon Nov 29 18:34:49 2010
Lines: 177
Docformat: rst rst