public class PwBlocks extends PjWorkshop
| Modifier and Type | Field and Description |
|---|---|
static java.awt.Color[] |
COLOR_TABLE
Used block colors, average pixel values of block texture
|
static java.lang.String |
m_defBlocks
Default texture for quadrilateral and higher elements.
|
HAS_BOUNDARY_PANEL, 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_TAGSMODE_BUG, MODE_STANDARD, MODE_VALIDATE| Constructor and Description |
|---|
PwBlocks()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int[][] |
blocks()
Discretize the workshop's geometry to a geometry built from cubes.
|
boolean[][][] |
getUsedBlocks(int[][] intCoordinates)
Get bits for being used for every cube of the discretization.
|
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.
|
cancel, close, getDisplay, getDisplays, getGeometry, getMode, getSavedGeometry, getViewer, init, isModal, isStandalone, ok, openDialog, removeGeometry, setDisplay, setDisplays, setGeometry, setModal, setMode, setStandalone, setViewer, updateaddInspector, 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, updatePanelsequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFather, getName, setParentpublic static final java.awt.Color[] COLOR_TABLE
public static java.lang.String m_defBlocks
public void setGeometry(PgElementSet geom)
public void setDiscr(int discr)
public void setDiscr(int dimIndex,
int discr)
public void reset()
reset in class PjWorkshoppublic int[][] blocks()
public boolean[][][] getUsedBlocks(int[][] intCoordinates)
"