public abstract class ParallelProjection extends AbstractProjection implements InverseProjection, Rotateable2D, Transformable2D, Rotateable3D, Transformable3D, Resetable
| Modifier and Type | Class and Description |
|---|---|
static class |
ParallelProjection.XY |
static class |
ParallelProjection.XZ |
static class |
ParallelProjection.YZ |
static class |
ParallelProjection.ZX |
static class |
ParallelProjection.ZY |
| Modifier and Type | Field and Description |
|---|---|
protected Matrix3D |
matrix |
protected Matrix3D |
resetMatrix |
defaultProjectionsX, Y, ZU, V, W| Modifier | Constructor and Description |
|---|---|
protected |
ParallelProjection()
Creates a 3D parallel projection.
|
protected |
ParallelProjection(Matrix3D matrix) |
protected |
ParallelProjection(Matrix3D matrix,
Matrix3D resetMatrix)
Used for cloning
|
| Modifier and Type | Method and Description |
|---|---|
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 |
rotate(double theta,
double nx,
double ny,
double nz) |
void |
save(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl) |
void |
scale(double s) |
void |
scale(double sx,
double sy) |
void |
scale(double sx,
double sy,
double sz) |
void |
setScale(double s) |
void |
setScale(double sx,
double sy) |
void |
setScale(double sx,
double sy,
double sz) |
void |
setTranslate(double tx,
double ty) |
void |
setTranslate(double tx,
double ty,
double tz) |
void |
shear(double shx,
double shy)
Shears the viewpoint.
|
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) |
void |
translate(double tx,
double ty,
double tz) |
copy, getFeature, getID, getName, getViewPort, setViewPort, supports, transform, transformclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopy, getFeature, getName, getViewPort, setViewPort, supports, transform, transformgetIDprotected ParallelProjection()
protected ParallelProjection(Matrix3D matrix)
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 String toString()
AbstractProjectiontoString in class AbstractProjectionpublic void rotate(double theta,
double nx,
double ny,
double nz)
rotate in interface Rotateable3Dpublic 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,
double sz)
scale in interface Scaleable3Dpublic void setScale(double sx,
double sy,
double sz)
setScale in interface Scaleable3Dpublic double[] getScale()
getScale in interface Scaleable2DgetScale in interface Scaleable3Dpublic void translate(double tx,
double ty,
double tz)
translate in interface Translateable3Dpublic void setTranslate(double tx,
double ty,
double tz)
setTranslate in interface Translateable3Dpublic double[] getTranslate()
getTranslate in interface Translateable2DgetTranslate in interface Translateable3Dpublic void scale(double sx,
double sy)
scale in interface Scaleable2Dpublic void setScale(double sx,
double sy)
setScale in interface Scaleable2Dpublic void shear(double shx,
double shy)
[ 1 shx 0 0 ]
[ shy 1 0 0 ]
[ 0 0 1 0 ]
[ 0 0 0 1 ]
shear in interface Shearable2Dpublic void translate(double tx,
double ty)
translate in interface Translateable2Dpublic void setTranslate(double tx,
double ty)
setTranslate 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.