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