CSol
Public Member Functions | Protected Member Functions | List of all members
CSol_Grid_Op Class Reference

Carries out a range of operations on Grids, returning a new Grid. More...

#include <csol_grid_op.h>

Inherits Operation.

Public Member Functions

 CSol_Grid_Op ()
 
virtual ~CSol_Grid_Op ()
 

Protected Member Functions

virtual bool execute ()
 
virtual void setInputNotUpToDate (CSIRO::DataExecution::InputScalar &)
 

Detailed Description

This operation has two inputs, A and B. If A and B are both given, the operation uses A and B to produce the result. If only A is given, the operation uses an internal spatial layer called R to produce the result. The values in R are accrued every time the operation is executed, and can be reset using the 'Reset' dependancy. Two-input operations include addition, subtraction, multiplication, division, maximum, minimum, magnitude and script operations. The script operation uses a JavaScript syntax in which R, A and B can be used, and is read from the 'Script' input. The script must be in the form of a one-line expression such as 'R = A + B', or 'R = A > B ? A : B' One-input operations include distance, absolute value and alignment operations. The distance operations builds a distance map from the input grid using the negative-positive crossing as the zero distance interface. The alignment operation carries out boundary alignment on the boundaries of the Grid. The scalar operations use a single scalar input to operate on the grid, including setting the value of the grid as well as addition and multiplication by the scalar.

Constructor & Destructor Documentation

~CSol_Grid_Op ( )
virtual

Member Function Documentation

bool execute ( )
protectedvirtual
void setInputNotUpToDate ( CSIRO::DataExecution::InputScalar &  input)
protectedvirtual