org.das2.graph.PolyMeshRenderer

render a 2-D poly (typically triangle) mesh. This was introduced just to identify this schema. This renderer needs rank 3 data with 2 bundled datasets, the points in X-Y data space and the triangles (or polys) which connect them. When a rank 1 dataset with a triangleMesh as DEPEND_0 is passed in, then colors or text will be drawn. Note, QDataSet should not support a join of non-qube datasets, so all polygons should have the same length (all triangles or all four-sided polys). Most codes will work fine if this is not the case. Applications for this include marking data and drawing tesselations.

PolyMeshRenderer( )


acceptsData

acceptsData( QDataSet ds ) → boolean

return true if the renderer accepts data in this form.

Parameters

ds - a QDataSet

Returns:

a boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


doAutorange

doAutorange( QDataSet ds ) → QDataSet

autorange on the data, returning a rank 2 bounds for the dataset.

Parameters

ds - the dataset to autorange.

Returns:

a bounds dataset, where result[0,:] is the xrange and result[1,:] is the yrange.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getControl

getControl( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


render

render( java.awt.Graphics2D g, org.das2.graph.DasAxis xaxis, org.das2.graph.DasAxis yaxis ) → void

Parameters

g - a Graphics2D
xaxis - a DasAxis
yaxis - a DasAxis

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setControl

setControl( String s ) → void

Parameters

s - a String

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]