hep.wired.services
Interface ViewPort

All Superinterfaces:
UVWindices, WiredRegistry.ID, org.freehep.xml.io.XMLIO, XYZindices
All Known Implementing Classes:
RectangularViewPort

public interface ViewPort
extends WiredRegistry.ID, XYZindices, UVWindices, org.freehep.xml.io.XMLIO

Transforms coordinates in a world-unit system (X,Y,Z) with intervals (-1,1) into screen coordinates (U,V,W).

Version:
$Id: ViewPort.java 8598 2006-08-14 20:38:02Z duns $
Author:
Mark Donszelmann

Field Summary
 
Fields inherited from interface hep.wired.util.XYZindices
X, Y, Z
 
Fields inherited from interface hep.wired.util.UVWindices
U, V, W
 
Method Summary
 ViewPort copy()
          Returns a copy of the viewport
 double[] deltaTransform(double[] xyz)
          Returns an array of length 3: uvw[] = viewport-delta(xyz[]).
 String getName()
          Returns the name of the View Port.
 double[] inverseDeltaTransform(double[] uvw)
          Returns an array of length 3: xyz[] = inverse-viewport-delta(uvw[]).
 double[] inverseTransform(double[] uvw)
          Returns an array of length 3: xyz[] = inverse-viewport(uvw[]).
 double[] transform(double[] xyz)
          Returns an array of length 3: uvw = viewport(xyz).
 double[][] transform(double[][] xyz, int n)
          Returns an array of length 3*n: uvw[][n] = viewport(xyz[][n]).
 
Methods inherited from interface hep.wired.util.WiredRegistry.ID
getID
 
Methods inherited from interface org.freehep.xml.io.XMLIO
restore, save
 

Method Detail

getName

String getName()
Returns the name of the View Port.


copy

ViewPort copy()
Returns a copy of the viewport


transform

double[] transform(double[] xyz)
Returns an array of length 3: uvw = viewport(xyz). The z component is not touched. The returned array may have a lifetime up to the next call to this method on this object.


transform

double[][] transform(double[][] xyz,
                     int n)
Returns an array of length 3*n: uvw[][n] = viewport(xyz[][n]). The z component is not touched. The returned array may have a lifetime up to the next call to this method on this object. The number of "valid" coordinates is given by n.


deltaTransform

double[] deltaTransform(double[] xyz)
Returns an array of length 3: uvw[] = viewport-delta(xyz[]). The z component is not touched. The returned array may have a lifetime up to the next call to this method on this object.


inverseTransform

double[] inverseTransform(double[] uvw)
Returns an array of length 3: xyz[] = inverse-viewport(uvw[]). The w component is not touched. The returned array may have a lifetime up to the next call to this method on this object.


inverseDeltaTransform

double[] inverseDeltaTransform(double[] uvw)
Returns an array of length 3: xyz[] = inverse-viewport-delta(uvw[]). The w component is not touched. The returned array may have a lifetime up to the next call to this method on this object.



Copyright © 1996-2013 FreeHEP. All Rights Reserved.