mglib

Personal IDL library for M. Galloy

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

vis/povray/

mggrpovraytubes__define.pro

object graphics


Represents a polyline in 3-dimensions by a series of cones.

Examples

To create some tubes to visualize streamlines of a vector field:

streamlines = obj_new('MGgrPOVRayTubes', data=verts, polylines=conn, $ /open, radius=0.5 - 0.5 / (findgen(nverts) + 1.1), $ color=[r[mag], g[mag], b[mag]])
See the example attached to the end of this file as a main-level program (only available if you have the source code version of this routine):
IDL> .run mggrpovraytubes__define
This should produce:

Class description for mggrpovraytubes

Inheritance

All ancestor classes: IDLGRPOLYLINE IDLGRGRAPHIC IDLGRCOMPONENT IDLITCOMPONENT mggrpovrayobject

Properties

Properties in mggrpovraytubes

_extra set init
_ref_extra get
finish get set init
no_shadow get set init
open get set init

set to control whether the ends are open or closed

radius get set init

radius of the cones; either a scalar or a fltarr(n) where there are n points in the polyline; default value is 1.0

Routines

Routines from mggrpovraytubes__define.pro

mggrpovraytubes::getProperty, open=open, radius=radius, finish=finish, no_shadow=no_shadow, _ref_extra=_ref_extra

Get properties.

mggrpovraytubes::setProperty, open=open, radius=radius, finish=finish, no_shadow=no_shadow, _extra=_extra

Set properties.

mggrpovraytubes::cleanup

Free resources.

result = mggrpovraytubes::init(open=open, radius=radius, finish=finish, no_shadow=no_shadow, _extra=_extra)

Create a POV-Ray tube object.

mggrpovraytubes__define

Define instance variables.

Routine details

top mggrpovraytubes::getProperty

mggrpovraytubes::getProperty, open=open, radius=radius, finish=finish, no_shadow=no_shadow, _ref_extra=_ref_extra

Get properties.

Keywords

open

set to control whether the ends are open or closed

radius

radius of the cones; either a scalar or a fltarr(n) where there are n points in the polyline; default value is 1.0

finish
no_shadow
_ref_extra

top mggrpovraytubes::setProperty

mggrpovraytubes::setProperty, open=open, radius=radius, finish=finish, no_shadow=no_shadow, _extra=_extra

Set properties.

Keywords

open

set to control whether the ends are open or closed

radius

radius of the cones; either a scalar or a fltarr(n) where there are n points in the polyline; default value is 1.0

finish
no_shadow
_extra

top mggrpovraytubes::cleanup

mggrpovraytubes::cleanup

Free resources.

top mggrpovraytubes::init

result = mggrpovraytubes::init(open=open, radius=radius, finish=finish, no_shadow=no_shadow, _extra=_extra)

Create a POV-Ray tube object.

Return value

1 for success, 0 for failure

Keywords

open

set to control whether the ends are open or closed

radius

radius of the cones; either a scalar or a fltarr(n) where there are n points in the polyline; default value is 1.0

finish
no_shadow
_extra

top mggrpovraytubes__define

mggrpovraytubes__define

Define instance variables.

File attributes

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