Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
REveBoxSet Class Reference

Collection of 3D primitives (fixed-size boxes, boxes of different sizes, or arbitrary sexto-epipeds, cones).

Each primitive can be assigned a signal value and a TRef.

A collection of 3D-markers. The way how they are defined depends on the fBoxType data-member.

  • kBT_Vertices arbitrary box: specify its 8 vertices, 8*(x,y,z)
  • kBT_InstancedScaled axis-aligned box of its own size
  • kBT_Instanced axis-aligned box of the default size, set by SetDefWidth() & co., or SetDefHalfWidth() & co.
  • kBT_InstancedScaledRotated any transformation of the instance shape, a box, hexagonal prism or cone: AddInstanceMat4(), AddHex(), AddCone(), AddEllipticCone()

An axis-aligned box is stored as its centre and half size, and spans centre - half size to centre + half size. AddInstance() and AddInstanceScaled() take the centre and the half size. AddInstanceCorner() and AddInstanceScaledCorner() take the lower corner and the full size, as TEveBoxSet's AddBox() does. The default size of a kBT_Instanced box is set as the full size with SetDefWidth(), SetDefHeight() and SetDefDepth(), or as the half size with SetDefHalfWidth(), SetDefHalfHeight() and SetDefHalfDepth(). It defaults to 1, a unit box, as in TEveBoxSet.

Each primitive can be assigned:

  1. Color or signal value. Thresholds and signal-to-color mapping can then be set dynamically via the REveRGBAPalette class.
  2. External TObject* (stored as TRef).

The render data has one entry per set, holding the visible digits in plex order; hidden digits, see REveDigitSet::IsDigitVisible(), are left out, so the client's shape index k is the k-th visible digit:

  • inst, for the kBT_Instanced* types: one item per digit in an rgba32f texture, f32 x 4 for kBT_Instanced (centre, colour), f32 x 8 for kBT_InstancedScaled (centre, colour; half size, 2) and f32 x 16 for kBT_InstancedScaledRotated (translation, colour; the first three matrix columns), so one, two or four texels per digit. The colour is GetColorFromDigit(), its bits stored as the float.
  • pos, for kBT_Vertices: f32 x 3, the eight vertices of each digit; with col, u8 x 4 per digit, its colour, unless the set has a single colour.

See also base-class REveDigitSet for more information. Tutorial: tutorials/visualisation/eve/boxset_test.C


The documentation for this class was generated from the following file: