|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjv.object.PsObject
jvx.project.PjWorkshop
jvx.geom.PwHodge
Study hodge splitting of discrete vector fields. An vector field is split in gradient and rotation free parts with a remaining harmonic component.
| Field Summary | |
static int |
DETECT_SADDLES
|
static int |
DETECT_SINKS_SOURCES
|
static int |
DETECT_VORTICES
|
| Fields inherited from class jv.object.PsObject |
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 Summary | |
PwHodge()
|
|
| Method Summary | |
void |
close()
Removes geometry and displays from workshop, and closes super workshop. |
boolean |
getAutoUpdate()
|
int |
getDetectionFlags()
Compare the DETECT_... constants. |
PvDisplayIf |
getDisplay(int dispIndex)
Returns one of the three displays: rotation-free, divergence-free and harmonic component and their features. |
boolean |
getDisplayVisibility(int dispIndex)
Handling of the displays that show the vector field components and the potentials. |
PgVectorField |
getDivergenceFree()
Call method minimize() before using this method. |
PgVectorField |
getHarmonic()
Call method minimize() before using this method. |
PgElementSet |
getPotentialU()
Call method minimize() before using this method. |
PgElementSet |
getPotentialW()
Call method minimize() before using this method. |
PgVectorField |
getRotationFree()
Call method minimize() before using this method. |
PgSurfaceGraph |
getUGraph()
Call method minimize() before using this method. |
int |
getVectorFieldIndex()
|
boolean |
getVisibleComponent(int index)
|
boolean |
getVisibleFeat(int index)
|
boolean |
getVisibleGraph(int index)
|
PgSurfaceGraph |
getWGraph()
Call method minimize() before using this method. |
boolean |
getZeroBoundsU()
|
boolean |
getZeroBoundsW()
|
void |
init()
Initialize and reset project, stops the running animation if any. |
void |
minimize()
Initiates minimization of the two energies that produce the three parts of the decomposition. |
void |
removeGeometry()
Remove the assigned geometry and its backup clone. |
void |
reset()
TODO: Not implemented yet. |
void |
setAutoUpdate(boolean flag)
Invoke minimization on updates of geometry. |
void |
setDetectionFlags(int flag)
Sets which features to include in feature detection. |
void |
setDisplaySize(int dispIndex,
int width,
int height)
Sets the size of one of the three displays: rotation-free, divergence-free and harmonic component and their features. |
void |
setDisplayVisibility(int dispIndex,
boolean visible)
Handling of the displays that show the vector field components and the potentials. |
void |
setGeometry(PgGeometry geom)
Assign a geometry on which this workshop operates, and create a backup clone of the geometry. |
void |
setIconScale(double value)
Scales the icons that are drawn for sinks, sources, vortices and saddles. |
void |
setVectorField(PgElementSet domain,
int vfIndex)
Sets the current vector field and underlying domain. |
void |
setVisibleComponent(int index,
boolean visible)
|
void |
setVisibleFeat(int index,
boolean visible)
|
void |
setVisibleGraph(int index,
boolean visible)
|
void |
setZeroBounds(boolean flag)
Whether the two resulting potentials should be zero on the boundary. |
void |
setZeroBoundsU(boolean flag)
Sets zero boundary condition of potential of rotation free part (so this vector field is tangential to boundary edges if set). |
void |
setZeroBoundsW(boolean flag)
Sets zero boundary condition of potential of divergence free part (so this part is orthogonal to boundary edges if set). |
void |
stop()
Stop minimization explicitly before it is completed. |
boolean |
update(java.lang.Object event)
Updates the geometry if this workshop has changed, i.e. if the event is this or null.
|
| Methods inherited from class jvx.project.PjWorkshop |
cancel, getDisplay, getDisplays, getGeometry, getSavedGeometry, getViewer, isModal, ok, setDisplay, setDisplays, setModal, setViewer |
| Methods inherited from class jv.object.PsObject |
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 |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jv.object.PsUpdateIf |
getFather, getName, setParent |
| Field Detail |
public static int DETECT_SINKS_SOURCES
public static int DETECT_VORTICES
public static int DETECT_SADDLES
| Constructor Detail |
public PwHodge()
| Method Detail |
public void init()
PjWorkshop
init in class PjWorkshop
public void setVectorField(PgElementSet domain,
int vfIndex)
update(this) afterwards.
domain - Reference to geometry that is base of vector field. Must be triangulation.vfIndex - Vector field to decomposite. Should be element based.public void setZeroBounds(boolean flag)
public void setZeroBoundsU(boolean flag)
public boolean getZeroBoundsU()
public void setZeroBoundsW(boolean flag)
public boolean getZeroBoundsW()
public void setAutoUpdate(boolean flag)
flag - public boolean getAutoUpdate()
public PgVectorField getRotationFree()
minimize() before using this method.
public PgVectorField getDivergenceFree()
minimize() before using this method.
public PgVectorField getHarmonic()
minimize() before using this method.
public PgElementSet getPotentialU()
minimize() before using this method.
public PgElementSet getPotentialW()
minimize() before using this method.
public PgSurfaceGraph getUGraph()
minimize() before using this method.
public PgSurfaceGraph getWGraph()
minimize() before using this method.
public void setVisibleComponent(int index,
boolean visible)
public boolean getVisibleComponent(int index)
public void setVisibleGraph(int index,
boolean visible)
public boolean getVisibleGraph(int index)
public void setVisibleFeat(int index,
boolean visible)
public boolean getVisibleFeat(int index)
public void setDetectionFlags(int flag)
flag - binary flag; combine the DETECT_... constants with binary OR operator.public int getDetectionFlags()
setDetectionFlags(int)public void setIconScale(double value)
value - default is 1.public int getVectorFieldIndex()
public boolean update(java.lang.Object event)
PjWorkshopthis or null.
Also propagates update() to superclass with the original argument event.
Some subclasses may register themself as update listener of the geometry of this workshop. In order to prevent an update loop, this method savely uses isUpdateSender() when updating the geometry.
update in interface PsUpdateIfupdate in class PjWorkshopevent - sender of this update.
public void setDisplayVisibility(int dispIndex,
boolean visible)
public boolean getDisplayVisibility(int dispIndex)
public PvDisplayIf getDisplay(int dispIndex)
dispIndex - 0-2
public void setDisplaySize(int dispIndex,
int width,
int height)
dispIndex - 0-2public void minimize()
A call of minimize() will terminate instantly, if there is already an
unterminated minimization process running at the moment!!! To ensure that
a new minimization is initiated, call stop() first
and then minimize()!
public void setGeometry(PgGeometry geom)
PjWorkshopSubclasses frequently overwrite this method but are adviced to call this method.
setGeometry in interface PjWorkshopIfsetGeometry in class PjWorkshopgeom - the workshop modifies this geometry.public void removeGeometry()
PjWorkshop
removeGeometry in class PjWorkshoppublic void stop()
update(this) needs to be called to inform info panel.
public void close()
close in class PjWorkshoppublic void reset()
reset in class PjWorkshop
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||