JavaView© v3.95.000

jvx.geom
Class PwBlocks

java.lang.Object
  extended byjv.object.PsObject
      extended byjvx.project.PjWorkshop
          extended byjvx.geom.PwBlocks
All Implemented Interfaces:
java.lang.Cloneable, PjWorkshopIf, PsUpdateIf, java.io.Serializable

public class PwBlocks
extends PjWorkshop

Workshop class to discretize any PgElementSet into blocks.

See Also:
Serialized Form

Field Summary
static java.lang.String m_defBlocks
          Default texture for quadrilateral and higher elements.
 
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
PwBlocks()
          Constructor.
 
Method Summary
 int[][] blocks()
          Discretize the workshop's geometry to a geometry built from cubes.
 void reset()
          Compute size of blocks.
 void setDiscr(int discr)
          Set global discretization for axes.
 void setDiscr(int dimIndex, int discr)
          Set an individual discretization for one axis direction.
 void setGeometry(PgElementSet geom)
          Assign a geometry, on which the workshop operates.
 
Methods inherited from class jvx.project.PjWorkshop
cancel, close, getDisplay, getDisplays, getGeometry, getSavedGeometry, getViewer, init, isModal, ok, removeGeometry, setDisplay, setDisplays, setGeometry, setModal, setViewer, update
 
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

m_defBlocks

public static java.lang.String m_defBlocks
Default texture for quadrilateral and higher elements.

Constructor Detail

PwBlocks

public PwBlocks()
Constructor.

Method Detail

setGeometry

public void setGeometry(PgElementSet geom)
Assign a geometry, on which the workshop operates.


setDiscr

public void setDiscr(int discr)
Set global discretization for axes.


setDiscr

public void setDiscr(int dimIndex,
                     int discr)
Set an individual discretization for one axis direction.


reset

public void reset()
Compute size of blocks.

Overrides:
reset in class PjWorkshop

blocks

public int[][] blocks()
Discretize the workshop's geometry to a geometry built from cubes.


JavaView© v3.95.000

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