jvx.geom
Class PwLocalRemesh
- java.lang.Object
-
- jv.object.PsObject
-
- jvx.project.PjWorkshop
-
- jvx.geom.PwLocalRemesh
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, PsUpdateIf, PjWorkshopIf
public class PwLocalRemesh extends PjWorkshop
Workshop gives access to a number of local mesh modeling tools.- See Also:
- Serialized Form
- Author:
- Ulrich Reitebuch
- Version:
- 18.12.09, 1.00 created (ur)
-
-
Field Summary
Fields Modifier and Type Field and Description static intCOLLAPSE_EDGEIdentifier for Collapse Edge mode.static intFLIP_EDGEIdentifier for Flip Edge mode.static intFLIP_ELEMENTIdentifier for Flip Element mode.static intIDENTIFY_MARKED_VERTICESIdentifier for Identify Marked Vertices mode.static intREMOVE_EDGEIdentifier for Remove Edge mode.static intREMOVE_VERTEX_FILL_STARIdentifier for Remove Vertex Fill Star mode.static intROTATE_STARIdentifier for Rotate Star mode.static intSPLIT_CENTRALIdentifier for Split Central mode.static intSPLIT_ELEMENTIdentifier for Split Element mode.-
Fields inherited from class jv.object.PsObject
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
-
Fields inherited from interface jv.project.PjWorkshopIf
MODE_BUG, MODE_STANDARD, MODE_VALIDATE
-
-
Constructor Summary
Constructors Constructor and Description PwLocalRemesh()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyRemeshing()Apply the currently selected remeshing method to the workshop's geometry.voidcancel()Cancel all changes made by this workshop and close the dialog window.voidlistenToGeometryUpdates(boolean flag)Toggle automatic remeshing on elementSet updates.voidok()Confirm all changes made by this workshop and close the dialog window.voidsetCurrentMode(int mode)Set current remeshing mode.voidsetGeometry(PgGeometry geom)Set geometry to the workshop.booleanupdate(java.lang.Object event)Update whenever a child has changed.-
Methods inherited from class jvx.project.PjWorkshop
close, getDisplay, getDisplays, getGeometry, getMode, getSavedGeometry, getViewer, init, isModal, isStandalone, removeGeometry, reset, setDisplay, setDisplays, setModal, setMode, setStandalone, 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
-
FLIP_EDGE
public static final int FLIP_EDGE
Identifier for Flip Edge mode.- See Also:
- Constant Field Values
-
COLLAPSE_EDGE
public static final int COLLAPSE_EDGE
Identifier for Collapse Edge mode.- See Also:
- Constant Field Values
-
REMOVE_EDGE
public static final int REMOVE_EDGE
Identifier for Remove Edge mode.- See Also:
- Constant Field Values
-
SPLIT_CENTRAL
public static final int SPLIT_CENTRAL
Identifier for Split Central mode.- See Also:
- Constant Field Values
-
FLIP_ELEMENT
public static final int FLIP_ELEMENT
Identifier for Flip Element mode.- See Also:
- Constant Field Values
-
ROTATE_STAR
public static final int ROTATE_STAR
Identifier for Rotate Star mode.- See Also:
- Constant Field Values
-
SPLIT_ELEMENT
public static final int SPLIT_ELEMENT
Identifier for Split Element mode.- See Also:
- Constant Field Values
-
REMOVE_VERTEX_FILL_STAR
public static final int REMOVE_VERTEX_FILL_STAR
Identifier for Remove Vertex Fill Star mode.- See Also:
- Constant Field Values
-
IDENTIFY_MARKED_VERTICES
public static final int IDENTIFY_MARKED_VERTICES
Identifier for Identify Marked Vertices mode.- See Also:
- Constant Field Values
-
-
Method Detail
-
setGeometry
public void setGeometry(PgGeometry geom)
Set geometry to the workshop.- Specified by:
setGeometryin interfacePjWorkshopIf- Overrides:
setGeometryin classPjWorkshop- Parameters:
geom- the workshop modifies this geometry.
-
listenToGeometryUpdates
public void listenToGeometryUpdates(boolean flag)
Toggle automatic remeshing on elementSet updates.
-
setCurrentMode
public void setCurrentMode(int mode)
Set current remeshing mode.
-
update
public boolean update(java.lang.Object event)
Update whenever a child has changed.- Specified by:
updatein interfacePsUpdateIf- Overrides:
updatein classPjWorkshop- Parameters:
event- sender of this update.- Returns:
- true if update was correctly handled by superclass.
- See Also:
PsObject.setParent(PsUpdateIf),PsObject.getFather(),PsObject.addUpdateListener(PsUpdateIf)
-
applyRemeshing
public void applyRemeshing()
Apply the currently selected remeshing method to the workshop's geometry.
-
cancel
public void cancel()
Cancel all changes made by this workshop and close the dialog window.- Overrides:
cancelin classPjWorkshop
-
ok
public void ok()
Confirm all changes made by this workshop and close the dialog window.- Overrides:
okin classPjWorkshop
-
-
"