public class AffineProjection extends AbstractFullProjection implements Projection2D
Modifier and Type | Field and Description |
---|---|
private AffineTransformation |
proj
Affine transformation used in projection
|
private CanvasSize |
viewport
Viewport (cache)
|
scales
INVSCALE, SCALE
Constructor and Description |
---|
AffineProjection(Projector p,
LinearScale[] scales,
AffineTransformation proj)
Constructor with a given database and axes.
|
Modifier and Type | Method and Description |
---|---|
static AffineTransformation |
axisProjection(int dim,
int ax1,
int ax2)
Compute an transformation matrix to show only axis ax1 and ax2.
|
CanvasSize |
estimateViewport()
Estimate the viewport requirements
|
double[] |
fastProjectDataToRenderSpace(double[] data)
Project a data vector from data space to rendering space.
|
double[] |
fastProjectDataToRenderSpace(NumberVector data)
Project a data vector from data space to rendering space.
|
double[] |
fastProjectDataToScaledSpace(double[] data)
Project a data vector from data space to scaled space.
|
double[] |
fastProjectDataToScaledSpace(NumberVector data)
Project a data vector from data space to scaled space.
|
double[] |
fastProjectRelativeDataToRenderSpace(double[] data)
Project a data vector from data space to rendering space.
|
double[] |
fastProjectRelativeDataToRenderSpace(NumberVector data)
Project a data vector from data space to rendering space.
|
double[] |
fastProjectRelativeScaledToRenderSpace(double[] vr)
Project a vector from scaled space to rendering space.
|
double[] |
fastProjectRenderToDataSpace(double x,
double y)
Project a data vector from rendering space to data space.
|
double[] |
fastProjectRenderToScaledSpace(double x,
double y)
Project a vector from rendering space to scaled space.
|
double[] |
fastProjectScaledToRenderSpace(double[] vr)
Project a vector from scaled space to rendering space.
|
long[] |
getVisibleDimensions2D()
Get a bit set of dimensions that are visible.
|
double[] |
projectRelativeRenderToScaled(double[] v)
Project a relative vector from rendering space to scaled space.
|
double[] |
projectRelativeScaledToRender(double[] v)
Project a relative vector from scaled space to rendering space.
|
double[] |
projectRenderToScaled(double[] v)
Project a vector from rendering space to scaled space.
|
double[] |
projectScaledToRender(double[] v)
Project a vector from scaled space to rendering space.
|
projectDataToRenderSpace, projectDataToRenderSpace, projectDataToScaledSpace, projectDataToScaledSpace, projectRelativeDataToRenderSpace, projectRelativeDataToRenderSpace, projectRelativeDataToScaledSpace, projectRelativeDataToScaledSpace, projectRelativeRenderToDataSpace, projectRelativeScaledToDataSpace, projectRenderToDataSpace, projectScaledToDataSpace
getInputDimensionality, getMenuName, getProjector, getScale
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInputDimensionality, getProjector, getScale
getMenuName
private AffineTransformation proj
private CanvasSize viewport
public AffineProjection(Projector p, LinearScale[] scales, AffineTransformation proj)
p
- Projectorscales
- Scales to useproj
- Projection to usepublic double[] projectScaledToRender(double[] v)
projectScaledToRender
in interface FullProjection
v
- vector in scaled spacepublic double[] projectRenderToScaled(double[] v)
projectRenderToScaled
in interface FullProjection
v
- vector in rendering spacepublic double[] projectRelativeScaledToRender(double[] v)
projectRelativeScaledToRender
in interface FullProjection
v
- relative vector in scaled spacepublic double[] projectRelativeRenderToScaled(double[] v)
projectRelativeRenderToScaled
in interface FullProjection
v
- relative vector in rendering spacepublic CanvasSize estimateViewport()
Projection2D
estimateViewport
in interface Projection2D
public static AffineTransformation axisProjection(int dim, int ax1, int ax2)
dim
- Dimensionalityax1
- First axisax2
- Second axispublic double[] fastProjectDataToRenderSpace(double[] data)
Projection2D
fastProjectDataToRenderSpace
in interface Projection2D
data
- vector in data spacepublic double[] fastProjectDataToRenderSpace(NumberVector data)
Projection2D
fastProjectDataToRenderSpace
in interface Projection2D
data
- vector in data spacepublic double[] fastProjectDataToScaledSpace(double[] data)
Projection2D
fastProjectDataToScaledSpace
in interface Projection2D
data
- vector in data spacepublic double[] fastProjectDataToScaledSpace(NumberVector data)
Projection2D
fastProjectDataToScaledSpace
in interface Projection2D
data
- vector in data spacepublic double[] fastProjectScaledToRenderSpace(double[] vr)
Projection2D
fastProjectScaledToRenderSpace
in interface Projection2D
vr
- vector in scaled spacepublic double[] fastProjectRelativeDataToRenderSpace(double[] data)
Projection2D
fastProjectRelativeDataToRenderSpace
in interface Projection2D
data
- vector in data spacepublic double[] fastProjectRelativeDataToRenderSpace(NumberVector data)
Projection2D
fastProjectRelativeDataToRenderSpace
in interface Projection2D
data
- vector in data spacepublic double[] fastProjectRelativeScaledToRenderSpace(double[] vr)
Projection2D
fastProjectRelativeScaledToRenderSpace
in interface Projection2D
vr
- vector in scaled spacepublic double[] fastProjectRenderToDataSpace(double x, double y)
Projection2D
fastProjectRenderToDataSpace
in interface Projection2D
x
- X coordinatey
- Y coordinatepublic double[] fastProjectRenderToScaledSpace(double x, double y)
Projection2D
fastProjectRenderToScaledSpace
in interface Projection2D
x
- X coordinatey
- Y coordinatepublic long[] getVisibleDimensions2D()
Projection2D
getVisibleDimensions2D
in interface Projection2D
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.