camera3d.gizmo
Class PlaneGizmo

java.lang.Object
  extended byjavax.media.j3d.SceneGraphObject
      extended byjavax.media.j3d.Node
          extended byjavax.media.j3d.Group
              extended byjavax.media.j3d.BranchGroup
                  extended bycamera3d.gizmo.SimpleGizmo
                      extended bycamera3d.gizmo.PlaneGizmo

public class PlaneGizmo
extends SimpleGizmo

Gizmo for showing geometry that represent planes.

Author:
Carlos da Silva dos Santos, Fábio de Miranda

Field Summary
 
Fields inherited from class javax.media.j3d.BranchGroup
ALLOW_DETACH
 
Fields inherited from class javax.media.j3d.Group
ALLOW_CHILDREN_EXTEND, ALLOW_CHILDREN_READ, ALLOW_CHILDREN_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE
 
Fields inherited from class javax.media.j3d.Node
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Constructor Summary
PlaneGizmo(javax.vecmath.Color3b color, javax.vecmath.Point3d p1, javax.vecmath.Point3d p2, javax.vecmath.Point3d p3)
           
PlaneGizmo(javax.vecmath.Color3b color, javax.vecmath.Point3d inPlanePoint, javax.vecmath.Vector3d inPlaneNormal, double width)
           
PlaneGizmo(javax.vecmath.Color3b color, javax.vecmath.Vector4d plane)
           
PlaneGizmo(javax.vecmath.Point3d pt1, javax.vecmath.Point3d pt2, javax.vecmath.Point3d pt3)
          Creates representation of a plane that contains the three points given as input.
PlaneGizmo(javax.vecmath.Point3d planePoint, javax.vecmath.Vector3d planeNormal)
           
PlaneGizmo(javax.vecmath.Vector4d plan)
           
PlaneGizmo(javax.vecmath.Vector4d plan, javax.vecmath.Color3b color)
           
 
Method Summary
 void addToPoint(javax.vecmath.Point3d result, javax.vecmath.Point3d basePoint, double f1, javax.vecmath.Vector3d v1, double f2, javax.vecmath.Vector3d v2)
           
 void buildPlane4dFromPointAndNormal(javax.vecmath.Vector4d result, javax.vecmath.Point3d planePoint, javax.vecmath.Vector3d planeNormal)
           
 void debugln(java.lang.String s)
           
 javax.vecmath.Color3b getDefaultColor()
           
 java.lang.String getLabel()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class javax.media.j3d.BranchGroup
cloneNode, compile, detach, pickAll, pickAllSorted, pickAny, pickClosest
 
Methods inherited from class javax.media.j3d.Group
addChild, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, indexOfChild, insertChild, moveTo, numChildren, removeAllChildren, removeChild, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds
 
Methods inherited from class javax.media.j3d.Node
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData, updateNodeReferences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlaneGizmo

public PlaneGizmo(javax.vecmath.Point3d pt1,
                  javax.vecmath.Point3d pt2,
                  javax.vecmath.Point3d pt3)
Creates representation of a plane that contains the three points given as input.

Parameters:
pt1 - first point belonging to plane
pt2 - second point belonging to plane
pt3 - third point belonging to plane

PlaneGizmo

public PlaneGizmo(javax.vecmath.Color3b color,
                  javax.vecmath.Point3d p1,
                  javax.vecmath.Point3d p2,
                  javax.vecmath.Point3d p3)

PlaneGizmo

public PlaneGizmo(javax.vecmath.Color3b color,
                  javax.vecmath.Vector4d plane)

PlaneGizmo

public PlaneGizmo(javax.vecmath.Vector4d plan)

PlaneGizmo

public PlaneGizmo(javax.vecmath.Vector4d plan,
                  javax.vecmath.Color3b color)

PlaneGizmo

public PlaneGizmo(javax.vecmath.Color3b color,
                  javax.vecmath.Point3d inPlanePoint,
                  javax.vecmath.Vector3d inPlaneNormal,
                  double width)

PlaneGizmo

public PlaneGizmo(javax.vecmath.Point3d planePoint,
                  javax.vecmath.Vector3d planeNormal)
Method Detail

addToPoint

public void addToPoint(javax.vecmath.Point3d result,
                       javax.vecmath.Point3d basePoint,
                       double f1,
                       javax.vecmath.Vector3d v1,
                       double f2,
                       javax.vecmath.Vector3d v2)

buildPlane4dFromPointAndNormal

public void buildPlane4dFromPointAndNormal(javax.vecmath.Vector4d result,
                                           javax.vecmath.Point3d planePoint,
                                           javax.vecmath.Vector3d planeNormal)

debugln

public void debugln(java.lang.String s)

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in class SimpleGizmo

main

public static void main(java.lang.String[] args)

getDefaultColor

public javax.vecmath.Color3b getDefaultColor()
Specified by:
getDefaultColor in class SimpleGizmo


Copyright © 2001-2003 F.R. Miranda, C.S. Santos, J.E. Kogler Jr.. All Rights Reserved.