org.hfbk.vis.visnode.VisPartitionNode Class Reference

Inheritance diagram for org.hfbk.vis.visnode.VisPartitionNode:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

void add (VisNode node)

Package Functions

 VisPartitionNode (Vector3f position)
void balance ()
void renderSelf ()

Package Attributes

float scale
boolean dirty = false
HashMap< Triple, VisPartitionNodepartition = new HashMap<Triple,VisPartitionNode>()
final Random hasher = new Random()

Classes

class  Triple

Detailed Description

a simple grid like space partitioning. the grid cell size must be given in lenght units. after addition of nodes, the first render call invokes balancer which center spherical cells on the paritioned nodes.

currently used for the VisLog which places many nodes on a large plane.

Author:
student

Definition at line 25 of file VisPartitionNode.java.


Constructor & Destructor Documentation

org.hfbk.vis.visnode.VisPartitionNode.VisPartitionNode ( Vector3f  position  )  [package]

Definition at line 30 of file VisPartitionNode.java.

Referenced by org.hfbk.vis.visnode.VisPartitionNode.balance().

Here is the caller graph for this function:


Member Function Documentation

void org.hfbk.vis.visnode.VisPartitionNode.add ( VisNode  node  ) 

add a child node.

Parameters:
node node to add

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

Definition at line 34 of file VisPartitionNode.java.

References org.hfbk.vis.visnode.VisPartitionNode.dirty, and org.hfbk.vis.visnode.VisNode.node.

Referenced by org.hfbk.vis.visnode.VisLog.addIncoming(), and org.hfbk.vis.visnode.VisPartitionNode.balance().

Here is the caller graph for this function:

void org.hfbk.vis.visnode.VisPartitionNode.balance (  )  [package]

Definition at line 46 of file VisPartitionNode.java.

References org.hfbk.vis.visnode.VisPartitionNode.add(), org.hfbk.vis.visnode.VisNode.center(), org.hfbk.vis.visnode.VisNode.children, org.hfbk.vis.visnode.VisNode.getExtends(), org.hfbk.vis.visnode.VisNode.node, org.hfbk.vis.visnode.VisNode.parent, org.hfbk.vis.visnode.VisPartitionNode.partition, org.hfbk.vis.visnode.VisNode.position, org.hfbk.vis.visnode.VisPartitionNode.scale, and org.hfbk.vis.visnode.VisPartitionNode.VisPartitionNode().

Referenced by org.hfbk.vis.visnode.VisPartitionNode.renderSelf().

Here is the call graph for this function:

Here is the caller graph for this function:

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

implement this to actually render this node itself. also used to update a node's state.

things not seen also do not update. this is sometimes akward, sometimes useful, eg. a movie not seen does not advance

Implements org.hfbk.vis.visnode.VisNode.

Reimplemented in org.hfbk.vis.visnode.VisLog.

Definition at line 100 of file VisPartitionNode.java.

References org.hfbk.vis.visnode.VisPartitionNode.balance(), and org.hfbk.vis.visnode.VisPartitionNode.dirty.

Here is the call graph for this function:


Member Data Documentation

float org.hfbk.vis.visnode.VisPartitionNode.scale [package]

Definition at line 26 of file VisPartitionNode.java.

Referenced by org.hfbk.vis.visnode.VisLog.addIncoming(), and org.hfbk.vis.visnode.VisPartitionNode.balance().

boolean org.hfbk.vis.visnode.VisPartitionNode.dirty = false [package]

Definition at line 27 of file VisPartitionNode.java.

Referenced by org.hfbk.vis.visnode.VisPartitionNode.add(), and org.hfbk.vis.visnode.VisPartitionNode.renderSelf().

HashMap<Triple,VisPartitionNode> org.hfbk.vis.visnode.VisPartitionNode.partition = new HashMap<Triple,VisPartitionNode>() [package]

space partitioning map

Definition at line 42 of file VisPartitionNode.java.

Referenced by org.hfbk.vis.visnode.VisPartitionNode.balance().

final Random org.hfbk.vis.visnode.VisPartitionNode.hasher = new Random() [package]

Definition at line 80 of file VisPartitionNode.java.

Referenced by org.hfbk.vis.visnode.VisPartitionNode.Triple.hashCode().


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