ClonedNodes

ClonedNodes

(private) new ClonedNodes()

class for working with cloned nodes

Source:

Methods

buildIdsByStack()

Retuns ids array which correspond to the stack

Source:

buildShapes()

Build shapes

Source:

buildStackByIds()

Create stack array based on nodes ids array.

Description:
  • Ids list should correspond to existing nodes hierarchy

Source:

cleanup()

function to cleanup as much as possible structures

Description:
  • Provided parameters drawnodes and drawshapes are arrays created during building of geometry

Source:

collectShapes()

Collect all uniques shapes which should be built

Description:
  • Check if same shape used many times for drawing

Source:

collectVisibles()

Collects visible nodes, using maxlimit

Description:
  • One can use map to define cut based on the volume or serious of cuts

Source:

countVisibles()

Count all visisble nodes

Source:

createClones()

Create complete description for provided Geo object

Source:

createClonesForShape()

Create elementary item with single already existing shape

Description:
  • used by details view of geometry shape

Source:

createEntryMesh()

Create mesh for single physical node

Source:

createInstancedMeshes()

Check if instancing can be used for the nodes

Source:

createObject3D()

Creates hierarchy of Object3D for given stack entry

Description:
  • Such hierarchy repeats hierarchy of TGeoNodes and set matrix for the objects drawing also set renderOrder, required to handle transparency

Source:

findStackByName()

Find stack by name which include names of all parents

Source:

getDrawEntryProperties()

Provide different properties of draw entry nodeid

Description:
  • Only if node visible, material will be created

Source:

getMaxVisNodes()

Returns configured maximal number of visible nodes

Source:

getNodeIdByStack()

Retuns node id by stack

Source:

getNodeName()

Return node name with given id.

Description:
  • Either original object or description is used

Source:

getNodeShape()

Returns TGeoShape for element with given indx

Source:

getPhysNodeVisibility()

Get visibility item for physical node

Source:

getStackName()

Provide stack name

Description:
  • Stack name includes full path to the physical node which is identified by stack

Source:

getVisLevel()

Returns maximal depth for nodes visibility

Source:

getVisibleFlags()

Extract only visibility flags

Description:
  • Used to transfer them to the worker

Source:

getVolumeBoundary()

Get volume boundary

Source:

isIdInStack()

Returns true if stack includes at any place provided nodeid

Source:

markVisibles()

Mark visisble nodes.

Description:
  • Set only basic flags, actual visibility depends from hierarchy

Source:

mergeShapesLists()

Merge shape lists

Source:

mergeVisibles()

Merge list of drawn objects

Description:
  • In current list we should mark if object already exists from previous list we should collect objects which are not there

Source:

produceIdShifts()

After visibility flags is set, produce idshift for all nodes as it would be maximum level

Source:

resolveStack()

Returns description for provided stack

Description:
  • If specified, absolute matrix is also calculated

Source:

scanVisible()

Scan visible nodes in hierarchy, starting from nodeid

Description:
  • Each entry in hierarchy get its unique id, which is not changed with visibility flags

Source:

setConfig()

Set geo painter configuration - used for material creation

Source:

setDefaultColors()

Set usage of default ROOT colors

Source:

setMaxVisNodes()

Set maximal number of visible nodes

Source:

setPhysNodeVisibility()

Set visibility flag for physical node

Description:
  • Trying to reimplement functionality in the RGeomViewer

Source:

setVisLevel()

Set maximal depth for nodes visibility

Source:

setVisibleFlags()

Assign only visibility flags, extracted with getVisibleFlags

Source:

updateNode()

Insert node into existing array

Source:

(private, static) formatServerElement()

Format REveGeomNode data to be able use it in list of clones

Source: