public class CompositeProjection extends AbstractProjection implements Resetable, InverseProjection
defaultProjectionsX, Y, ZU, 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)
Resets graphics panel to a new state or its initial state.
|
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, transformclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getViewPort, transform, transformgetIDpublic CompositeProjection()
public CompositeProjection(String name)
public CompositeProjection(String name, Projection[] projections)
public String getFormula()
ProjectiongetFormula in interface ProjectiongetFormula in class AbstractProjectionpublic boolean supports(Class featureClass)
Projectionsupports in interface Projectionsupports in class AbstractProjectionpublic Feature getFeature(Class featureClass)
AbstractProjectiongetFeature in interface ProjectiongetFeature in class AbstractProjectionpublic void setViewPort(ViewPort viewPort)
ProjectionsetViewPort in interface ProjectionsetViewPort in class AbstractProjectionpublic void add(Projection p)
public List getProjections()
public double[] transform(double[] xyz)
Projectiontransform in interface Projectiontransform in class AbstractProjectionpublic double[][] transform(double[][] xyz,
int n)
AbstractProjectiontransform in interface Projectiontransform in class AbstractProjectionpublic double[] deltaTransform(double[] xyz)
ProjectiondeltaTransform in interface ProjectiondeltaTransform in class AbstractProjectionpublic double[] inverseTransform(double[] uvw)
throws UnsupportedOperationException
InverseProjectioninverseTransform in interface InverseProjectionUnsupportedOperationExceptionpublic double[] inverseDeltaTransform(double[] uvw)
throws UnsupportedOperationException
InverseProjectioninverseDeltaTransform in interface InverseProjectionUnsupportedOperationExceptionpublic Projection copy()
Projectioncopy in interface Projectioncopy in class AbstractProjectionpublic Object reset(Object newStates)
Resetablepublic void save(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl)
save in interface org.freehep.xml.io.XMLIOsave in class AbstractProjectionpublic void restore(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl)
restore in interface org.freehep.xml.io.XMLIOrestore in class AbstractProjectionCopyright © 1996-2014 FreeHEP. All Rights Reserved.