org.hfbk.vis.visnode.VisDucts.VisDuct Class Reference

Inheritance diagram for org.hfbk.vis.visnode.VisDucts.VisDuct:

Inheritance graph
[legend]
Collaboration diagram for org.hfbk.vis.visnode.VisDucts.VisDuct:

Collaboration graph
[legend]
List of all members.

Package Functions

VisDuct getThis ()
 VisDuct (int type)
void buildPorts ()
void renderSelf ()
void transform ()
void retransform ()
void spin (Port port)
void handleEvent (VisMouseEvent evt)

Package Attributes

VisDuct diz = this
Matrix4f orientation = new Matrix4f()
List< Portports = new ArrayList<Port>()
Port candidate
Port candidateOwn
int type
boolean wasDragged

Static Package Attributes

static int index = 0

Classes

class  Port

Detailed Description

a duct piece. its geometry is loaded from a .obj file, and the .obj groups dock1...dockn faces are used as Ports: Ports are sites where the two duct pieces can join together. The compatibility of two Ports is checked only on a rectangular base, so keep the dock faces simple rectangles. Also take care of the dock polygon order, as the dock normal is defined by clockwise order.

Definition at line 52 of file VisDucts.java.


Constructor & Destructor Documentation

org.hfbk.vis.visnode.VisDucts.VisDuct.VisDuct ( int  type  )  [package]

build one duct of given type, which loads from obj/duct/[type].obj

Definition at line 167 of file VisDucts.java.

References org.hfbk.vis.visnode.VisDucts.VisDuct.buildPorts(), org.hfbk.vis.visnode.VisDucts.VisDuct.index, and org.hfbk.vis.visnode.VisNode.radius.

Here is the call graph for this function:


Member Function Documentation

VisDuct org.hfbk.vis.visnode.VisDucts.VisDuct.getThis (  )  [package]

Definition at line 60 of file VisDucts.java.

Referenced by org.hfbk.vis.visnode.VisDucts.VisDuct.Port.getOwner().

Here is the caller graph for this function:

void org.hfbk.vis.visnode.VisDucts.VisDuct.buildPorts (  )  [package]

searches the .obj stored geometry for groups called dock1 .. dockn and create ports thereof.

Definition at line 177 of file VisDucts.java.

References org.hfbk.vis.visnode.VisObj.groups, and org.hfbk.vis.visnode.VisDucts.VisDuct.ports.

Referenced by org.hfbk.vis.visnode.VisDucts.VisDuct.VisDuct().

Here is the caller graph for this function:

void org.hfbk.vis.visnode.VisDucts.VisDuct.renderSelf (  )  [package, virtual]

renders duct as surface geometry, colouring wireframe to indicate if candidate ports are selected.

Implements org.hfbk.vis.visnode.VisNode.

Definition at line 187 of file VisDucts.java.

References org.hfbk.vis.visnode.VisDucts.VisDuct.candidate, org.hfbk.vis.visnode.VisDucts.VisDuct.candidateOwn, org.hfbk.vis.visnode.VisDucts.VisDuct.Port.center, org.hfbk.vis.visnode.VisDucts.VisDuct.Port.getOwner(), org.hfbk.vis.visnode.VisNodeMousable.isDragged, org.hfbk.vis.visnode.VisDucts.VisDuct.Port.matchPlaneRotation(), org.hfbk.vis.visnode.VisDucts.VisDuct.Port.normal, org.hfbk.vis.visnode.VisDucts.VisDuct.orientation, org.hfbk.vis.visnode.VisNode.parent, org.hfbk.vis.visnode.VisDucts.VisDuct.ports, org.hfbk.vis.visnode.VisNode.position, org.hfbk.vis.visnode.VisDucts.VisDuct.retransform(), org.hfbk.vis.visnode.VisNode.traverse(), and org.hfbk.vis.visnode.VisDucts.VisDuct.wasDragged.

Here is the call graph for this function:

void org.hfbk.vis.visnode.VisDucts.VisDuct.transform (  )  [package]

extend transform with a rotation.

Reimplemented from org.hfbk.vis.visnode.VisNode.

Definition at line 236 of file VisDucts.java.

References org.hfbk.vis.visnode.VisDucts.VisDuct.orientation.

Referenced by org.hfbk.vis.visnode.VisDucts.VisDuct.retransform().

Here is the caller graph for this function:

void org.hfbk.vis.visnode.VisDucts.VisDuct.retransform (  )  [package]

usually the transform is applied prior to rendering. this updates the transform inbetween to allow following calculations take space in updated orientation.

