public class PwSurface extends PjWorkshop
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_TAGS
MODE_BUG, MODE_STANDARD, MODE_VALIDATE
Constructor and Description |
---|
PwSurface()
Constructor.
|
PwSurface(PgSurface geom)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
compute()
Update the registered geometry based on the currently selected solid type.
|
int |
getSurfaceType()
Get the name of the currently selected solid.
|
void |
init()
Initialization.
|
void |
reset()
Reset workshop and geometry to original state.
|
void |
setGeometry(PgSurface geom)
Set geometry which will be filled with the currently selected solid.
|
boolean |
setSurfaceType(int type)
Select a solid by specifying its type.
|
cancel, close, getDisplay, getDisplays, getGeometry, getMode, getSavedGeometry, getViewer, isModal, isStandalone, ok, removeGeometry, setDisplay, setDisplays, setGeometry, setModal, setMode, setStandalone, setViewer, update
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFather, getName, setParent
public PwSurface()
public PwSurface(PgSurface geom)
public void init()
init
in class PjWorkshop
public void reset()
reset
in class PjWorkshop
public void setGeometry(PgSurface geom)
setSurfaceType(int)
,
PjWorkshop.removeGeometry()
public int getSurfaceType()
PgSurfaceDescr.KLEINBOTTLE
.getSurfaceType()
,
setSurfaceType(int)
public boolean setSurfaceType(int type)
type
- any value like PgSurfaceDescr.KLEINBOTTLE
.getSurfaceType()
public boolean compute()
setSurfaceType(int)
"