Module: RenderLogic

Handles all OpenGL objects for rendering and the logic for the rendering
Source:

Methods

(inner) cleanupScene()

clears the entire rendered scene and deletes all geometries on the GPU clears all selections
Source:

(inner) colorDetailLODEdge(renderedEdge, color)

colors the specified edge in the specified color
Parameters:
Name Type Description
renderedEdge renderedEdge to be colored
color THREE.Color to be used
Source:

(inner) colorEdge(linesStartIndex, linesEndIndex, weight, maxWeight, color)

colors the specified edge which is defined by the start and end indices in the specified color
Parameters:
Name Type Description
linesStartIndex int of the edge to be colored in the lines array
linesEndIndex int of the edge to be colored in the lines array
weight float of the edge to be colored
maxWeight float of all edges in the current view
color THREE.color to be used
Source:

(inner) colorNode(node, color)

colors the specified node in the specified color
Parameters:
Name Type Description
node node to be colored
color THREE.Color to be used
Source:

(inner) colorSupernode(supernode, color)

colors the specified supernode in the specified color
Parameters:
Name Type Description
supernode supernode to be colored
color THREE.Color to be used
Source:

(inner) computeColor(weight, minWeight, maxWeight) → {THREE.Color}

computes the color in which the nodes and edges are rendered based on the specified weights it uses linear interpolation
Parameters:
Name Type Description
weight float
minWeight float
maxWeight float
Source:
Returns:
computed color
Type
THREE.Color

(inner) computeDetailLODSupernodeRenderingObjects()

creates all supernode OpenGL objects of the currently active detailLOD and adds them to the scene
Source:

(inner) computeEdgeColorForDetailLOD(weight) → {THREE.Color}

Computer the color of the detailed view edges
Parameters:
Name Type Description
weight int the edge weight
Source:
Returns:
the computed color
Type
THREE.Color

(inner) computeEdgeColorForLowDetailLOD(weight) → {THREE.Color}

Computer the color of the low detail view edges
Parameters:
Name Type Description
weight int the edge weight
Source:
Returns:
the computed color
Type
THREE.Color

(inner) computeLowDetailLODCameraSettings()

positions the camera to show the entire lowDetailLOD
Source:
Returns:
size in which the supernodes in the lowDetailLOD should be rendered

(inner) computeLowDetailLODLinesRenderingObject()

creates the OpenGL object for the edges between the supernodes of the lowDetailLOD and adds them to the scene
Source:

(inner) computeLowDetailLODSupernodeRenderingObjects(supernodeSize)

creates the OpenGL objects for the supernodes of the lowDetailLOD and adds them to the scene
Parameters:
Name Type Description
supernodeSize float size of the supernodes at which they are rendered
Source:

(inner) computeNodePosition(supernodeIndex, nodeIndex) → {vec3}

computes the position of a node in the detailLOD
Parameters:
Name Type Description
supernodeIndex int index of the supernode the node belongs to
nodeIndex int where the node is positioned within the supernode
Source:
Returns:
the absolute position of the node
Type
vec3

(inner) computeNodesNumberEdges(supernodeEdgeMatrix)

computes the total number of edges for each node in the current detailLOD (inter und intra) computes the total number of edges for each supernode in the current detailLOD (inter und intra)
Parameters:
Name Type Description
supernodeEdgeMatrix Array.<Array.<Array.<edge>>>
Source:

(inner) computeRenderingScales() → {float}

computes the size of the supernodes at which they are rendered in the detailLOD
Source:
Returns:
used distance between rendered supernodes
Type
float

(inner) computeSupernodeRenderingPositions(supernodesDistance) → {float}

sets the rendering positions of the selected supernodes for the detailLOD
Parameters:
Name Type Description
supernodesDistance float distance between the rendered supernodes
Source:
Returns:
margin factor to use for setting the camera size
Type
float

(inner) createLinesRenderingObject(edgeColoringFunction, material)

creates the OpenGL buffer and line segments for all elements currently stored in the lines array the created mesh (lines) is added to the scene
Parameters:
Name Type Description
edgeColoringFunction function that returns a THREE.Color based on a weight
material THREE.material used to render the lines
Source:

(inner) createMeshAtFixedPosition(geometry, material, position) → {THREE.Mesh}

constructs and places a new mesh which stays at its place staticly
Parameters:
Name Type Description
geometry THREE.Geometry from which to construct the mesh
material THREE.Material from which to construct the mesh
position vec3 at which to place the mesh
Source:
Returns:
created mesh
Type
THREE.Mesh

(inner) createSupernodeRenderingObject(supernode)

creates the supernode OpenGL objects of the specified supernode
Parameters:
Name Type Description
supernode supernode
Source:

(inner) createWordCloudRenderObjects()

creates the OpenGL objects for the word clouds and reders the scene the old word clouds are deleted
Source:

(inner) deleteOldWordClouds()

delete existing word cloud OpenGL objects and js obects
Source:

(inner) selectEdge(renderedEdge)

highlights the specified edge in the scene and unhighlights the previously specified edge
Parameters:
Name Type Description
renderedEdge renderedEdge to be highlighted
Source:

(inner) selectNode(node)

highlights the specified node in the scene and unhighlights the previously specified node
Parameters:
Name Type Description
node node to be highlighted
Source:

(inner) selectSupernode(supernode)

highlights/ unhighlights the specified supernode in the scene a maximum of 4 supernodes can be highlighted at once further highlighting requests will be ignored until a spot is available again edges connecting the highlighted supernodes are also highlighted
Parameters:
Name Type Description
supernode supernode to be highlighted
Source:

(inner) setSupernodePosition(supern, position)

Sets the position of a supernode
Parameters:
Name Type Description
supern supernode the supernode
position vec3 the absolute position of the node
Source:

(inner) setupDetailLODAndRender()

constructs and renders the subset of supernodes which has been rendered last based on the current value of supernodes
Source:

(inner) setupDetailLODAndWordCloudsAndRender()

constructs and renders the subset of supernodes which has been rendered last based on the current value of supernodes also renders the word clouds inside of the supernodes
Source:

(inner) setupDetailLODMetaParameters()

initializes the parameters needed to render a specific set of supernodes.
Source:

(inner) setupDetailLODRenderObjects()

creates all OpenGL objects required to render a specifc detailLOD with the currently active supernodes renders the scene afterwards
Source:

(inner) setupLowDetailLODAndRender()

constructs and renders already clustered supernodes based on the current cluster settings
Source:

(inner) setupLowDetailLODMetaParameters()

initializes the parameters needed to render a specific supernode clustering.
Source:

(inner) setupLowDetailLODRenderObjects()

creates all OpenGL objects required to render a specifc lowDetailLOD with the currently active cluster settings renders the scene afterwards
Source:

(inner) setupNewDetailLODAndRender()

initializes, constructs and renders a new subset of supernodes based on the current value of supernodes
Source:

(inner) setupNewLowDetailLODAndRender()

initializes, constructs and renders newly clustered supernodes based on the current cluster settings
Source: