public class CompositeProjection extends AbstractProjection implements Resetable, InverseProjection
defaultProjections
X, Y, Z
U, V, W
Constructor and Description |
---|
CompositeProjection()
Creates a composite projection.
|
CompositeProjection(String name)
Creates a named empty composite projection.
|
CompositeProjection(String name,
Projection[] projections)
Creates a named composite projection filled with the given array of
projections.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Projection p)
Adds a projection to the end of the list.
|
Projection |
copy()
Returns a deep copy of the projection.
|
double[] |
deltaTransform(double[] xyz)
Returns an array of length 3: uvw = delta projection(xyz).
|
Feature |
getFeature(Class featureClass)
Returns feature if supported by this projection.
|
String |
getFormula()
Returns the formula in text readable form
|
List |
getProjections()
Returns the list of projections.
|
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 newStates) |
void |
restore(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl) |
void |
save(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl) |
void |
setViewPort(ViewPort viewPort)
Sets the associated viewport.
|
boolean |
supports(Class featureClass)
Return true if this (composite) projection implements this featureClass.
|
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).
|
getID, getName, getViewPort, toString, transform, transform
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName, getViewPort, transform, transform
getID
public CompositeProjection()
public CompositeProjection(String name)
public CompositeProjection(String name, Projection[] projections)
public String getFormula()
Projection
getFormula
in interface Projection
getFormula
in class AbstractProjection
public boolean supports(Class featureClass)
Projection
supports
in interface Projection
supports
in class AbstractProjection
public Feature getFeature(Class featureClass)
AbstractProjection
getFeature
in interface Projection
getFeature
in class AbstractProjection
public void setViewPort(ViewPort viewPort)
Projection
setViewPort
in interface Projection
setViewPort
in class AbstractProjection
public void add(Projection p)
public List getProjections()
public double[] transform(double[] xyz)
Projection
transform
in interface Projection
transform
in class AbstractProjection
public double[][] transform(double[][] xyz, int n)
AbstractProjection
transform
in interface Projection
transform
in class AbstractProjection
public double[] deltaTransform(double[] xyz)
Projection
deltaTransform
in interface Projection
deltaTransform
in class AbstractProjection
public double[] inverseTransform(double[] uvw) throws UnsupportedOperationException
InverseProjection
inverseTransform
in interface InverseProjection
UnsupportedOperationException
public double[] inverseDeltaTransform(double[] uvw) throws UnsupportedOperationException
InverseProjection
inverseDeltaTransform
in interface InverseProjection
UnsupportedOperationException
public Projection copy()
Projection
copy
in interface Projection
copy
in class AbstractProjection
public void save(org.freehep.xml.io.XMLIOManager xmlioManager, org.jdom.Element nodeEl)
save
in interface org.freehep.xml.io.XMLIO
save
in class AbstractProjection
public void restore(org.freehep.xml.io.XMLIOManager xmlioManager, org.jdom.Element nodeEl)
restore
in interface org.freehep.xml.io.XMLIO
restore
in class AbstractProjection
Copyright © 1996-2014 FreeHEP. All Rights Reserved.