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 |
static java.lang.String[] |
FILE_NAME |
static double[] |
INFLUENCE |
static double[] |
MAXHUE |
static int |
MODEL_COSTA |
static int |
MODEL_CUBE |
static int |
MODEL_CYLINDER |
static java.lang.String[] |
MODEL_NAMES |
static int |
MODEL_OCTAHEDRON |
static int |
MODEL_TORUS |
static int |
MODEL_TRUNCATED |
static int |
MODEL_VENUS |
static int |
NUM_MODELS
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() |
PjPointCloud(int modelID) |
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 |
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() |
void |
setFileName(int currentModel)
Set the file path of the given model id into the
m_fileName variable. |
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, getParameterInfo, getViewer, hasAnimation, hasDisplay, isEnabledAutoFit, markVertices, pickDisplay, pickInitial, pickVertex, removeDisplay, removeGeometries, removeGeometry, selectDisplay, selectGeometry, setAnimation, setBackColor, setBorderType, setDisplay, setEnabledAutoFit, setParameterInfo, 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 NUM_MODELS
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[] MODEL_NAMES
public static final java.lang.String[] FILE_NAME
public static final double[] INFLUENCE
public static final double[] CURVATURE
public static final double[] MAXHUE
public void setFileName(int currentModel)
m_fileName
variable.currentModel
- ID of the current modelpublic 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 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)
"