|
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.PwRotDiv
This can be used to color an element set or a texture on an element set
with respect to certain scalar fields such as rotation and divergence of
element based vector fields.
It cannot yet be used from other classes, though some public (but for now uncommented)
methods may prove useful such as computation of the earlier mentioned scalar fields.
| Field Summary | |
static int |
EDGE_DIVERGENCE
|
static int |
EDGE_DIVERGENCE_AREA
|
static int |
EDGE_ROTATION
|
static int |
EDGE_ROTATION_AREA
|
static int |
VERTEX_DIVERGENCE
|
static int |
VERTEX_DIVERGENCE_AREA
|
static int |
VERTEX_DIVERGENCE_NOGAUSS
|
static int |
VERTEX_ROTATION
|
static int |
VERTEX_ROTATION_AREA
|
static int |
VERTEX_ROTATION_NOGAUSS
|
| 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 | |
PwRotDiv()
|
|
| Method Summary | |
static void |
colorTextureFromScalarField(PgElementSet surface,
java.awt.Color neg,
java.awt.Color zero,
java.awt.Color pos,
double middleVal,
double maxVal,
PdVector[] scalar)
surface must have element textures. |
boolean |
getColorExistentTexture()
|
static PdVector[] |
getEdgeDivergence(PgElementSet surface,
int fieldInd,
PdVector[] out)
|
static PdVector[] |
getEdgeDivergence(PgElementSet surface,
int fieldInd,
PdVector[] out,
boolean divArea,
boolean gaussFalse)
Computes discrete edge divergence of piecewise constant vector field. |
static PdVector[] |
getEdgeRotation(PgElementSet surface,
int fieldInd,
PdVector[] out)
Computes discrete edge rotation of piecewise constant vector field. |
static PdVector[] |
getEdgeRotation(PgElementSet surface,
int fieldInd,
PdVector[] out,
boolean divArea,
boolean gaussFalse)
Computes discrete edge rotation of piecewise constant vector field. |
int |
getFieldType()
|
double |
getMaximumValue()
|
double |
getMinimumValue()
|
static PdVector |
getVertexDivergence(PgElementSet surface,
int fieldInd,
PdVector out)
Computes discrete vertex divergence of piecewise constant vector field. |
static PdVector |
getVertexDivergence(PgElementSet surface,
int fieldInd,
PdVector out,
boolean divArea,
boolean gaussFalse)
Computes discrete vertex divergence of piecewise constant vector field. |
static PdVector |
getVertexRotation(PgElementSet surface,
int fieldInd,
PdVector out)
Computes discrete vertex rotation of piecewise constant vector field. |
static PdVector |
getVertexRotation(PgElementSet surface,
int fieldInd,
PdVector out,
boolean divArea,
boolean gaussFalse)
Computes discrete vertex rotation of piecewise constant vector field. |
static PdVector |
getVertexRotation(PgElementSet surface,
int fieldInd,
PiVector vertIndices,
PdVector out)
Compute vertex rotation only at given vertex indices |
void |
init()
Initialize and reset project, stops the running animation if any. |
void |
makeTexture()
|
void |
setColorExistentTexture(boolean flag)
If true and geometry already has a texture, then the intensity of this texture is used and colored. |
void |
setFieldType(int fieldType)
|
void |
setGeometry(PgGeometry geom)
Assign a geometry on which this workshop operates, and create a backup clone of the geometry. |
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, close, getDisplay, getDisplays, getGeometry, getSavedGeometry, getViewer, isModal, ok, removeGeometry, reset, 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 final int VERTEX_ROTATION
public static final int VERTEX_ROTATION_AREA
public static final int EDGE_ROTATION
public static final int EDGE_ROTATION_AREA
public static final int VERTEX_DIVERGENCE
public static final int VERTEX_DIVERGENCE_AREA
public static final int EDGE_DIVERGENCE
public static final int EDGE_DIVERGENCE_AREA
public static final int VERTEX_ROTATION_NOGAUSS
public static final int VERTEX_DIVERGENCE_NOGAUSS
| Constructor Detail |
public PwRotDiv()
| Method Detail |
public void init()
PjWorkshop
init in class PjWorkshoppublic 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 setFieldType(int fieldType)
public int getFieldType()
public double getMaximumValue()
public double getMinimumValue()
public void makeTexture()
public void setColorExistentTexture(boolean flag)
public boolean getColorExistentTexture()
public static void colorTextureFromScalarField(PgElementSet surface,
java.awt.Color neg,
java.awt.Color zero,
java.awt.Color pos,
double middleVal,
double maxVal,
PdVector[] scalar)
public static PdVector getVertexRotation(PgElementSet surface,
int fieldInd,
PiVector vertIndices,
PdVector out)
surface - triangulationfieldInd - index of element based vector field in surfacevertIndices - array of vertex indices at which rotation shall be computedout - output is put here if non-null
vertIndices; reference to out
(if non-null)
public static PdVector getVertexRotation(PgElementSet surface,
int fieldInd,
PdVector out)
getVertexRotation(PgElementSet, int, PdVector, boolean, boolean)
public static PdVector getVertexRotation(PgElementSet surface,
int fieldInd,
PdVector out,
boolean divArea,
boolean gaussFalse)
surface - underlying triangulationfieldInd - index of vector field in surface, must be element basedout - output is put here if non-null and correct sizedivArea - weight edge value by one over area of stargaussFalse - false: integrate along boundary edges
out (if given)
public static PdVector[] getEdgeRotation(PgElementSet surface,
int fieldInd,
PdVector[] out)
getEdgeRotation(PgElementSet, int, PdVector[], boolean, boolean)
public static PdVector[] getEdgeRotation(PgElementSet surface,
int fieldInd,
PdVector[] out,
boolean divArea,
boolean gaussFalse)
surface - underlying triangulationfieldInd - index of vector field in surface, must be element basedout - output is put here if non-null and correct sizedivArea - weight edge value by one over area of adjacent elementsgaussFalse - false: rotation at boundary edge is zero
out (if given)
public static PdVector getVertexDivergence(PgElementSet surface,
int fieldInd,
PdVector out)
getVertexDivergence(PgElementSet, int, PdVector, boolean, boolean)
public static PdVector getVertexDivergence(PgElementSet surface,
int fieldInd,
PdVector out,
boolean divArea,
boolean gaussFalse)
surface - underlying triangulationfieldInd - index of vector field in surface, must be element basedout - output is put here if non-null and correct sizedivArea - weight edge value by one over area of stargaussFalse - false: integrate along boundary edges
out (if given)
public static PdVector[] getEdgeDivergence(PgElementSet surface,
int fieldInd,
PdVector[] out)
public static PdVector[] getEdgeDivergence(PgElementSet surface,
int fieldInd,
PdVector[] out,
boolean divArea,
boolean gaussFalse)
surface - underlying triangulationfieldInd - index of vector field in surface, must be element basedout - output is put here if non-null and correct sizedivArea - weight edge value by one over area of adjacent elementsgaussFalse - false: rotation at boundary edge is zero
out (if given)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.
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||