# API documentation for visualization library

## Michael Galloy

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

# visgrellipsoid__define.pro

object graphics

includes main-level program

Class representing an ellipse.

## Examples

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

 IDL> .run visgrellipsoid__define 
This should produce:

## Class description for visgrellipsoid

### Inheritance

• IDLGRMODEL

All ancestor classes: IDLGRMODEL IDLGRCONTAINER IDL_CONTAINER IDLGRCOMPONENT IDLITCOMPONENT

### Properties

pobj get type=object

underlying polygon object

_extra set init type=keywords

keywords to IDLgrModel::setProperty or IDLgrPolygon::setProperty

parent set type=object

not used, included only for compatibility to Orb class

a floating point number representing the radius of the ellipsoid (measured in data units) in the x-, y-, and z-directions

_ref_extra get
density get set init type=float

A floating point number representing the density at which the vertices should be generated along the surface of the orb

tex_coords init type=boolean

set this keyword to a nonzero value if texture map coordinates are to be generated for the orb

pos get set init type=fltarr(3)

A three-element vector, [x, y, z], specifying the position of the center of the ellipsoid, measured in data units

## Routines

visgrellipsoid::setProperty, pos=fltarr(3), radius=fltarr(3), density=float, parent=object, _extra=keywords

Set properties of the ellipsoid.

visgrellipsoid::getProperty, pos=fltarr(3), radius=fltarr(3), density=float, pobj=object, _ref_extra=_ref_extra

Get properties of the ellipsoid.

visgrellipsoid::print

Prints position, radius, and density of the ellipsoid for debugging purposes.

visgrellipsoid::_buildPoly

Sets the vertex and connectivity arrays for the polygon used to represent the orb.

visgrellipsoid::cleanup

Free resources.

result = visgrellipsoid::init(pos=fltarr(3), radius=fltarr(3), density=float, /tex_coords, _extra=keywords)

Initialize ellipsoid.

visgrellipsoid__define

Define member variables.

## top visgrellipsoid::setProperty

visgrellipsoid::setProperty, pos=fltarr(3), radius=fltarr(3), density=float, parent=object, _extra=keywords

Set properties of the ellipsoid.

### Keywords

pos type=fltarr(3)

A three-element vector, [x, y, z], specifying the position of the center of the ellipsoid, measured in data units

a floating point number representing the radius of the ellipsoid (measured in data units) in the x-, y-, and z-directions

density type=float

A floating point number representing the density at which the vertices should be generated along the surface of the orb

parent type=object

not used, included only for compatibility to Orb class

_extra type=keywords

keywords to IDLgrModel::setProperty or IDLgrPolygon::setProperty

## top visgrellipsoid::getProperty

visgrellipsoid::getProperty, pos=fltarr(3), radius=fltarr(3), density=float, pobj=object, _ref_extra=_ref_extra

Get properties of the ellipsoid.

### Keywords

pos type=fltarr(3)

A three-element vector, [x, y, z], specifying the position of the center of the ellipsoid, measured in data units

a floating point number representing the radius of the ellipsoid (measured in data units) in the x-, y-, and z-directions

density type=float

A floating point number representing the density at which the vertices should be generated along the surface of the orb

pobj type=object

underlying polygon object

_ref_extra

## top visgrellipsoid::print

visgrellipsoid::print

Prints position, radius, and density of the ellipsoid for debugging purposes.

## top visgrellipsoid::_buildPoly

visgrellipsoid::_buildPoly

Sets the vertex and connectivity arrays for the polygon used to represent the orb.

## top visgrellipsoid::cleanup

visgrellipsoid::cleanup

Free resources.

## top visgrellipsoid::init

result = visgrellipsoid::init(pos=fltarr(3), radius=fltarr(3), density=float, /tex_coords, _extra=keywords)

Initialize ellipsoid.

### Return value

1 for success, 0 for failure

### Keywords

pos type=fltarr(3)

A three-element vector, [x, y, z], specifying the position of the center of the ellipsoid, measured in data units

a floating point number representing the radius of the ellipsoid (measured in data units) in the x-, y-, and z-directions

density type=float

A floating point number representing the density at which the vertices should be generated along the surface of the orb

tex_coords type=boolean

set this keyword to a nonzero value if texture map coordinates are to be generated for the orb

_extra type=keywords

keywords to IDLgrModel::setProperty or IDLgrPolygon::setProperty

## top visgrellipsoid__define

visgrellipsoid__define

Define member variables.

## File attributes

 Modification date: Mon Nov 29 18:32:37 2010 Lines: 322 Docformat: rst rst