|
JavaView® v2.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--jv.object.PsObject
|
+--jv.project.PjProject
|
+--jv.loader.PjImportModel
|
+--vgp.vector.vectorField.PjVectorField
Project Vector Field Visualization and Geodesic Runge-Kutta
uses PjImportModel to load models from file.
Various models may be loaded and are extended by a (more or less)
random tangential vector field.
PjImportModel, Serialized Form| Field Summary | |
static int |
GEODESIC
Geodesic completion. |
static int |
GEODESIC2
Geodesic translation along half angle. |
static int |
GEODESIC3
Geodesic translation dependent on evaluation point (continous). |
static int |
PROJECTION
Is used by method calculateRepresentations. |
| Fields inherited from class jv.loader.PjImportModel |
CONFIRM_CANCEL, CONFIRM_CLICKED, CONFIRM_OK, DIR_LIST, FULL_INFO_PANEL, SMALL_INFO_PANEL |
| Fields inherited from class jv.object.PsObject |
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_SELECTED, IS_USED, NUM_TAGS |
| Constructor Summary | |
PjVectorField()
If (this.instanceOf("PjVectorField")) it calls init-method. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent event)
Starts a new thread that calculates the LIC texture. |
void |
calculateCurve()
Calculates the integral curve with initial values internally given. |
void |
calculateRepresentations()
Calculates the representations of vectors at every vertexstar. |
void |
calculateVectorField()
Calculates (pseudo) random vector field. |
void |
computeLIC()
|
void |
init()
Initialize and reset project, stops the running animation if any. |
boolean |
load()
Gets geometry from PjImportModel and then triangulates, updates the number of elements, gets a vector field and fits that all in the display. |
boolean |
load(java.lang.String fileName)
Loads geometry via PjImportModel and then calls load(). |
void |
pickInitial(PvPickEvent pos)
Initiates calculation of an integral line that starts at picked position. |
void |
run()
Gets an apropriate Runge-Kutta class and initiates LIC calculation element by element. |
void |
setFast(boolean flag)
Sets integration method to euler-mode or 4th-order Runge-Kutta mode. |
void |
setMethod(int method)
Sets method used in calculateRepresentations. |
void |
start()
Load geometry file if file name has been specified. |
boolean |
update(java.lang.Object event)
Event handling method in the update mechanism. |
| Methods inherited from class jv.loader.PjImportModel |
getBaseDir, getCategory, getConfirm, getFileName, getInfoPanel, setBase, setCategory, setFileName, setParentProject, setTypeOfInfoPanel |
| Methods inherited from class jv.project.PjProject |
addDisplay, addGeometry, addGeometry, dispose, dragDisplay, dragInitial, dragVertex, fitDisplays, getAnimation, getDisplay, getDisplays, getGeometry, getGeometry, getNumGeometries, getParameter, getViewer, hasAnimation, hasDisplay, isEnabledAutoFit, markVertices, pickDisplay, pickVertex, removeDisplay, removeGeometries, removeGeometry, selectDisplay, selectGeometry, setAnimation, setDisplay, setEnabledAutoFit, setParameter, setTime, setViewer, stop, unmarkVertices |
| Methods inherited from class jv.object.PsObject |
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInspector, getName, getNumObjects, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, removeInspector, removeUpdateListener, setName, setParent, setTag, toString, updatePanels |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jv.anim.PsTimeListenerIf |
getName |
| Methods inherited from interface jv.project.PvPickListenerIf |
getName |
| Methods inherited from interface jv.object.PsUpdateIf |
getFather, getName, setParent |
| Field Detail |
public static final int PROJECTION
public static final int GEODESIC
public static final int GEODESIC2
public static final int GEODESIC3
| Constructor Detail |
public PjVectorField()
| Method Detail |
public void init()
PjProjectinit in class PjImportModelpublic void start()
PjImportModelstart in class PjImportModeljv.project.PjProjectPvViewerIf.start(),
#isEnabledAutoFit(boolean)public boolean update(java.lang.Object event)
PsUpdateIfupdate in class PsObjectjv.object.PsUpdateIfevent - carries a lot of informationPsObject,
PsUpdateIf.getFather(),
PsUpdateIf.setParent(PsUpdateIf)public void setMethod(int method)
PROJECTION,
GEODESIC,
GEODESIC2,
GEODESIC3public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed in interface java.awt.event.ActionListenerrun()public void calculateVectorField()
public void calculateRepresentations()
PnTranslationRK,
PwBary.getGeodRepresentation(jv.geom.PgElementSet, int, jv.vecmath.PdBaryDir, int, jv.vecmath.PiVector, jv.vecmath.PiVector),
PwBary.getTransRepresentation(jv.geom.PgElementSet, int, jv.vecmath.PdBaryDir, int, jv.vecmath.PiVector, jv.vecmath.PiVector),
PwBary.getProjRepresentation(jv.geom.PgElementSet, int, jv.vecmath.PdBaryDir, int, jv.vecmath.PiVector, jv.vecmath.PiVector)public void calculateCurve()
public void pickInitial(PvPickEvent pos)
pickInitial in class PjProjectcalculateCurve()public void setFast(boolean flag)
flag - true: euler; false: 4th-order runge-kuttapublic boolean load(java.lang.String fileName)
load in class PjImportModelload()public boolean load()
public void computeLIC()
public void run()
run in interface java.lang.RunnablePnLIC,
PnVertexRK,
PnTranslationRK
|
JavaView® v2.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||