|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjv.object.PsObject
jvx.project.PjWorkshop
jvx.geom.PwTransform
Workshop to perform simple transformations like scaling, translating or rotating on a geometry. All operatins are performed for each coordinate axis individually. Rotations and scalings use the center of each geometry as reference point.
| Field Summary |
| 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 | |
PwTransform(int dim)
Constructor, with dimension of vertices. |
|
PwTransform(PgPointSet geom)
Constructor, with geometry. |
|
| Method Summary | |
void |
close()
Close workshop and remove itself as listener from various classes. |
void |
init()
Initialize the workshop. |
void |
reset()
Reset workshop and reset the geometry with its backup version. |
static void |
rotate(PgPointSet geom,
double angle,
int coord)
Method rotates the given geometry around the specified coordinate axis. |
static void |
rotate(PgPointSet geom,
double angle,
int coord,
boolean selectedOnly)
Method rotates the given geometry around the specified coordinate axis. |
static void |
rotate(PgPointSet geom,
double angle,
int coord,
PdVector centerOfRotation)
Method rotates the given geometry around the specified coordinate axis. |
static void |
rotate(PgPointSet geom,
double angle,
int coord,
PdVector centerOfRotation,
boolean selectedOnly)
Method rotates the given geometry around the specified coordinate axis. |
static void |
scale(PgPointSet geom,
double value)
Method scales the geometry geometry by a given factor. |
static void |
scale(PgPointSet geom,
double value,
int coord)
Method scales one coordinate of the geometry geometry by a given factor. |
static void |
scale(PgPointSet geom,
double value,
int coord,
PdVector center,
boolean selectedOnly)
Method scales one coordinate of the geometry geometry by a given factor. |
static void |
scale(PgPointSet geom,
double value,
PdVector center,
boolean selectedOnly)
Method scales the geometry geometry by a given factor. |
void |
setGeometry(PgPointSet geom)
Assign a geometry on which this workshop operates, and create a backup copy if workshop is cancelled. |
static void |
translate(PgPointSet geom,
double value,
int coord)
Method translates the given geometry in the directions of the given coordinate axis. |
static void |
translate(PgPointSet geom,
double value,
int coord,
boolean selectedOnly)
Method translates the given geometry in the directions of the given coordinate axis. |
boolean |
update(java.lang.Object event)
Update the class whenever a child has changed. |
| Methods inherited from class jvx.project.PjWorkshop |
cancel, getDisplay, getDisplays, getGeometry, getSavedGeometry, getViewer, isModal, ok, removeGeometry, setDisplay, setDisplays, setGeometry, setModal, 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 |
| Constructor Detail |
public PwTransform(PgPointSet geom)
public PwTransform(int dim)
| Method Detail |
public void init()
init in class PjWorkshoppublic void reset()
reset in class PjWorkshoppublic void close()
close in class PjWorkshoppublic void setGeometry(PgPointSet geom)
public boolean update(java.lang.Object event)
update in interface PsUpdateIfupdate in class PjWorkshopevent - sender of this update.
public static void translate(PgPointSet geom,
double value,
int coord,
boolean selectedOnly)
geom - geom that will be translatedvalue - length of the translationcoord - translation in direction of the specified coordinate axisselectedOnly - transform the selected vertices only
public static void translate(PgPointSet geom,
double value,
int coord)
geom - geom that will be translatedvalue - length of the translationcoord - translation in direction of the specified coordinate axis
public static void scale(PgPointSet geom,
double value,
PdVector center,
boolean selectedOnly)
geom - geom that will be scaledvalue - factor of the scalingcenter - Center for scalingselectedOnly - transform the selected vertices only
public static void scale(PgPointSet geom,
double value)
geom - geom that will be scaledvalue - factor of the scaling
public static void scale(PgPointSet geom,
double value,
int coord,
PdVector center,
boolean selectedOnly)
geom - geom that will be scaledvalue - factor of the scalingcoord - scale only of the specified coordinateselectedOnly - transform the selected vertices only
public static void scale(PgPointSet geom,
double value,
int coord)
geom - geom that will be scaledvalue - factor of the scalingcoord - scale only of the specified coordinate
public static void rotate(PgPointSet geom,
double angle,
int coord)
geom - geom that will be rotatedangle - angle of the rotation in radianscoord - rotatation around the specified coordinate axis
public static void rotate(PgPointSet geom,
double angle,
int coord,
boolean selectedOnly)
geom - geom that will be rotatedangle - angle of the rotation in radianscoord - rotatation around the specified coordinate axisselectedOnly - transform the selected vertices only
public static void rotate(PgPointSet geom,
double angle,
int coord,
PdVector centerOfRotation,
boolean selectedOnly)
geom - geom that will be rotatedangle - angle of the rotation in radianscoord - rotatation around the specified coordinate axiscenterOfRotation - rotate geometry around the specified centerselectedOnly - transform the selected vertices only
public static void rotate(PgPointSet geom,
double angle,
int coord,
PdVector centerOfRotation)
geom - geom that will be rotatedangle - angle of the rotation in radianscoord - rotatation around the specified coordinate axiscenterOfRotation - rotate geometry around the specified center
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||