public final class SVGHyperCube
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
SVGHyperCube()
Private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.w3c.dom.Element |
drawFilled(SVGPlot svgp,
java.lang.String cls,
Projection2D proj,
double[] min,
double[] max)
Filled hypercube.
|
static org.w3c.dom.Element |
drawFilled(SVGPlot svgp,
java.lang.String cls,
Projection2D proj,
NumberVector min,
NumberVector max)
Filled hypercube.
|
static org.w3c.dom.Element |
drawFilled(SVGPlot svgp,
java.lang.String cls,
Projection2D proj,
SpatialComparable box)
Filled hypercube.
|
static org.w3c.dom.Element |
drawFrame(SVGPlot svgp,
Projection2D proj,
double[] min,
double[] max)
Wireframe hypercube.
|
static org.w3c.dom.Element |
drawFrame(SVGPlot svgp,
Projection2D proj,
NumberVector min,
NumberVector max)
Wireframe hypercube.
|
static org.w3c.dom.Element |
drawFrame(SVGPlot svgp,
Projection2D proj,
SpatialComparable box)
Wireframe hypercube.
|
private static java.util.ArrayList<double[]> |
getVisibleEdges(Projection2D proj,
double[] s_min,
double[] s_max)
Get the visible (non-0) edges of a hypercube
|
private static java.util.ArrayList<double[]> |
getVisibleEdges(Projection2D proj,
NumberVector s_min,
NumberVector s_max)
Get the visible (non-0) edges of a hypercube
|
private static java.util.ArrayList<double[]> |
getVisibleEdges(Projection2D proj,
SpatialComparable box)
Get the visible (non-0) edges of a hypercube
|
private static boolean |
isFinite(double v)
Finite (and not NaN) double values.
|
private static void |
recDrawEdges(SVGPath path,
double minx,
double miny,
java.util.List<double[]> r_edges,
long[] b)
Recursive helper for hypercube drawing.
|
private static void |
recDrawSides(SVGPlot plot,
org.w3c.dom.Element group,
java.lang.String cls,
double minx,
double miny,
java.util.List<double[]> r_edges,
int off,
long[] b)
Recursive helper for hypercube drawing.
|
public static org.w3c.dom.Element drawFrame(SVGPlot svgp, Projection2D proj, double[] min, double[] max)
svgp - SVG Plotproj - Visualization projectionmin - First cornermax - Opposite cornerpublic static org.w3c.dom.Element drawFrame(SVGPlot svgp, Projection2D proj, NumberVector min, NumberVector max)
svgp - SVG Plotproj - Visualization projectionmin - First cornermax - Opposite cornerpublic static org.w3c.dom.Element drawFrame(SVGPlot svgp, Projection2D proj, SpatialComparable box)
svgp - SVG Plotproj - Visualization projectionbox - Bounding boxpublic static org.w3c.dom.Element drawFilled(SVGPlot svgp, java.lang.String cls, Projection2D proj, double[] min, double[] max)
svgp - SVG Plotcls - CSS class to use.proj - Visualization projectionmin - First cornermax - Opposite cornerpublic static org.w3c.dom.Element drawFilled(SVGPlot svgp, java.lang.String cls, Projection2D proj, NumberVector min, NumberVector max)
svgp - SVG Plotcls - CSS class to use.proj - Visualization projectionmin - First cornermax - Opposite cornerpublic static org.w3c.dom.Element drawFilled(SVGPlot svgp, java.lang.String cls, Projection2D proj, SpatialComparable box)
svgp - SVG Plotcls - CSS class to use.proj - Visualization projectionbox - Bounding boxprivate static java.util.ArrayList<double[]> getVisibleEdges(Projection2D proj, double[] s_min, double[] s_max)
proj - Projections_min - Minimum value (in data space)s_max - Maximum value (in data space)private static java.util.ArrayList<double[]> getVisibleEdges(Projection2D proj, NumberVector s_min, NumberVector s_max)
proj - Projections_min - Minimum value (in data space)s_max - Maximum value (in data space)private static java.util.ArrayList<double[]> getVisibleEdges(Projection2D proj, SpatialComparable box)
proj - Projectionbox - Box objectprivate static void recDrawEdges(SVGPath path, double minx, double miny, java.util.List<double[]> r_edges, long[] b)
path - pathminx - starting cornerminy - starting cornerr_edges - edge vectorsb - bit set of drawn edgesprivate static void recDrawSides(SVGPlot plot, org.w3c.dom.Element group, java.lang.String cls, double minx, double miny, java.util.List<double[]> r_edges, int off, long[] b)
plot - Plotgroup - Group elementcls - CSS classminx - starting cornerminy - starting cornerr_edges - edge vectorsoff - recursion offset (to avoid multi-recursion)b - bit set of drawn edgesprivate static boolean isFinite(double v)
v - ValueCopyright © 2019 ELKI Development Team. License information.