ScatterView3d:
Filter:
Classes (extension) | GUI > Accessories | Libraries > MathLib > ScatterViews

ScatterView3d : Object
ExtensionExtension

Plot a collection of points in 3D

Description

Plot a collection of points in 3D

Part of MathLib, a diverse library of mathematical functions.

Class Methods

ScatterView3d.new(parent, bounds, data, specX, specY, specZ, rotX: 0, rotY: 0, rotZ: 0)

Arguments:

parent

Parent view or window

bounds

Bounds

data

An array of [[x0,y0,z0], [x1,y1,z1], ...[xN,yN,zN]]

specX

ControlSpec with min/max of the plotted range of dimension X

specY

ControlSpec with min/max of the plotted range of dimension Y

specZ

ControlSpec with min/max of the plotted range of dimension Z

rotX

Initial X rotation in radians

rotY

Initial Y rotation in radians

rotZ

Initial Z rotation in radians

Inherited class methods

Instance Methods

.data = data

Get or set data array.

Arguments:

data

An array of [[x0,y0,z0], [x1,y1,z1], ...[xN,yN,zN]]

.refresh

Refresh the view. You will need to call this after making any changes to data or settings.

.rotX = val

Rotate

Arguments:

val

radians

.rotY = val

Rotate

Arguments:

val

radians

.rotZ = val

Rotate

Arguments:

val

radians

.rot(rX, rY, rZ)

Rotate

Arguments:

rX

radians

rY

radians

rZ

radians

.drawMethod = method

Set the shape that will be drawn for each point.

Arguments:

method

One of: [\fillRect, \fillOval, \strokeOval, \strokeRect]

.symbolSize = val

Size in pixels of the shape plotted for each point

Arguments:

val

pixels

.symbolColor = val

Color of the shape plotted for each point

Arguments:

val

Color

.isHighlight = val

Set highlighting mode which adds a crosshair at the selected point or points

Arguments:

val

Boolean

Returns:

Boolean

.highlightItem = item

Highlight a point

Arguments:

item

Integer index in data array

.highlightRange(start, end)

Highlight multiple points

Arguments:

start

Integer index in data array

end

Integer index in data array

.highlightColor = color

Set color of highlighted item

.highlightSize = size

Set highlight extend

.background = val

set background-color

Inherited instance methods

Undocumented instance methods

.resize

.resize = resize

Examples

Authors

Till Bovermann, 2005.