JavaView® v2.12

jvx.geom
Class PwHodge

java.lang.Object
  |
  +--jv.object.PsObject
        |
        +--jvx.geom.PwHodge
All Implemented Interfaces:
java.lang.Cloneable, java.util.EventListener, PsUpdateIf, java.io.Serializable, java.awt.event.WindowListener

public class PwHodge
extends PsObject
implements java.awt.event.WindowListener

Study hodge splitting of discrete vector fields. An vector field is split in gradient and rotation free parts with a remaining harmonic component.

Version:
28.05.01, 2.50 revised (ep) Get displays WITH FRAME from viewer, initialize 0-gradient properties at begin.
17.05.01, 2.40 revised (ep) 5 displays -> 3 displays, corrected update of minimizers.
11.12.00, 2.30 revised (ep) Made displays available to other classes.
10.12.00, 2.20 revised (ep) May change zero bounds condition for U and W seperately.
06.06.00, 2.10 revised (ep) Moved to seperate workshop.
06.03.00, 2.00 revised (ep) Corrected updates and made various changes.
24.11.99, 1.00 created (kp).
Author:
Konrad Polthier, Eike Preuss
See Also:
Serialized Form

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
PwHodge()
           
 
Method Summary
 void close()
           
 PvDisplayIf getDisplay(int dispIndex)
           
 boolean getDisplayVisibility(int dispIndex)
          Handling of the displays that show the vector field components and the potentials.
 PgVectorField getDivergenceFree()
          Call method minimize() before using methods with this comment.
 PgVectorField getHarmonic()
          Call method minimize() before using methods with this comment.
 PgElementSet getPotentialU()
          Call method minimize() before using methods with this comment.
 PgElementSet getPotentialW()
          Call method minimize() before using methods with this comment.
 PgVectorField getRotationFree()
          Call method minimize() before using methods with this comment.
 PgGraph getUGraph()
          Call method minimize() before using methods with this comment.
 boolean getVisibleComponent(int index)
           
 boolean getVisibleGraph(int index)
           
 PgGraph getWGraph()
          Call method minimize() before using methods with this comment.
 void init()
          If instance has missing name then assign default name 'object_NUMBER' where number is the total number of already created instances.
 void minimize()
          Initiates minimization of the two energies that produce the three parts of the decomposition.
 void setAutoUpdate(boolean flag)
           
 void setDisplaySize(int dispIndex, int width, int height)
           
 void setDisplayVisibility(int dispIndex, boolean visible)
          Handling of the displays that show the vector field components and the potentials.
 void setVectorField(PgElementSet domain, int vfIndex)
           
 void setVisibleComponent(int index, boolean visible)
           
 void setVisibleGraph(int index, boolean visible)
           
 void setZeroBounds(boolean flag)
           
 void setZeroBoundsU(boolean flag)
          Sets zero boundary condition of potential of rotation free part.
 void setZeroBoundsW(boolean flag)
          Sets zero boundary condition of potential of divergence free part.
 void stop()
          Stop minimization explicitly before it is completed.
 boolean update(java.lang.Object event)
          Update all inspector panels, send update to all registered update listeners and finally update parent.
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
           
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 
Methods inherited from class jv.object.PsObject
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, 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
 

Constructor Detail

PwHodge

public PwHodge()
Method Detail

init

public void init()
Description copied from class: PsObject
If instance has missing name then assign default name 'object_NUMBER' where number is the total number of already created instances.
Overrides:
init in class PsObject

setVectorField

public void setVectorField(PgElementSet domain,
                           int vfIndex)
Parameters:
domain - Reference to geometry that is base of vector field. Must be triangulation.
vfIndex - Vector field to decomposite. Should be element based.

setZeroBounds

public void setZeroBounds(boolean flag)

setZeroBoundsU

public void setZeroBoundsU(boolean flag)
Sets zero boundary condition of potential of rotation free part.

setZeroBoundsW

public void setZeroBoundsW(boolean flag)
Sets zero boundary condition of potential of divergence free part.

setAutoUpdate

public void setAutoUpdate(boolean flag)

getRotationFree

public PgVectorField getRotationFree()
Call method minimize() before using methods with this comment.

getDivergenceFree

public PgVectorField getDivergenceFree()
Call method minimize() before using methods with this comment.

getHarmonic

public PgVectorField getHarmonic()
Call method minimize() before using methods with this comment.

getPotentialU

public PgElementSet getPotentialU()
Call method minimize() before using methods with this comment.
Returns:
potential of rotation free part

getPotentialW

public PgElementSet getPotentialW()
Call method minimize() before using methods with this comment.
Returns:
potential of divergence free part

getUGraph

public PgGraph getUGraph()
Call method minimize() before using methods with this comment.
Returns:
potential of rotation free part

getWGraph

public PgGraph getWGraph()
Call method minimize() before using methods with this comment.
Returns:
potential of divergence free part

setVisibleComponent

public void setVisibleComponent(int index,
                                boolean visible)

getVisibleComponent

public boolean getVisibleComponent(int index)

setVisibleGraph

public void setVisibleGraph(int index,
                            boolean visible)

getVisibleGraph

public boolean getVisibleGraph(int index)

update

public boolean update(java.lang.Object event)
Description copied from class: PsObject
Update all inspector panels, send update to all registered update listeners and finally update parent. Each of those updates has this object as event independent of the argument of this method.

Central update method of this object. Must be overwritten if this class receives unknown events, say, from new children. Any subclass must class invoke super.update(event) on all events it does handle itself.

Overrides:
update in class PsObject
Following copied from class: jv.object.PsObject
See Also:
PsObject.setParent(PsUpdateIf), PsObject.getFather(), PsObject.addUpdateListener(PsUpdateIf)

setDisplayVisibility

public void setDisplayVisibility(int dispIndex,
                                 boolean visible)
Handling of the displays that show the vector field components and the potentials.

getDisplayVisibility

public boolean getDisplayVisibility(int dispIndex)
Handling of the displays that show the vector field components and the potentials.

getDisplay

public PvDisplayIf getDisplay(int dispIndex)

setDisplaySize

public void setDisplaySize(int dispIndex,
                           int width,
                           int height)

minimize

public void minimize()
Initiates minimization of the two energies that produce the three parts of the decomposition. As the minimization is done in seperate threads this method perhaps returns without instant effect. The update method of the parent of this PwHodge object is called with this object as argument when the computation of the vector field parts is finished.

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()!


stop

public void stop()
Stop minimization explicitly before it is completed.

close

public void close()

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

JavaView® v2.12

The software JavaView® is copyright protected. All Rights Reserved.