public class FlatProjection extends AbstractProjection implements InverseProjection, Rotateable2D, Transformable2D, Resetable
| Modifier and Type | Field and Description |
|---|---|
static double |
defaultScaleFactor |
defaultProjectionsX, Y, ZU, V, W| Constructor and Description |
|---|
FlatProjection()
Creates a 2D projection.
|
FlatProjection(double s)
Creates a 2D projection with given scale factor.
|
| Modifier and Type | Method and Description |
|---|---|
Projection |
copy()
Returns a deep copy of the projection.
|
double[] |
deltaTransform(double[] xyz)
Returns an array of length 3: uvw = delta projection(xyz).
|
String |
getFormula()
Returns the formula in text readable form
|
double[] |
getModelTranslation(double[] uvw,
ViewPort viewPort) |
double[] |
getScale() |
double[] |
getScreenTranslation(double[] xyz,
ViewPort viewPort) |
double[] |
getTranslate() |
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 newState) |
void |
restore(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl) |
void |
rotate(double theta) |
void |
save(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl) |
void |
scale(double s) |
void |
scale(double sx,
double sy) |
void |
setScale(double s) |
void |
setScale(double sx,
double sy) |
void |
setTranslate(double tx,
double ty) |
void |
shear(double shx,
double shy) |
String |
toString()
Returns name of projection
|
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).
|
void |
translate(double tx,
double ty) |
getFeature, getID, getName, getViewPort, setViewPort, supports, transform, transformclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFeature, getName, getViewPort, setViewPort, supports, transform, transformgetIDpublic static final double defaultScaleFactor
public FlatProjection(double s)
public FlatProjection()
public String getFormula()
ProjectiongetFormula in interface ProjectiongetFormula in class AbstractProjectionpublic 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 String toString()
AbstractProjectiontoString in class AbstractProjectionpublic void rotate(double theta)
rotate in interface Rotateable2Dpublic double[] getModelTranslation(double[] uvw,
ViewPort viewPort)
getModelTranslation in interface Translateablepublic double[] getScreenTranslation(double[] xyz,
ViewPort viewPort)
getScreenTranslation in interface Translateablepublic void scale(double sx,
double sy)
scale in interface Scaleable2Dpublic void setScale(double sx,
double sy)
setScale in interface Scaleable2Dpublic double[] getScale()
getScale in interface Scaleable2Dpublic void shear(double shx,
double shy)
shear in interface Shearable2Dpublic void translate(double tx,
double ty)
translate in interface Translateable2Dpublic void setTranslate(double tx,
double ty)
setTranslate in interface Translateable2Dpublic double[] getTranslate()
getTranslate in interface Translateable2Dpublic 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.