hep.wired.heprep.projection
Class CylindricalFishEyeProjection

java.lang.Object
  extended by hep.wired.heprep.projection.AbstractProjection
      extended by hep.wired.heprep.projection.VariableProjection
          extended by hep.wired.heprep.projection.CylindricalFishEyeProjection
All Implemented Interfaces:
Resetable, NamedVariables, InverseProjection, Projection, ProjectionFeature, Feature, UVWindices, WiredRegistry.ID, XYZindices, org.freehep.xml.io.XMLIO

public class CylindricalFishEyeProjection
extends VariableProjection
implements InverseProjection, Resetable

Blows up the center of the plot cylindrically while squeezing the outer parts.

Version:
$Id: CylindricalFishEyeProjection.java 2161 2005-08-02 22:47:40Z duns $
Author:
Mark Donszelmann

Field Summary
 
Fields inherited from class hep.wired.heprep.projection.AbstractProjection
defaultProjections
 
Fields inherited from interface hep.wired.util.XYZindices
X, Y, Z
 
Fields inherited from interface hep.wired.util.UVWindices
U, V, W
 
Constructor Summary
CylindricalFishEyeProjection()
           
 
Method Summary
 Projection copy()
          Returns a deep copy of the projection.
 double[] deltaTransform(double[] xyz)
          Returns an array of length 3: uvw = delta projection(xyz).
 String getFormula()
          Returns the formula in text readable form
 double[] inverseDeltaTransform(double[] uvw)
          Returns an array of length 3: xyz = inverse delta projection(uvw).
 double[] inverseTransform(double[] uvw)
          Returns an array of length 3: xyz = inverse projection(uvw).
 Object reset(Object newState)
          Resets graphics panel to a new state or its initial state.
 double[] transform(double[] xyz)
          Returns an array of length 3: uvw = projection(xyz).
 
Methods inherited from class hep.wired.heprep.projection.VariableProjection
addVariable, addVariable, addVariable, addVariable, addVariable, exists, getBooleanVariable, getDescription, getDoubleVariable, getIntegerVariable, getName, getUnit, getVariableNames, getVariables, multiplyVariable, multiplyVariable, restore, save, setVariable, setVariable, setVariable, toString
 
Methods inherited from class hep.wired.heprep.projection.AbstractProjection
getFeature, getID, getViewPort, setViewPort, supports, transform, transform, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface hep.wired.heprep.services.Projection
getFeature, getName, getViewPort, setViewPort, supports, transform, transform, transform
 
Methods inherited from interface hep.wired.util.WiredRegistry.ID
getID
 
Methods inherited from interface org.freehep.xml.io.XMLIO
restore, save
 

Constructor Detail

CylindricalFishEyeProjection

public CylindricalFishEyeProjection()
Method Detail

getFormula

public String getFormula()
Description copied from interface: Projection
Returns the formula in text readable form

Specified by:
getFormula in interface Projection
Overrides:
getFormula in class AbstractProjection

transform

public double[] transform(double[] xyz)
Description copied from interface: Projection
Returns an array of length 3: uvw = projection(xyz). The returned array may have a lifetime up to the next call to this method on this object.

Specified by:
transform in interface Projection
Specified by:
transform in class AbstractProjection

deltaTransform

public double[] deltaTransform(double[] xyz)
Description copied from interface: Projection
Returns an array of length 3: uvw = delta projection(xyz). The returned array may have a lifetime up to the next call to this method on this object.

Specified by:
deltaTransform in interface Projection
Specified by:
deltaTransform in class AbstractProjection

inverseTransform

public double[] inverseTransform(double[] uvw)
                          throws UnsupportedOperationException
Description copied from interface: InverseProjection
Returns an array of length 3: xyz = inverse projection(uvw). The returned array may have a lifetime up to the next call to this method on this object. UnsupportedOperation is thrown in no inverse projection is possible.

Specified by:
inverseTransform in interface InverseProjection
Throws:
UnsupportedOperationException

inverseDeltaTransform

public double[] inverseDeltaTransform(double[] uvw)
                               throws UnsupportedOperationException
Description copied from interface: InverseProjection
Returns an array of length 3: xyz = inverse delta projection(uvw). The returned array may have a lifetime up to the next call to this method on this object. UnsupportedOperation is thrown in no inverse delta projection is possible.

Specified by:
inverseDeltaTransform in interface InverseProjection
Throws:
UnsupportedOperationException

copy

public Projection copy()
Description copied from interface: Projection
Returns a deep copy of the projection.

Specified by:
copy in interface Projection
Specified by:
copy in class AbstractProjection

reset

public Object reset(Object newState)
Description copied from interface: Resetable
Resets graphics panel to a new state or its initial state.

Specified by:
reset in interface Resetable
Parameters:
newState - new state, if null, use initial state of graphics panel.
Returns:
old state just before setting the new state


Copyright © 1996-2013 FreeHEP. All Rights Reserved.