Dart Documentationorson_chartsSurfaceRenderer

SurfaceRenderer class

A renderer used to draw surface plots (the renderer is used with the XYZPlot class). Note that the renderer does not use a dataset, it directly samples the function that is supplied to its constructor. However, you need to assign an empty dataset to the plot while using this renderer.

Extends

AbstractRenderer3D > AbstractXYZRenderer > SurfaceRenderer

Implements

ColorScaleRenderer, XYZRenderer

Constructors

new SurfaceRenderer(Function3D function) #

Creates a new surface renderer for the specified function.

Properties

ColorScale get colorScale #

Returns the color scale used by the renderer.

void set colorScale(ColorScale colorScale) #

Sets the color scale for the renderer and sends a Renderer3DChangeEvent to all registered listeners.

XYZColorSource get colorSource #

inherited from AbstractXYZRenderer

Returns the color source for the renderer.

void set colorSource(XYZColorSource colorSource) #

inherited from AbstractXYZRenderer

Sets the color source and sends a Renderer3DChangeEvent to all registered listeners.

final ComposeType composeType #

Overridden to return ComposeType.ALL so that the XYZPlot knows to call the composeAll() method for rendering.

bool get drawFaceOutlines #

Returns the flag that controls whether or not face outlines are drawn.

void set drawFaceOutlines(bool draw) #

Sets the flag that controls whether or not face outlines are drawn, and sends a Renderer3DChangeEvent to all registered listeners.

Function3D function #

XYZPlot get plot #

inherited from AbstractXYZRenderer

Returns the plot that this renderer is assigned to.

void set plot(XYZPlot plot) #

inherited from AbstractXYZRenderer

Sets the plot that the renderer is assigned to.

int get xSamples #

Returns the number of samples along the x-range that the renderer will use. The default value is 25.

void set xSamples(int count) #

Sets the number of samples along the x-range and sends a Renderer3DChangeEvent to all registered listeners.

int get zSamples #

Returns the number of samples along the z-range that the renderer will use. The default value is 25.

void set zSamples(int count) #

Sets the number of samples along the z-range and sends a change event to all registered listeners.

Methods

void addChangeListener(Renderer3DChangeListener listener) #

inherited from AbstractRenderer3D

Registers a listener so that it will receive notification of changes to the renderer.

docs inherited from Renderer3D

void composeAll(XYZPlot plot, World world, Dimension3D dimensions, num xOffset, num yOffset, num zOffset) #

Composes the 3D representation of the data in a single operation.

void composeItem(XYZDataset dataset, int series, int item, World world, Dimension3D dimensions, num xOffset, num yOffset, num zOffset) #

Creates the object(s) required to represent a data item and adds them to the world. This method is only called if composeType returns PER_ITEM.

docs inherited from XYZRenderer

List<Point3D> facePoints1(num x0, num x1, num z0, num z1, num y00, num y01, num y11, Range yRange) #

List<Point3D> facePoints2(num x0, num x1, num z0, num z1, num y00, num y11, num y10, Range yRange) #

Range findXRange(XYZDataset dataset) #

Finds the range of values that should be used for the x-axis. Because the renderer is sampling a function and knows nothing of the required range, this method simply returns the current range from the x-axis.

Range findYRange(XYZDataset dataset) #

Returns the range of y-values in the dataset based on the renderer's sampling range.

Range findZRange(XYZDataset dataset) #

Finds the range of values that should be used for the z-axis. Because the renderer is sampling a function and knows nothing of the required range, this method simply returns the current range from the z-axis.

void fireChangeEvent() #

inherited from AbstractRenderer3D

Sends a Renderer3DChangeEvent (with this renderer as the source) to all registered listeners.

Point3D intersectPoint(num x0, num y0, num z0, num x1, num y1, num z1, num yy) #

void receive(ChartElementVisitor visitor) #

inherited from AbstractRenderer3D

Receives a visitor. This is part of a general mechanism for traversing all the elements that make up a chart structure.

docs inherited from ChartElement

void removeChangeListener(Renderer3DChangeListener listener) #

inherited from AbstractRenderer3D

Deregisters a listener so that it will no longer receive notification of changes to the renderer.

docs inherited from Renderer3D

void setColors(List<Color> colors) #

inherited from AbstractXYZRenderer

Sets the colors for the renderer. This is a convenience method that will typically update or replace the renderer's colorSource. See the documentation of specific implementations for details.

docs inherited from XYZRenderer