public abstract class PerspectiveProjection extends ParallelProjection
| Modifier and Type | Class and Description |
|---|---|
static class |
PerspectiveProjection.XY |
static class |
PerspectiveProjection.XZ |
static class |
PerspectiveProjection.YZ |
static class |
PerspectiveProjection.ZX |
static class |
PerspectiveProjection.ZY |
matrix, resetMatrixdefaultProjectionsX, Y, ZU, V, W| Modifier | Constructor and Description |
|---|---|
protected |
PerspectiveProjection()
Creates a 3D perpective projection.
|
protected |
PerspectiveProjection(Matrix3D matrix) |
protected |
PerspectiveProjection(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[] |
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)
Resets graphics panel to a new state or its initial state.
|
void |
restore(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl) |
void |
save(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl) |
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).
|
getModelTranslation, getScale, getScreenTranslation, getTranslate, rotate, rotate, scale, scale, scale, setScale, setScale, setScale, setTranslate, setTranslate, shear, translate, translatecopy, getFeature, getID, getName, getViewPort, setViewPort, supports, transform, transformclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopy, getFeature, getName, getViewPort, setViewPort, supports, transform, transformgetIDprotected PerspectiveProjection()
protected PerspectiveProjection(Matrix3D matrix)
public String getFormula()
ProjectiongetFormula in interface ProjectiongetFormula in class ParallelProjectionpublic double[] transform(double[] xyz)
Projectiontransform in interface Projectiontransform in class ParallelProjectionpublic double[][] transform(double[][] xyz,
int n)
AbstractProjectiontransform in interface Projectiontransform in class ParallelProjectionpublic double[] deltaTransform(double[] xyz)
ProjectiondeltaTransform in interface ProjectiondeltaTransform in class ParallelProjectionpublic double[] inverseTransform(double[] uvw)
throws UnsupportedOperationException
InverseProjectioninverseTransform in interface InverseProjectioninverseTransform in class ParallelProjectionUnsupportedOperationExceptionpublic double[] inverseDeltaTransform(double[] uvw)
throws UnsupportedOperationException
InverseProjectioninverseDeltaTransform in interface InverseProjectioninverseDeltaTransform in class ParallelProjectionUnsupportedOperationExceptionpublic String toString()
AbstractProjectiontoString in class ParallelProjectionpublic Object reset(Object newState)
Resetablereset in interface Resetablereset in class ParallelProjectionnewState - new state, if null, use initial state of graphics panel.public void save(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl)
save in interface org.freehep.xml.io.XMLIOsave in class ParallelProjectionpublic void restore(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl)
restore in interface org.freehep.xml.io.XMLIOrestore in class ParallelProjectionCopyright © 1996-2014 FreeHEP. All Rights Reserved.