public abstract class AbstractProjection extends Object implements Projection
Modifier and Type | Field and Description |
---|---|
static String |
defaultProjections |
X, Y, Z
U, 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.ID
public String getName()
Projection
getName
in interface Projection
public String getFormula()
Projection
getFormula
in interface Projection
public boolean supports(Class featureClass)
Projection
supports
in interface Projection
public Feature getFeature(Class featureClass)
getFeature
in interface Projection
public void setViewPort(ViewPort viewPort)
Projection
setViewPort
in interface Projection
public ViewPort getViewPort()
Projection
getViewPort
in interface Projection
public double[] transform(ViewPort viewPort, double[] xyz)
transform
in interface Projection
public abstract double[] transform(double[] xyz)
Projection
transform
in interface Projection
public double[][] transform(ViewPort viewPort, double[][] xyz, int n)
transform
in interface Projection
public double[][] transform(double[][] xyz, int n)
transform
in interface Projection
public abstract double[] deltaTransform(double[] xyz)
Projection
deltaTransform
in interface Projection
public abstract Projection copy()
Projection
copy
in interface Projection
public void save(org.freehep.xml.io.XMLIOManager xmlioManager, org.jdom.Element nodeEl)
save
in interface org.freehep.xml.io.XMLIO
public void restore(org.freehep.xml.io.XMLIOManager xmlioManager, org.jdom.Element nodeEl)
restore
in interface org.freehep.xml.io.XMLIO
Copyright © 1996-2014 FreeHEP. All Rights Reserved.