|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object camera3d.VcObject camera3d.VcHelper camera3d.DistanceMeasurer
Object used to measure distances in the virtual world. A DistanceMeasurer is composed of two main parts: the origin point and the target.
Field Summary |
Fields inherited from class camera3d.VcObject |
transformationMode |
Constructor Summary | |
DistanceMeasurer()
Constructor for the DistanceMeasurer object |
Method Summary | |
double |
getDistance()
Gets the distance attribute of the DistanceMeasurer object |
javax.swing.Icon |
getIcon()
Returns the Icon associated with DistanceMeasurer. |
static int |
getInstanceCounter()
Returns the number of objects instatiated so far. |
camera3d.VcHelperPoint |
getTarget()
Gets the target attribute of the DistanceMeasurer object |
boolean |
isBound()
Returns a flag indicating whether the target movement is bound to the origin object. |
static void |
main(java.lang.String[] args)
The main program for the DistanceMeasurer class |
void |
measureDistance()
Makes the measurement. |
void |
setBound(boolean bound)
Sets whether the target object should move in companion to the origin point. |
void |
setBranchGroup(javax.media.j3d.BranchGroup bg)
Sets BranchGroup which determines the scope of picking. |
void |
setDirection(javax.vecmath.Vector3d direction)
Sets the direction for measurement. |
void |
setIcon(javax.swing.Icon measurerIcon)
Sets the Icon associated with DistanceMeasurer. |
void |
setJ3DBase(J3DBase base)
Sets the j3DBase attribute of the DistanceMeasurer object |
void |
setMode(int direction,
TransformScope axis)
Sets measurement mode. |
void |
setNegativeX()
Sets the negativeX attribute of the DistanceMeasurer object |
void |
setNegativeY()
Sets the negativeY attribute of the DistanceMeasurer object |
void |
setNegativeZ()
Sets the negativeZ attribute of the DistanceMeasurer object |
protected void |
setOrigin()
O ponto de origem (em coordenadas de VWorld) é obtido Simplesmente convertendo as coordenadas do ponto (0,0,0), que está no mesmo referencial que o gizmo que indica a origem do medidor para coordenadas de VWorld |
void |
setPositiveX()
Sets the positiveX attribute of the DistanceMeasurer object |
void |
setPositiveY()
Sets the positiveY attribute of the DistanceMeasurer object |
void |
setPositiveZ()
Sets the positiveZ attribute of the DistanceMeasurer object |
protected void |
setTargetPosition(javax.vecmath.Point3d point)
Sets the targetPosition attribute of the DistanceMeasurer object |
protected void |
setTargetPositionRelative(javax.vecmath.Point3d point)
Sets the targetPositionRelative attribute of the DistanceMeasurer object |
void |
setToTarget()
Sets the direction for measurement so it corresponds to the current position of the target object. |
protected void |
showPicked(javax.vecmath.Point3d point)
Coloca um gizmo no ponto especificado (que deve ser onde o raio de picking bateu) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DistanceMeasurer()
Method Detail |
public static int getInstanceCounter()
public static void main(java.lang.String[] args)
args
- The command line argumentspublic final void setJ3DBase(J3DBase base)
base
- The new j3DBase valuepublic void setBranchGroup(javax.media.j3d.BranchGroup bg)
bg
- The new branchGroup valuepublic void setDirection(javax.vecmath.Vector3d direction)
direction
- The new direction valuepublic void setToTarget()
public void setNegativeZ()
public void setPositiveZ()
public void setPositiveX()
public void setNegativeX()
public void setPositiveY()
public void setNegativeY()
protected void setOrigin()
public void setBound(boolean bound)
bound
- The new bound valueprotected void setTargetPosition(javax.vecmath.Point3d point)
point
- The new targetPosition valueprotected void setTargetPositionRelative(javax.vecmath.Point3d point)
point
- The new targetPositionRelative valuepublic void setMode(int direction, TransformScope axis)
direction
- If positive, measurement will be
performed in positive direction of axis. If negative, measurement
will be performed in negative direction of axis.axis
- Axis that defines direction of
measurement.
java.lang.IllegalArgumentException
- if axis is not really an axis (X,Y or
Z).public void setIcon(javax.swing.Icon measurerIcon)
setIcon
in class VcObject
measurerIcon
- The new icon valuepublic camera3d.VcHelperPoint getTarget()
public double getDistance()
public boolean isBound()
public javax.swing.Icon getIcon()
getIcon
in class VcObject
public void measureDistance()
protected void showPicked(javax.vecmath.Point3d point)
point
- Description of the Parameter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |