Platforms to show: All Mac Windows Linux Cross-Platform

CDContourLayerMBS class

Super class: CDLayerMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The ContourLayer class represents contour layers

CDContourLayerMBS is a subclass of CDLayerMBS.

CDContourLayerMBS objects are created by using CDXYChartMBS.addContourLayer.

The data for the CDContourLayerMBS are the z values at some points in the xy plane. Both gridded and scattered data points are supported.

Using the data, the ContourLayer computes the z values of all pixels in the xy plane. The computation can be based on spline or bilinear/line surface fitting, configurable using CDContourLayerMBS.setSmoothInterpolation.

The ContourLayer then colors the pixels based on the z values, and draws contour lines to join positions with the same z values. The color mapping and contour levels are controlled by the ColorAxis object of the ContourLayer, obtainable using CDContourLayerMBS.colorAxis.

If you need to change colors for the contour layer, please use ColorAxis.setColorGradient:

Call myContourLayer.colorAxis().setColorGradient(True, anArrayOfColors)

ChartDirector will then use the array of colors, and interpolate among them, to fill the contour layer. For example, if the array of colors contain 3 colors red, green and blue, ChartDirector will interpolate from red to green for half of the z-levels, and green to blue for the other half.
Subclass of the CDLayerMBS class.
This is a subclass of an abstract class. You can't create an instance, but you can get one from various plugin functions.

Super class CDLayerMBS

This class has no sub classes.

Some methods using this class:

Some examples using this class:

Xojo Developer Magazine


The items on this page are in the following plugins: MBS ChartDirector Plugin.


CDColorAxisMBS   -   CDDataAcceleratorMBS


The biggest plugin in space...