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, resetMatrix
defaultProjections
X, Y, Z
U, 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) |
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, translate
copy, getFeature, getID, getName, getViewPort, setViewPort, supports, transform, transform
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, getFeature, getName, getViewPort, setViewPort, supports, transform, transform
getID
protected PerspectiveProjection()
protected PerspectiveProjection(Matrix3D matrix)
public String getFormula()
Projection
getFormula
in interface Projection
getFormula
in class ParallelProjection
public double[] transform(double[] xyz)
Projection
transform
in interface Projection
transform
in class ParallelProjection
public double[][] transform(double[][] xyz, int n)
AbstractProjection
transform
in interface Projection
transform
in class ParallelProjection
public double[] deltaTransform(double[] xyz)
Projection
deltaTransform
in interface Projection
deltaTransform
in class ParallelProjection
public double[] inverseTransform(double[] uvw) throws UnsupportedOperationException
InverseProjection
inverseTransform
in interface InverseProjection
inverseTransform
in class ParallelProjection
UnsupportedOperationException
public double[] inverseDeltaTransform(double[] uvw) throws UnsupportedOperationException
InverseProjection
inverseDeltaTransform
in interface InverseProjection
inverseDeltaTransform
in class ParallelProjection
UnsupportedOperationException
public String toString()
AbstractProjection
toString
in class ParallelProjection
public Object reset(Object newState)
reset
in interface Resetable
reset
in class ParallelProjection
public void save(org.freehep.xml.io.XMLIOManager xmlioManager, org.jdom.Element nodeEl)
save
in interface org.freehep.xml.io.XMLIO
save
in class ParallelProjection
public void restore(org.freehep.xml.io.XMLIOManager xmlioManager, org.jdom.Element nodeEl)
restore
in interface org.freehep.xml.io.XMLIO
restore
in class ParallelProjection
Copyright © 1996-2014 FreeHEP. All Rights Reserved.