A user function class for writing a circle to a ScalarField. The shape of
the output must be defined at definition time. The position and size of the
circle are specified by ScalarFields which can change over time.
Example:
val circleWriter = new CircleWriter(Shape(10,10))
val row = ScalarField(5f)
val column = ScalarField(5f)
val radius = ScalarField(5f)
val fieldWithCircle = cirlceWriter(row, column, radius)
Note that CircleWriters contains internal state that is mutated each time
the operator is called, requiring a different CircleWriter for each cross
you want to generate.
Linear Supertypes
Operator, SemanticError, CompilerError, AnyRef, Any
A user function class for writing a circle to a
ScalarField
. The shape of the output must be defined at definition time. The position and size of the circle are specified byScalarField
s which can change over time.Example:
val circleWriter = new CircleWriter(Shape(10,10)) val row = ScalarField(5f) val column = ScalarField(5f) val radius = ScalarField(5f) val fieldWithCircle = cirlceWriter(row, column, radius)
Note that
CircleWriter
s contains internal state that is mutated each time the operator is called, requiring a differentCircleWriter
for each cross you want to generate.