ContourFinder class
Straightforward method of contouring some surface represented as a regular triangular mesh aiding in visualizing three dimensional surfaces on a two dimensional medium (e.g.computer graphics screen). Applications: Contouring functions of two variables such as topological maps, weather maps, spectrocopic data. For details of the algorithm see http://paulbourke.net/papers/conrec or https://debrief.github.io/tutorial/contouring_algorithm.html.
Constructors
- ContourFinder(ContourRenderer contourRenderer)
- Constructs a ContourFinder emitting its output to ContourRenderer.
Properties
- contourRenderer ↔ ContourRenderer
-
Object that knows how to draw the contour
read / write
-
h
↔ List<
double> -
read / write
-
sh
↔ List<
int> -
read / write
-
xh
↔ List<
double> -
read / write
-
yh
↔ List<
double> -
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
findContour(
List< Float64List> d, int ilb, int iub, int jlb, int jub, Float64List x, Float64List y, int nc, Float64List z) → void -
findContour is a contouring subroutine for rectangularily spaced data
It emits calls to a line drawing function, see ContourRenderer,
which draws a contour map. The coordinates emitted are in the same
units given in the
x
andy
arrays. Any number of contour levels may be specified but they must be in order of increasing value. Patrameters:d
- matrix of data to contourilb
,iub
,jlb
,jub
- index bounds of data matrix: d(r, s), r = 0...iub, s=0,...jub The number of horizontal and vertical data points designated iub and jub: matrix(rowcount, colcount) with rowcount = i = 0,..,nrows-1 (iub) and colcount= j = ncols-1 (jub) Graphics: The x axis coordinates (left to right) correspond to the colcount j: x(j) The y axis coordinates (top to bottom) correspond to the rowcount i: y(i) [...] -
xsect(
int p1, int p2) → double -
ysect(
int p1, int p2) → double -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited