JavaGrinders.spatial
Class Constraint

java.lang.Object
  extended by JavaGrinders.spatial.GridSpace3D
      extended by JavaGrinders.spatial.Constraint
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
Arena, WrapAroundWorld

public class Constraint
extends GridSpace3D

implements the spatially explicit stage for the modelling


Field Summary
 
Fields inherited from class JavaGrinders.spatial.GridSpace3D
doWarnings, xGrid, xyRatio, yGrid, zGrid
 
Constructor Summary
Constraint()
          empty constructor
Constraint(double lowX, double highX, double lowY, double highY)
          constructor with the Dimensions provided
Constraint(double lowX, double highX, double lowY, double highY, double lowZ, double highZ)
          constructor with the Dimensions provided
 
Method Summary
 Capture reMap(Capture aCap)
          returns the Capture remapped according to the rules of the constraint
 SpatialVector reMap(SpatialVector aSVec)
          returns the spatial vector remapped according to the rules of the constraint
 
Methods inherited from class JavaGrinders.spatial.GridSpace3D
clone, contains, contains, contains, getHighX, getHighY, getHighZ, getLowX, getLowY, getLowZ, getPixelX, getPixelY, getPixelZ, getSameXYScale, getSameXYZScale, getXScale, getXYBorders, getXYRatio, getXZRatio, getYScale, getZScale, growToInclude, setNUnits, setNUnits, setSameXYScale, setSameXYZScale, setWarnings, setXScale, setYScale, setZScale, toString, toXYQDRect, toXYRectangle, updatePixelExtent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Constraint

public Constraint(double lowX,
                  double highX,
                  double lowY,
                  double highY,
                  double lowZ,
                  double highZ)
constructor with the Dimensions provided

Parameters:
lowX - low value for x
highX - high value for x
lowY - low value for y
highY - high value for y
lowZ - low value for z
highZ - high value for z

Constraint

public Constraint()
empty constructor


Constraint

public Constraint(double lowX,
                  double highX,
                  double lowY,
                  double highY)
constructor with the Dimensions provided

Parameters:
lowX - low value for x
highX - high value for x
lowY - low value for y
highY - high value for y
Method Detail

reMap

public Capture reMap(Capture aCap)
returns the Capture remapped according to the rules of the constraint

Parameters:
aCap - the Capture Capture to remap

reMap

public SpatialVector reMap(SpatialVector aSVec)
returns the spatial vector remapped according to the rules of the constraint

Parameters:
aSVec - the SpatialVector SpatialVector to remap