|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthep.wired.heprep.projection.AbstractProjection
public abstract class AbstractProjection
Base class for projections.
| Field Summary | |
|---|---|
static String |
defaultProjections
|
| Fields inherited from interface hep.wired.util.XYZindices |
|---|
X, Y, Z |
| Fields inherited from interface hep.wired.util.UVWindices |
|---|
U, V, W |
| Constructor Summary | |
|---|---|
AbstractProjection()
Creates a projection with the classname as name. |
|
AbstractProjection(String name)
Creates a named projection. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String defaultProjections
| Constructor Detail |
|---|
public AbstractProjection()
public AbstractProjection(String name)
| Method Detail |
|---|
public String getID()
getID in interface WiredRegistry.IDpublic String getName()
Projection
getName in interface Projectionpublic String getFormula()
Projection
getFormula in interface Projectionpublic boolean supports(Class featureClass)
Projection
supports in interface Projectionpublic Feature getFeature(Class featureClass)
getFeature in interface Projectionpublic void setViewPort(ViewPort viewPort)
Projection
setViewPort in interface Projectionpublic ViewPort getViewPort()
Projection
getViewPort in interface Projection
public double[] transform(ViewPort viewPort,
double[] xyz)
transform in interface Projectionpublic 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 Projectionpublic abstract double[] deltaTransform(double[] xyz)
Projection
deltaTransform in interface Projectionpublic abstract Projection copy()
Projection
copy in interface Projectionpublic String toString()
toString in class Object
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||