public class PjPointCloud extends PjProject implements java.awt.event.ActionListener
Modifier and Type | Field and Description |
---|---|
static int |
COLOR_COV_QUOTIENT |
static int |
COLOR_MAX_COV |
static int |
COLOR_MAX_PRINC |
static int |
COLOR_MEAN
Current type of vertex coloring.
|
static int |
COLOR_MEAN_ANI |
static int |
COLOR_PRINC_QUOTIENT |
static double |
CURVATURE_COSTA |
static double |
CURVATURE_CUBE |
static double |
CURVATURE_CYLINDER |
static double |
CURVATURE_OCTAHEDRON |
static double |
CURVATURE_TORUS |
static double |
CURVATURE_TRUNCATED |
static double |
CURVATURE_VENUS |
static java.lang.String |
FILE_COSTA |
static java.lang.String |
FILE_CUBE |
static java.lang.String |
FILE_CYLINDER |
static java.lang.String |
FILE_OCTAHEDRON |
static java.lang.String |
FILE_TORUS |
static java.lang.String |
FILE_TRUNCATED |
static java.lang.String |
FILE_VENUS |
static double |
INFLUENCE_COSTA |
static double |
INFLUENCE_CUBE |
static double |
INFLUENCE_CYLINDER |
static double |
INFLUENCE_OCTAHEDRON |
static double |
INFLUENCE_TORUS |
static double |
INFLUENCE_TRUNCATED |
static double |
INFLUENCE_VENUS |
static double |
MAXHUE_COSTA |
static double |
MAXHUE_CUBE |
static double |
MAXHUE_CYLINDER |
static double |
MAXHUE_OCTAHEDRON |
static double |
MAXHUE_TORUS |
static double |
MAXHUE_TRUNCATED |
static double |
MAXHUE_VENUS |
static int |
MODEL_COSTA |
static int |
MODEL_CUBE |
static int |
MODEL_CYLINDER |
static int |
MODEL_OCTAHEDRON |
static int |
MODEL_TORUS |
static int |
MODEL_TRUNCATED |
static int |
MODEL_VENUS
Some models.
|
HAS_BOUNDARY_PANEL, HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_LABEL_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, HAS_VECTOR_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_FOCUSSED, IS_PICKED, IS_SELECTED, IS_USED, NUM_TAGS
Constructor and Description |
---|
PjPointCloud(java.lang.String fileName) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event) |
void |
computeAnisotropicLaplace(PgPointSet geom,
PiVector[] neigh)
Compute the anisotropic Laplacian for each vertex of a point set
using the connectivity of the neigh parameter.
|
PdMatrix |
computeCovariance(PdMatrix covMat,
PdVector[] vertex)
Compute the covariance matrix of a set of vertices in Rn.
|
int[] |
computeCovarianceSpectrum(PdMatrix covMat,
PdVector[] eVector,
PdVector eValue)
Compute the eigenvalue and eigenvectors of a covariance matrix.
|
static void |
computeLaplace(PgPointSet geom,
PiVector[] neigh)
Compute the point set Laplacian for each vertex using the
connectivity of the neigh parameter.
|
void |
computeMesh()
Compute an initial smooth mesh, which then
must be distorted using the noise workshop.
|
void |
computeNeighbour(PgPointSet geom,
double influence)
Calculate the adjacency relation which determines for each
vertex an unordered set of nearby neighbours excluding the reference point.
|
void |
computeNeighbourSlow(PgPointSet geom,
double influence)
Calculate the adjacency relation which determines for each
vertex an unordered set of nearby neighbours excluding the reference point.
|
void |
computePrincipal(PgPointSet geom,
PiVector[] neigh)
Compute the principal curvature directions.
|
void |
computeTangents(PgPointSet geom,
PgPointSet tangent,
PiVector[] neigh)
Compute the normal vector and tangent plane of each vertex of
a point set.
|
void |
init()
Initialize and reset project, stops the running animation if any.
|
void |
reset() |
boolean |
setGeometry(PgGeometryIf newGeomIf)
Sets given geometry as project geometry for energy minimization.
|
void |
start()
Method is invoked during loading of a project in JavaView.
|
boolean |
update(java.lang.Object event)
Update the class whenever a child has changed.
|
addDisplay, addGeometry, addGeometry, dispose, dragDisplay, dragInitial, dragVertex, fitDisplays, getAnimation, getDisplay, getDisplays, getGeometry, getGeometry, getNumGeometries, getParameter, getViewer, hasAnimation, hasDisplay, isEnabledAutoFit, markVertices, pickDisplay, pickInitial, pickVertex, removeDisplay, removeGeometries, removeGeometry, selectDisplay, selectGeometry, setAnimation, setBackColor, setBorderType, setDisplay, setEnabledAutoFit, setParameter, setTime, setViewer, stop, unmarkVertices
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, toString, updatePanels
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName
getName
public static final int COLOR_MEAN
public static final int COLOR_MEAN_ANI
public static final int COLOR_MAX_PRINC
public static final int COLOR_PRINC_QUOTIENT
public static final int COLOR_COV_QUOTIENT
public static final int COLOR_MAX_COV
public static final int MODEL_VENUS
public static final int MODEL_COSTA
public static final int MODEL_CYLINDER
public static final int MODEL_OCTAHEDRON
public static final int MODEL_TORUS
public static final int MODEL_TRUNCATED
public static final int MODEL_CUBE
public static final java.lang.String FILE_VENUS
public static final java.lang.String FILE_COSTA
public static final java.lang.String FILE_CYLINDER
public static final java.lang.String FILE_OCTAHEDRON
public static final java.lang.String FILE_TORUS
public static final java.lang.String FILE_TRUNCATED
public static final java.lang.String FILE_CUBE
public static final double INFLUENCE_VENUS
public static final double INFLUENCE_COSTA
public static final double INFLUENCE_CYLINDER
public static final double INFLUENCE_OCTAHEDRON
public static final double INFLUENCE_TORUS
public static final double INFLUENCE_TRUNCATED
public static final double INFLUENCE_CUBE
public static final double CURVATURE_VENUS
public static final double CURVATURE_COSTA
public static final double CURVATURE_CYLINDER
public static final double CURVATURE_OCTAHEDRON
public static final double CURVATURE_TORUS
public static final double CURVATURE_TRUNCATED
public static final double CURVATURE_CUBE
public static final double MAXHUE_VENUS
public static final double MAXHUE_COSTA
public static final double MAXHUE_CYLINDER
public static final double MAXHUE_OCTAHEDRON
public static final double MAXHUE_TORUS
public static final double MAXHUE_TRUNCATED
public static final double MAXHUE_CUBE
public void init()
PjProject
public void start()
PjProject
If a project has an animation object, then the animation panel is shown
when the project's this start() method is invoked during loading
of the project. Use setAnimation(PsAnimation)
to register an animation.
If auto fit is enabled then scenery is scaled to fit in each display.
start
in class PjProject
PvViewerIf.start()
,
PjProject.isEnabledAutoFit()
public void reset()
public boolean setGeometry(PgGeometryIf newGeomIf)
setGeometry
in class PjProject
newGeomIf
- must be an element setpublic boolean update(java.lang.Object event)
update
in interface PsUpdateIf
update
in class PsObject
event
- carries a lot of informationPsObject.setParent(PsUpdateIf)
,
PsObject.getFather()
,
PsObject.addUpdateListener(PsUpdateIf)
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
public void computeMesh()
public void computeNeighbour(PgPointSet geom, double influence)
public void computeNeighbourSlow(PgPointSet geom, double influence)
public static void computeLaplace(PgPointSet geom, PiVector[] neigh)
neigh
- determines connectivity and neighbours of each vertex.public void computeAnisotropicLaplace(PgPointSet geom, PiVector[] neigh)
neigh
- determines connectivity and neighbours of each vertex.public PdMatrix computeCovariance(PdMatrix covMat, PdVector[] vertex)
If vertex array is missing then null is returned.
public int[] computeCovarianceSpectrum(PdMatrix covMat, PdVector[] eVector, PdVector eValue)
Vectors must be passed to this method. Vector with eigenvalue and the array of eigenvectors are filled. The eigenvalues and -vectors are sorted by increasing eigenvalue.
An index vector is returned which provides the indices of the eigenvalues in increasing order of value.
public void computeTangents(PgPointSet geom, PgPointSet tangent, PiVector[] neigh)
public void computePrincipal(PgPointSet geom, PiVector[] neigh)
"