mglib

Personal IDL library for M. Galloy

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

vis/objectgraphics/

mggrcube__define.pro

object graphics


Unit cube polygon (maybe scaled and translated).

Examples

See the main-level program at the end of this file:

IDL> .run mggrcube__define
This should produce an image of 100 cubes of random size, location, color, style, and shading:

Class description for mggrcube

Inheritance

All ancestor classes: IDLGRPOLYGON IDLGRGRAPHIC IDLGRCOMPONENT IDLITCOMPONENT

Properties

Properties in mggrcube

_extra set init type=keywords

properties from IDLgrPolygon

_ref_extra get
scale get set init type=float/fltarr(3)

scale cube either equally or separately in each direction

translate get set init type=fltarr(3)

translate the cube to another location

Routines

Routines from mggrcube__define.pro

mggrcube::setProperty, scale=float/fltarr(3), translate=fltarr(3), _extra=keywords

Set properties.

mggrcube::getProperty, scale=float/fltarr(3), translate=fltarr(3), _ref_extra=_ref_extra

Get properties.

result = mggrcube::init(scale=float/fltarr(3), translate=fltarr(3), _extra=keywords)

Create a cube polygon.

mggrcube__define

Define instance variables.

Routine details

top mggrcube::setProperty

mggrcube::setProperty, scale=float/fltarr(3), translate=fltarr(3), _extra=keywords

Set properties.

Keywords

scale type=float/fltarr(3)

scale cube either equally or separately in each direction

translate type=fltarr(3)

translate the cube to another location

_extra type=keywords

properties from IDLgrPolygon

top mggrcube::getProperty

mggrcube::getProperty, scale=float/fltarr(3), translate=fltarr(3), _ref_extra=_ref_extra

Get properties.

Keywords

scale type=float/fltarr(3)

scale cube either equally or separately in each direction

translate type=fltarr(3)

translate the cube to another location

_ref_extra

top mggrcube::init

result = mggrcube::init(scale=float/fltarr(3), translate=fltarr(3), _extra=keywords)

Create a cube polygon.

Return value

1 for success, 0 for failure

Keywords

scale type=float/fltarr(3)

scale cube either equally or separately in each direction

translate type=fltarr(3)

translate the cube to another location

_extra type=keywords

properties from IDLgrPolygon

top mggrcube__define

mggrcube__define

Define instance variables.

File attributes

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