hep.wired.heprep.projection
Class RhoZProjection

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

public class RhoZProjection
extends VariableProjection
implements InverseProjection, Resetable

Projects R : sqrt(x^2 + y^2) and Z.

Version:
$Id: RhoZProjection.java 8598 2006-08-14 20:38:02Z 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
RhoZProjection()
           
 
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).
 double[][] transform(double[][] xyz, int n)
          Implements this method in terms of double[] transform(double[] 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
 
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
 
Methods inherited from interface hep.wired.util.WiredRegistry.ID
getID
 
Methods inherited from interface org.freehep.xml.io.XMLIO
restore, save
 

Constructor Detail

RhoZProjection

public RhoZProjection()
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

transform

public double[][] transform(double[][] xyz,
                            int n)
Description copied from class: AbstractProjection
Implements this method in terms of double[] transform(double[] xyz). Not a very efficient implementation, so concrete projections should probably override this method with something better.

Specified by:
transform in interface Projection
Overrides:
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.