Logo ROOT  
Reference Guide
REveDigitSet Class Reference

Base-class for storage of digit collections; provides transformation matrix (REveTrans), signal to color mapping (REveRGBAPalette) and visual grouping (REveFrameBox).

Base-class for displaying a digit collection. Provides common services for:

  • specifying signal / color per digit;
  • specifying object reference per digit;
  • controlling palette and thresholds (external object REveRGBAPalette);
  • showing a frame around the digits (external object REveFrameBox);
  • specifying transformation matrix for the whole collection; by data-member of class REveTrans.

Use method DigitId(TObject* id) to assign additional identification to the last created digit. By calling SetOwnIds(kTRUE) tje digit-set becomes the owner of the assigned objects and deletes them on destruction. Note that TRef is used for referencing the objects and if you instantiate the objects just to pass them to digit-set you should also call TProcessID::Get/SetObjectCount() at the beginning / end of processing of an event. See documentation for class TRef, in particular section 'ObjectNumber'.

If you use value-is-color mode and want to use transparency, set the transparency to non-zero value so that GL-renderer will be properly informed.

If you want to use single color for all elements call:

UseSingleColor()

Palette controls will not work in this case.

A pointer to a rectangle / box of class REveFrameBox can be set via

void SetFrame(REveFrameBox* b);
#define b(i)
Definition: RSha256.hxx:100
Description of a 2D or 3D frame that can be used to visually group a set of objects.

A single REveFrameBox can be shared among several digit-sets (it is reference-counted). The following flags affect how the frame-box will drawn and used for selection and highlight:

Bool_t fSelectViaFrame;
Bool_t fHighlightFrame;
bool Bool_t
Definition: RtypesCore.h:63

REveDigitSet is sub-classed from REveSecondarySelectable – this means individual digits can be selected. By calling:

REveSecondarySelectable::SetAlwaysSecSelect(kTRUE);
const Bool_t kTRUE
Definition: RtypesCore.h:100

one can enforce immediate feedback (highlight, tooltip and select on normal left-mouse click) on given digit-set.

See also:

REveQuadSet: rectangle, hexagon or line per digit
REveBoxSet a 3D box per digit
Collection of 3D primitives (fixed-size boxes, boxes of different sizes, or arbitrary sexto-epipeds,...
TLine * line
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Definition: fillpatterns.C:1
auto * a
Definition: textangle.C:12

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