mglib

Personal IDL library for M. Galloy

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

vis/objectgraphics/

mggrwindow3d__define.pro

object graphics

includes main-level program

MGgrWindow3D is an object graphics destination for displaying a scene as an anaglyph in an IDLgrWindow.

Examples

The main-level program at the end of this file contains example code using this class. Run it with:

IDL> .run mggrwindow3d__define
It should display:

Class description for mggrwindow3d

Inheritance

All ancestor classes: IDLGRWINDOW IDLGRSRCDEST IDLITCOMPONENT

Properties

Properties in mggrwindow3d

_extra set init type=keywords

properties of IDLgrWindow

_ref_extra get
color get set init type=boolean

set to produce color anaglyphs

dimensions 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 of the view

Routines

Routines from mggrwindow3d__define.pro

mggrwindow3d::getProperty, eye_separation=float, /color, _ref_extra=_ref_extra

Get properties of the MGgrWindow3D.

mggrwindow3d::setProperty, dimensions=intarr(2), eye_separation=float, /color, _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=intarr(2), /color, _extra=keywords)

Initialize Window3D object.

mggrwindow3d__define

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

Routine details

top mggrwindow3d::getProperty

mggrwindow3d::getProperty, eye_separation=float, /color, _ref_extra=_ref_extra

Get properties of the MGgrWindow3D.

Keywords

eye_separation type=float

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

color type=boolean

set to produce color anaglyphs

_ref_extra

top mggrwindow3d::setProperty

mggrwindow3d::setProperty, dimensions=intarr(2), eye_separation=float, /color, _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 type=intarr(2)

dimensions of the window

eye_separation type=float

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

color type=boolean

set to produce color anaglyphs

_extra type=keywords

properties of IDLgrWindow

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

mggrwindow3d::cleanup

Free resources.

top mggrwindow3d::init

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

Initialize Window3D object.

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 of the view

dimensions type=intarr(2)

dimensions of the window

color type=boolean

set to produce color anaglyphs

_extra type=keywords

properties of IDLgrWindow

top 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: Wed May 14 15:07:15 2014
Lines: 103
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.