Public Member Functions | |
VisRoot (VisClient client) | |
VisNode | create (String type, String keyword) |
void | fetch (String source, String keyword, VisNode sourceNode) |
void | add (VisNode node) |
Public Attributes | |
Vector3f | epicenter = new Vector3f(200,0,-150) |
VisClient | client |
VisNode | lastVisNode |
Package Functions | |
void | renderSelf () |
void | fetch (String url, VisNode sourceNode) |
String | buildQuery (String source, String keyword) |
void | visualiseTree (Node root, VisNode sourceVisNode) |
void | visualiseSubtree (Node n, int siblings, VisNode parentVisNode, float spread, HashSet< Node > nodestack) |
void | closeSelf () |
Package Attributes | |
List< Source > | fetchers = new CopyOnWriteArrayList<Source>() |
HashMap< String, VisNode > | sourceNodesBySource = new HashMap<String,VisNode>() |
HashMap< String, VisNode > | nodesBySource = new HashMap<String,VisNode>() |
root of transforms. fetches trees from the vis/server and create visual VisNodes for their Nodes. forwards messages to the client.
holds some mappings (sourceNodesBySource, nodesBySource) for convenient placement and relation visualisation
Definition at line 36 of file VisRoot.java.
org.hfbk.vis.visnode.VisRoot.VisRoot | ( | VisClient | client | ) |
void org.hfbk.vis.visnode.VisRoot.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.VisHUD.
Definition at line 72 of file VisRoot.java.
References org.hfbk.vis.visnode.VisRoot.client, org.hfbk.vis.visnode.VisRoot.fetchers, org.hfbk.vis.visnode.VisRoot.lastVisNode, org.hfbk.vis.visnode.VisRoot.nodesBySource, org.hfbk.vis.visnode.VisNode.parent, org.hfbk.vis.visnode.VisNode.position, org.hfbk.vis.VisClient.setLookAt(), org.hfbk.vis.visnode.VisRoot.sourceNodesBySource, org.hfbk.vis.visnode.VisNode.traverse(), org.hfbk.vis.visnode.VisNode.url, and org.hfbk.vis.visnode.VisRoot.visualiseTree().
Here is the call graph for this function:
VisNode org.hfbk.vis.visnode.VisRoot.create | ( | String | type, | |
String | keyword | |||
) |
create single node of given class type for some keyword. it is placed in the same way as it would be if fetched from web. this is useful for user instantiated helper nodes and nodes visualizing local files.
Definition at line 101 of file VisRoot.java.
References org.hfbk.vis.visnode.VisRoot.client, org.hfbk.vis.visnode.VisRoot.lastVisNode, org.hfbk.vis.visnode.VisNode.position, org.hfbk.vis.VisClient.setViewpoint(), and org.hfbk.vis.visnode.VisRoot.visualiseTree().
Referenced by org.hfbk.vis.visnode.VisFilesys.VisCallBall.handleEvent().
Here is the call graph for this function:
Here is the caller graph for this function:
void org.hfbk.vis.visnode.VisRoot.fetch | ( | String | source, | |
String | keyword, | |||
VisNode | sourceNode | |||
) |
reads data from a specified source for some keyword if keyword is already visualized, the view is centered on it and nothing is fetched.
if Prefs.current.log is enabled, the fetch is logged to the servers log script.
source | ||
keyword |
Definition at line 118 of file VisRoot.java.
References org.hfbk.vis.visnode.VisRoot.buildQuery(), and org.hfbk.vis.visnode.VisNode.url.
Referenced by org.hfbk.vis.VisClientWindow.buildUI(), org.hfbk.vis.visnode.VisLog.LogPoint.fetch(), org.hfbk.vis.visnode.VisImagefield.fetchMore(), org.hfbk.vis.Allesfresser.frissFile(), org.hfbk.vis.visnode.VisVideoImage.handleEvent(), org.hfbk.vis.visnode.VisKeyword.handleEvent(), org.hfbk.vis.visnode.VisImage.handleEvent(), org.hfbk.vis.VisTests.main(), org.hfbk.vis.visnode.VisKeyword.menuAction(), org.hfbk.vis.visnode.VisWelcome.renderSelf(), and org.hfbk.vis.visnode.Automator.renderSelf().
Here is the call graph for this function:
Here is the caller graph for this function:
void org.hfbk.vis.visnode.VisRoot.fetch | ( | String | url, | |
VisNode | sourceNode | |||
) | [package] |
Definition at line 124 of file VisRoot.java.
References org.hfbk.vis.visnode.VisRoot.client, org.hfbk.vis.visnode.VisRoot.fetchers, org.hfbk.vis.visnode.VisRoot.nodesBySource, org.hfbk.vis.visnode.VisNode.position, org.hfbk.vis.VisClient.setViewpoint(), and org.hfbk.vis.visnode.VisRoot.sourceNodesBySource.
Here is the call graph for this function:
String org.hfbk.vis.visnode.VisRoot.buildQuery | ( | String | source, | |
String | keyword | |||
) | [package] |
Definition at line 138 of file VisRoot.java.
Referenced by org.hfbk.vis.visnode.VisRoot.fetch().
Here is the caller graph for this function:
recurses a graph tree seeking for visualisable nodes
does some type dependent placement things, modes are: -spread nodes on a new level -place nodes right to the source node -place nodes in front of camera
TODO layout operation, maybe all node type specific operation should go to the specific Vis... class.
root | a tree root node | |
sourceVisNode | the visnode this tree's fetch is sourced from, if any. |
Definition at line 166 of file VisRoot.java.
References org.hfbk.vis.visnode.VisRoot.client, org.hfbk.vis.visnode.VisRoot.epicenter, org.hfbk.vis.visnode.VisNode.getExtends(), org.hfbk.vis.visnode.VisRoot.lastVisNode, org.hfbk.vis.visnode.VisNode.layoutLocked, org.hfbk.vis.VisClient.mouseViewpoint, org.hfbk.vis.visnode.VisNode.position, org.hfbk.vis.visnode.VisNode.radius, org.dronus.graph.Node.type, and org.hfbk.vis.visnode.VisRoot.visualiseSubtree().
Referenced by org.hfbk.vis.visnode.VisRoot.create(), and org.hfbk.vis.visnode.VisRoot.renderSelf().
Here is the call graph for this function:
Here is the caller graph for this function:
void org.hfbk.vis.visnode.VisRoot.visualiseSubtree | ( | Node | n, | |
int | siblings, | |||
VisNode | parentVisNode, | |||
float | spread, | |||
HashSet< Node > | nodestack | |||
) | [package] |
Definition at line 200 of file VisRoot.java.
References org.hfbk.vis.visnode.VisNode.add(), org.hfbk.vis.visnode.VisNode.children, org.dronus.graph.Node.edgeCount(), org.hfbk.vis.visnode.VisRoot.lastVisNode, org.hfbk.vis.visnode.VisNode.position, org.hfbk.vis.visnode.VisNode.remove(), and org.hfbk.vis.visnode.VisNode.url.
Referenced by org.hfbk.vis.visnode.VisRoot.visualiseTree().
Here is the call graph for this function:
Here is the caller graph for this function:
void org.hfbk.vis.visnode.VisRoot.add | ( | VisNode | node | ) |
add a child node.
node | node to add |
Reimplemented from org.hfbk.vis.visnode.VisNode.
Reimplemented in org.hfbk.vis.visnode.VisHUD.
Definition at line 231 of file VisRoot.java.
References org.hfbk.vis.visnode.VisNode.children, and org.hfbk.vis.visnode.VisNode.node.
Referenced by org.hfbk.vis.visnode.VisLog.LogPoint.add(), org.hfbk.vis.Allesfresser.friss(), org.hfbk.vis.VisClient.init(), org.hfbk.vis.visnode.VisIcal.renderSelf(), org.hfbk.vis.VisClient.reset(), org.hfbk.vis.visnode.VisScale.scaleIt(), and org.hfbk.vis.visnode.VisHUD.VisHUD().
Here is the caller graph for this function:
void org.hfbk.vis.visnode.VisRoot.closeSelf | ( | ) | [package] |
may be overriden if node needs to free ressources or stop threads.
Reimplemented from org.hfbk.vis.visnode.VisNode.
Definition at line 236 of file VisRoot.java.
References org.hfbk.vis.visnode.VisRoot.fetchers.
Vector3f org.hfbk.vis.visnode.VisRoot.epicenter = new Vector3f(200,0,-150) |
center of incoming VisNodes
Definition at line 41 of file VisRoot.java.
Referenced by org.hfbk.vis.VisTests.main(), org.hfbk.vis.visnode.VisStructure.renderSelf(), org.hfbk.vis.visnode.VisIcal.renderSelf(), and org.hfbk.vis.visnode.VisRoot.visualiseTree().
List<Source> org.hfbk.vis.visnode.VisRoot.fetchers = new CopyOnWriteArrayList<Source>() [package] |
fetchers currently downloading from the server
Definition at line 45 of file VisRoot.java.
Referenced by org.hfbk.vis.visnode.VisRoot.closeSelf(), org.hfbk.vis.visnode.VisRoot.fetch(), and org.hfbk.vis.visnode.VisRoot.renderSelf().
link to the client to forward messages
Definition at line 48 of file VisRoot.java.
Referenced by org.hfbk.vis.visnode.VisNodeMousable.buildRay(), org.hfbk.vis.visnode.VisRoot.create(), org.hfbk.vis.visnode.VisRoot.fetch(), org.hfbk.vis.visnode.VisVideoImage.handleEvent(), org.hfbk.vis.visnode.VisKeyword.handleEvent(), org.hfbk.vis.visnode.VisImage.handleEvent(), org.hfbk.vis.visnode.VisFilesys.VisCallBall.handleEvent(), org.hfbk.vis.visnode.VisNodeMousable.handleEvents(), org.hfbk.vis.visnode.VisRiver.heightMap(), org.hfbk.vis.visnode.VisHUD.render(), org.hfbk.vis.BirdsEye.render(), org.hfbk.vis.visnode.VisHUD.renderChildren(), org.hfbk.vis.visnode.VisVideo.renderSelf(), org.hfbk.vis.visnode.VisUeberwach.VisSonar.renderSelf(), org.hfbk.vis.visnode.VisUeberwach.VisTrack.renderSelf(), org.hfbk.vis.visnode.VisRoute.renderSelf(), org.hfbk.vis.visnode.VisRoot.renderSelf(), org.hfbk.vis.visnode.VisImagefield.renderSelf(), org.hfbk.vis.visnode.VisHUD.renderSelf(), org.hfbk.vis.visnode.VisHeightfield.renderSelf(), org.hfbk.vis.visnode.VisBit.renderSelf(), org.hfbk.vis.visnode.Screenshooter.renderSelf(), org.hfbk.vis.visnode.Automator.renderSelf(), org.hfbk.vis.visnode.VisHUD.VisHUD(), org.hfbk.vis.visnode.VisRoot.VisRoot(), and org.hfbk.vis.visnode.VisRoot.visualiseTree().
HashMap<String,VisNode> org.hfbk.vis.visnode.VisRoot.sourceNodesBySource = new HashMap<String,VisNode>() [package] |
We memorize which keyword node invokes a source fetch so we can place the results near or beneath for example.
Definition at line 54 of file VisRoot.java.
Referenced by org.hfbk.vis.visnode.VisRoot.fetch(), org.hfbk.vis.visnode.VisRoot.renderSelf(), and org.hfbk.vis.visnode.VisEdges.renderSelf().
HashMap<String,VisNode> org.hfbk.vis.visnode.VisRoot.nodesBySource = new HashMap<String,VisNode>() [package] |
We memorize which node tree is returned by a source fetch so we can find it again
Definition at line 60 of file VisRoot.java.
Referenced by org.hfbk.vis.visnode.VisRoot.fetch(), org.hfbk.vis.visnode.VisRoot.renderSelf(), and org.hfbk.vis.visnode.VisEdges.renderSelf().
we remember the last node for convenient viewpoint if user requests
Definition at line 65 of file VisRoot.java.
Referenced by org.hfbk.vis.visnode.VisRoot.create(), org.hfbk.vis.VisTests.main(), org.hfbk.vis.visnode.VisRoot.renderSelf(), org.hfbk.vis.visnode.Automator.renderSelf(), org.hfbk.vis.visnode.VisRoot.visualiseSubtree(), and org.hfbk.vis.visnode.VisRoot.visualiseTree().