public abstract class AbstractProjection extends Object implements Projection
| Modifier and Type | Field and Description |
|---|---|
static String |
defaultProjections |
X, Y, ZU, V, W| Constructor and Description |
|---|
AbstractProjection()
Creates a projection with the classname as name.
|
AbstractProjection(String name)
Creates a named projection.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Projection |
copy()
Returns a deep copy of the projection.
|
abstract 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
|
String |
getID() |
String |
getName()
Returns the name of the projection.
|
ViewPort |
getViewPort()
Returns the associated viewport.
|
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.
|
String |
toString()
Returns name of projection
|
abstract 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).
|
double[] |
transform(ViewPort viewPort,
double[] xyz)
Implements this method by a call to transform([]), followed by the
viewPort.
|
double[][] |
transform(ViewPort viewPort,
double[][] xyz,
int n)
Implements this method by a call to transform([][], n), followed by
running all points through the viewPort.
|
public static final String defaultProjections
public AbstractProjection()
public AbstractProjection(String name)
public String getID()
getID in interface WiredRegistry.IDpublic String getName()
ProjectiongetName in interface Projectionpublic String getFormula()
ProjectiongetFormula in interface Projectionpublic boolean supports(Class featureClass)
Projectionsupports in interface Projectionpublic Feature getFeature(Class featureClass)
getFeature in interface Projectionpublic void setViewPort(ViewPort viewPort)
ProjectionsetViewPort in interface Projectionpublic ViewPort getViewPort()
ProjectiongetViewPort in interface Projectionpublic double[] transform(ViewPort viewPort, double[] xyz)
transform in interface Projectionpublic abstract double[] transform(double[] xyz)
Projectiontransform in interface Projectionpublic double[][] transform(ViewPort viewPort, double[][] xyz, int n)
transform in interface Projectionpublic double[][] transform(double[][] xyz,
int n)
transform in interface Projectionpublic abstract double[] deltaTransform(double[] xyz)
ProjectiondeltaTransform in interface Projectionpublic abstract Projection copy()
Projectioncopy in interface Projectionpublic void save(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl)
save in interface org.freehep.xml.io.XMLIOpublic void restore(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl)
restore in interface org.freehep.xml.io.XMLIOCopyright © 1996-2014 FreeHEP. All Rights Reserved.