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

ScatterView3d
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

.new

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

Instance Methods

.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

Rotate

Arguments:

val

radians

.rotY

Rotate

Arguments:

val

radians

.rotZ

Rotate

Arguments:

val

radians

.rot

Rotate

Arguments:

rX

radians

rY

radians

rZ

radians

.drawMethod

Set the shape that will be drawn for each point.

Arguments:

method

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

.symbolSize

Size in pixels of the shape plotted for each point

Arguments:

val

pixels

.symbolColor

Color of the shape plotted for each point

Arguments:

val

Color

.isHighlight

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

Arguments:

val

Boolean

Returns:

Boolean

.highlightItem

Highlight a point

Arguments:

item

Integer index in data array

.highlightRange

Highlight multiple points

Arguments:

start

Integer index in data array

end

Integer index in data array

.highlightColor

Set color of highlighted item

.highlightSize

Set highlight extend

.background

set background-color

Examples

Authors

Till Bovermann, 2005.