public class PwRefinePolygon extends PjWorkshop
Modifier and Type | Field and Description |
---|---|
static int |
COARSEN_CHAIKIN |
static int |
COARSEN_DFH |
static int |
COARSEN_DLG |
static int |
COARSEN_LINEAR |
static int |
REFINE_CHAIKIN |
static int |
REFINE_DFH |
static int |
REFINE_DLG |
static int |
REFINE_LINEAR |
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 |
---|
PwRefinePolygon()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addSequenceEntry(int entry)
Store a new refinement step to the refinement sequence.
|
void |
close()
Remove the control polygon from the display and destroy this workshop.
|
static void |
coarsenChaikin(PgPolygon poly)
Coarsen a PgPolygon global by a reversed Chaikin algorithm.
|
static void |
coarsenChaikin(PgPolygonSet polySet)
Coarsen a PgPolygonSet global by a reversed Chaikin algorithm.
|
static void |
coarsenDFH(PgPolygon poly)
Coarsen a PgPolygon global by a reversed DFH algorithm.
|
static void |
coarsenDFH(PgPolygonSet polySet)
Coarsen a PgPolygonSet global by a reversed Chaikin algorithm.
|
static void |
coarsenDLG(PgPolygon poly)
Coarsen a PgPolygon by removing every second vertex.
|
static void |
coarsenDLG(PgPolygonSet polySet)
Coarsen a PgPolygonSet by removing every second vertex.
|
static void |
coarsenLinear(PgPolygon poly)
Coarsen a PgPolygon by removing every second vertex.
|
static void |
coarsenLinear(PgPolygonSet polySet)
Coarsen a PgPolygonSet by removing every second vertex.
|
static PdVector |
getFourPointMask()
Return mask vector for Dyn, Floater, Hormann new four point scheme.
|
static PdVector |
getFourPointMask(double tension)
Return mask vector for Dyn, Floater, Hormann new four point scheme.
|
boolean |
isShowingControlGrid()
Checks if control grid of polygon is visible.
|
static void |
refineChaikin(PgPolygon poly)
Refine a PgPolygon globally by Chaikin's algorithm.
|
static void |
refineChaikin(PgPolygonSet polySet)
Refine a PgPolygonSet globally by Chaikin's algorithm.
|
static void |
refineDFH(PgPolygon poly,
PdVector weight)
Refine a PgPolygon globally by a 2n-point rule.
|
static void |
refineDFH(PgPolygonSet polySet,
PdVector weight)
Refine a PgPolygon globally by a 2n-point rule.
|
static void |
refineDLG(PgPolygon poly)
Refine a PgPolygon globally by DLG scheme.
|
static void |
refineDLG(PgPolygonSet polySet)
Refine a PgPolygonSet globally by DLG scheme.
|
static void |
refineLinear(PgPolygon poly)
Refine a PgPolygon globally by inserting edge midpoints.
|
static void |
refineLinear(PgPolygonSet polySet)
Refine a PgPolygonSet globally by inserting edge mid points.
|
void |
reset()
Remove all previously done refining and and coarsening
and set the workshop to its initial status.
|
void |
sequenceRefine()
Recompute all refinement steps.
|
void |
setGeometry(PgPolygon geom)
Assign a geometry on which this workshop operates,
and create two backup copies: One for canceling and
one to be used as control polygon for the refined geometry.
|
void |
setGeometry(PgPolygonSet geom)
Assign a geometry on which this workshop operates,
and create two backup copies: One for canceling and
one to be used as control polygonSet for the refined geometry.
|
void |
showControlGrid(boolean bShow)
Set the control polygon visible or invisible in the display.
|
boolean |
update(java.lang.Object event)
Update the class whenever a child has changed.
|
cancel, getDisplay, getDisplays, getGeometry, getMode, getSavedGeometry, getViewer, init, isModal, isStandalone, ok, openDialog, removeGeometry, setDisplay, setDisplays, setGeometry, setModal, setMode, setStandalone, setViewer
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 static final int REFINE_DLG
public static final int COARSEN_DLG
public static final int REFINE_CHAIKIN
public static final int COARSEN_CHAIKIN
public static final int REFINE_LINEAR
public static final int COARSEN_LINEAR
public static final int REFINE_DFH
public static final int COARSEN_DFH
public void setGeometry(PgPolygon geom)
public void setGeometry(PgPolygonSet geom)
public boolean update(java.lang.Object event)
update
in interface PsUpdateIf
update
in class PjWorkshop
event
- sender of this update.PsObject.setParent(PsUpdateIf)
,
PsObject.getFather()
,
PsObject.addUpdateListener(PsUpdateIf)
public void reset()
reset
in class PjWorkshop
public boolean isShowingControlGrid()
public void showControlGrid(boolean bShow)
public void close()
close
in class PjWorkshop
public void addSequenceEntry(int entry)
public void sequenceRefine()
public static PdVector getFourPointMask()
public static PdVector getFourPointMask(double tension)
public static void refineLinear(PgPolygon poly)
public static void refineDLG(PgPolygon poly)
public static void coarsenDLG(PgPolygon poly)
public static void coarsenLinear(PgPolygon poly)
public static void refineChaikin(PgPolygon poly)
public static void coarsenChaikin(PgPolygon poly)
public static void refineDFH(PgPolygon poly, PdVector weight)
public static void coarsenDFH(PgPolygon poly)
public static void refineLinear(PgPolygonSet polySet)
public static void refineDLG(PgPolygonSet polySet)
public static void coarsenDLG(PgPolygonSet polySet)
public static void coarsenLinear(PgPolygonSet polySet)
public static void refineChaikin(PgPolygonSet polySet)
public static void coarsenChaikin(PgPolygonSet polySet)
public static void refineDFH(PgPolygonSet polySet, PdVector weight)
public static void coarsenDFH(PgPolygonSet polySet)
"