|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--harmonic.mz.util.ObjectRelater
This is a utility for preparing ShapeNode geometries for related computations. It produces new geometries in compatable coordinate systems. To use this, create an ObjectRelater, call prepareCompositeCalculation(), and then get the geometries out with getGeom(). Different ObjectRelaters can be used at the same time, since they keep the replacement geometries independantly of one another.
| Field Summary | |
boolean |
bDebug
|
static int |
CONSUME_COMPOSITES
|
static int |
COPY_COMPOSITES
|
static int |
LINK_COPY_COMPOSITES
|
| Constructor Summary | |
ObjectRelater()
|
|
| Method Summary | |
void |
addToCompositeObject(ShapeNode niw,
UndoGroup block,
int cmode,
boolean hide)
|
void |
beginCompareCalculation(ShapeNode[] input,
java.lang.String geomType)
Prepare object that do not have the same parent to be compared by getting them all in the user coordinate system. |
void |
beginCompareCalculation(ShapeNode[] input,
java.lang.String[] geomType)
|
void |
beginCompositeCalculation(ShapeNode output,
ShapeNode[] input,
java.lang.String[] geomTypes)
Prepare geometries of shape defs to be used for some computation. |
void |
beginCompositeCalculation(ShapeNode niw,
java.lang.String geomType)
|
void |
beginCompositeCalculation(ShapeNode niw,
java.lang.String[] geomType)
|
void |
debug(java.lang.String msg)
|
void |
endCompareCalculation(ShapeNode[] input,
java.lang.String geomType)
Call after compare calculation is finished to remove any temporary geometries or vertex arrays |
void |
endCompareCalculation(ShapeNode[] input,
java.lang.String[] geomType)
|
void |
endCompositeCalculation(ShapeNode[] input,
java.lang.String[] geomTypes)
Call after prepareCompositeCalculation, when the calculation is done. |
void |
endCompositeCalculation(ShapeNode niw,
java.lang.String geomType)
|
void |
endCompositeCalculation(ShapeNode niw,
java.lang.String[] geomType)
|
harmonic.meshGeom.math.TMat |
getCompositeTransform(harmonic.viewer3D.PaintStruct painter)
|
harmonic.meshGeom.geom.Geom |
getGeom(harmonic.viewer3D.PaintStruct painter)
Return geometry of given painter. |
ShapeNode |
prepareArrayCopy(ShapeNode source,
int xCompositeMode)
|
void |
prepareCompositeObject(ShapeNode niw,
int xCompositeMode)
Use the compositing mode to stash away composited objects properly, and set up niw painter in proper layer, etc, and set up undo, and position and transform. |
void |
prepareCompositeObject(ShapeNode niw,
ShapeNode[] input,
int xCompositeMode,
boolean hide)
Lower level version of prepareCompositeObject |
void |
prepareCopy(ShapeNode[] painter,
int xCompositeMode)
Prepare a set of objects to be moved Make sure copy is visible, even if source is not |
void |
preparePrimativeObject(ShapeNode to)
|
void |
setCopyGroups(ShapeNode niw,
ShapeNode source)
|
void |
transformToNotMove(Transformable oldParent,
Transformable newParent,
ShapeNode copy)
Transform object objB so that when it is parented to newParent it will be where it was before. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int CONSUME_COMPOSITES
public static final int COPY_COMPOSITES
public static final int LINK_COPY_COMPOSITES
public boolean bDebug
| Constructor Detail |
public ObjectRelater()
| Method Detail |
public void debug(java.lang.String msg)
public void preparePrimativeObject(ShapeNode to)
public void prepareCompositeObject(ShapeNode niw,
int xCompositeMode)
public void addToCompositeObject(ShapeNode niw,
UndoGroup block,
int cmode,
boolean hide)
public void prepareCompositeObject(ShapeNode niw,
ShapeNode[] input,
int xCompositeMode,
boolean hide)
public void beginCompareCalculation(ShapeNode[] input,
java.lang.String geomType)
public void beginCompareCalculation(ShapeNode[] input,
java.lang.String[] geomType)
public void endCompareCalculation(ShapeNode[] input,
java.lang.String geomType)
public void endCompareCalculation(ShapeNode[] input,
java.lang.String[] geomType)
public void beginCompositeCalculation(ShapeNode niw,
java.lang.String geomType)
public void beginCompositeCalculation(ShapeNode niw,
java.lang.String[] geomType)
public void beginCompositeCalculation(ShapeNode output,
ShapeNode[] input,
java.lang.String[] geomTypes)
public void endCompositeCalculation(ShapeNode niw,
java.lang.String geomType)
public void endCompositeCalculation(ShapeNode niw,
java.lang.String[] geomType)
public void endCompositeCalculation(ShapeNode[] input,
java.lang.String[] geomTypes)
public void transformToNotMove(Transformable oldParent,
Transformable newParent,
ShapeNode copy)
public void setCopyGroups(ShapeNode niw,
ShapeNode source)
public void prepareCopy(ShapeNode[] painter,
int xCompositeMode)
public ShapeNode prepareArrayCopy(ShapeNode source,
int xCompositeMode)
public harmonic.meshGeom.geom.Geom getGeom(harmonic.viewer3D.PaintStruct painter)
public harmonic.meshGeom.math.TMat getCompositeTransform(harmonic.viewer3D.PaintStruct painter)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||