|
JavaView® v2.00.008 | ||||||||
| 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). |
protected PdBaryDir[][] |
m_altvec
Calculated vector representations. |
protected PdBary |
m_bary
Initial barycentric point for integral line m_poly. |
protected PuInteger |
m_discr
Discretization of the integral line. |
protected int |
m_elemInd
Global element index of initial point for integral line m_poly. |
protected boolean |
m_fast
If fast is on, an euler-method is used for integration and not a 4th-order runge-kutta. |
protected PgElementSet |
m_geom
The loaded model. |
protected PjImportModel |
m_import
Is used to load models from the net or local disk. |
protected PuDouble |
m_length
Length of the integral line. |
protected java.lang.Thread |
m_LIC
Thread that executes the LIC texture calculation. |
protected java.awt.Button |
m_LICButton
Button that starts the LIC texture calculation. |
protected PuInteger |
m_LICSize
Size of quadratic LIC texture image. |
protected int |
m_method
Method used in calculateRepresentations. |
protected PnGeodesicRK |
m_ode
Geodesic Runge-Kutta method that is used to get integral lines |
protected int[] |
m_origelem
Global element indices of elements that define the vectors in m_origvec. |
protected int[] |
m_origlocvertind
Local vertex index of base vertex of vector m_origvec in element m_origelem. |
protected PdBaryDir[] |
m_origvec
Original tangential vectors at vertices. size: geom.getNumVertices(). |
protected PgPolygon |
m_poly
Integral line that is computed by a runge-kutta-method. |
protected java.awt.Label |
m_time
Time it took to calculate LIC texture. |
protected PgVectorField |
m_vec
Visual 3D-vector field that is the 3D-representation of m_origvec. |
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, m_baseDir, m_category, m_confirm, m_defBaseDir, m_defCategory, m_defFileName, m_fileName, m_fullFileName, m_geomList, m_infoPanelType, m_numModels, m_parentProject, SMALL_INFO_PANEL |
| Fields inherited from class jv.project.PjProject |
m_anim, m_bAutoFit, m_display, m_displayList, m_geometry, m_parm, m_rootGeometry |
| Fields inherited from class jv.object.PsObject |
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_MATERIAL_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_SELECTED, IS_USED, m_infoPanel, m_name, m_panelList, m_parent, m_tag, m_updateList, 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, setConfirm, 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, 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, finalize, 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 |
protected PjImportModel m_import
protected PgElementSet m_geom
protected PuDouble m_length
protected PuInteger m_discr
protected PdBaryDir[][] m_altvec
protected int m_method
PROJECTION,
GEODESIC,
GEODESIC2,
GEODESIC3public static final int PROJECTION
public static final int GEODESIC
public static final int GEODESIC2
public static final int GEODESIC3
protected PuInteger m_LICSize
protected PdBaryDir[] m_origvec
protected int[] m_origelem
protected int[] m_origlocvertind
protected PgPolygon m_poly
protected int m_elemInd
protected PdBary m_bary
protected PgVectorField m_vec
protected java.lang.Thread m_LIC
protected java.awt.Button m_LICButton
protected boolean m_fast
protected PnGeodesicRK m_ode
protected java.awt.Label m_time
| 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.00.008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||