Definition at line 247 of file VisDucts.java.

References org.hfbk.vis.visnode.VisNode.currentTransform, and org.hfbk.vis.visnode.VisDucts.VisDuct.transform().

Referenced by org.hfbk.vis.visnode.VisDucts.VisDuct.renderSelf(), and org.hfbk.vis.visnode.VisDucts.VisDuct.spin().

Here is the call graph for this function:

Here is the caller graph for this function:

void org.hfbk.vis.visnode.VisDucts.VisDuct.spin ( Port  port  )  [package]

spin the duct piece 90 degree around the given Ports normal.

Definition at line 255 of file VisDucts.java.

References org.hfbk.vis.visnode.VisDucts.VisDuct.Port.center, org.hfbk.vis.visnode.VisDucts.VisDuct.Port.normal, org.hfbk.vis.visnode.VisDucts.VisDuct.orientation, org.hfbk.vis.visnode.VisNode.parent, org.hfbk.vis.visnode.VisNode.position, org.hfbk.vis.visnode.VisDucts.VisDuct.retransform(), and org.hfbk.vis.visnode.VisNode.traverse().

Referenced by org.hfbk.vis.visnode.VisDucts.VisDuct.handleEvent().

Here is the call graph for this function:

Here is the caller graph for this function:

void org.hfbk.vis.visnode.VisDucts.VisDuct.handleEvent ( VisMouseEvent  evt  )  [package]

handle mouseclicks near to Ports which will spin this duct piece around them.

Reimplemented from org.hfbk.vis.visnode.VisNodeDraggable.

Definition at line 266 of file VisDucts.java.

References org.hfbk.vis.visnode.VisNodeDraggable.hit(), org.hfbk.vis.visnode.VisDucts.VisDuct.ports, and org.hfbk.vis.visnode.VisDucts.VisDuct.spin().

Here is the call graph for this function:


Member Data Documentation

int org.hfbk.vis.visnode.VisDucts.VisDuct.index = 0 [static, package]

Definition at line 53 of file VisDucts.java.

Referenced by org.hfbk.vis.visnode.VisDucts.VisDuct.VisDuct().

VisDuct org.hfbk.vis.visnode.VisDucts.VisDuct.diz = this [package]

Definition at line 55 of file VisDucts.java.

Matrix4f org.hfbk.vis.visnode.VisDucts.VisDuct.orientation = new Matrix4f() [package]

transformation to rotate the duct piece.

Definition at line 58 of file VisDucts.java.

Referenced by org.hfbk.vis.visnode.VisDucts.VisDuct.renderSelf(), org.hfbk.vis.visnode.VisDucts.VisDuct.spin(), and org.hfbk.vis.visnode.VisDucts.VisDuct.transform().

List<Port> org.hfbk.vis.visnode.VisDucts.VisDuct.ports = new ArrayList<Port>() [package]

the Ports this duct piece have.

Definition at line 158 of file VisDucts.java.

Referenced by org.hfbk.vis.visnode.VisDucts.VisDuct.buildPorts(), org.hfbk.vis.visnode.VisDucts.VisDuct.handleEvent(), org.hfbk.vis.visnode.VisDucts.renderSelf(), and org.hfbk.vis.visnode.VisDucts.VisDuct.renderSelf().

Port org.hfbk.vis.visnode.VisDucts.VisDuct.candidate [package]

the candidate of another duct to join.

Definition at line 161 of file VisDucts.java.

Referenced by org.hfbk.vis.visnode.VisDucts.renderSelf(), and org.hfbk.vis.visnode.VisDucts.VisDuct.renderSelf().

Port org.hfbk.vis.visnode.VisDucts.VisDuct.candidateOwn [package]

Definition at line 161 of file VisDucts.java.

Referenced by org.hfbk.vis.visnode.VisDucts.renderSelf(), and org.hfbk.vis.visnode.VisDucts.VisDuct.renderSelf().

int org.hfbk.vis.visnode.VisDucts.VisDuct.type [package]

type of this duct piece, corresponds to obj file name.

Definition at line 164 of file VisDucts.java.

boolean org.hfbk.vis.visnode.VisDucts.VisDuct.wasDragged [package]

if this was dragged, used to detect drop events.

Definition at line 184 of file VisDucts.java.

Referenced by org.hfbk.vis.visnode.VisDucts.VisDuct.renderSelf().


The documentation for this class was generated from the following file:
Generated on Tue Apr 7 17:59:04 2009 for visclient by  doxygen 1.5.1