26REveCompound::REveCompound(
const std::string&
n,
const std::string& t,
31 fDoTransparency (doTransparency)
62 if (color_all || (color_matching &&
c->GetMainColor() == old_color) ||
63 (
c->GetCompound() ==
this &&
c->GetMainColor() == old_color))
65 c->SetMainColor(color);
92 if (chg_all || (chg_matching &&
c->GetMainTransparency() == old_t) ||
93 (
c->GetCompound() ==
this &&
c->GetMainTransparency() == old_t))
95 c->SetMainTransparency(t);
130 if (
c->GetCompound() ==
this)
131 c->SetCompound(
nullptr);
151 if (select_all ||
c->GetCompound() ==
this) {
152 if (impSelSet.insert(
c).second) {
153 c->FillImpliedSelectedSet(impSelSet, sec_idcs);
166 return TClass::GetClass<REveCompoundProjected>();
REveCompoundProjected()
Constructor.
virtual void SetMainColor(Color_t color)
Revert back to the behaviour of REveElement as color is propagated:
void AddElement(REveElement *el) override
Call base-class implementation.
void RemoveElementsLocal() override
Decompoundofy children, call base-class version.
void FillImpliedSelectedSet(Set_t &impSelSet, const std::set< int > &) override
Recurse on all children that are in this compound and call the base-class version.
TClass * ProjectedClass(const REveProjection *p) const override
Virtual from REveProjectable, returns REveCompoundProjected class.
void RemoveElementLocal(REveElement *el) override
Decompoundofy el, call base-class version.
Bool_t IsCompoundOpen() const
void SetMainTransparency(Char_t t) override
SetMainTransparency for the compound.
void SetMainColor(Color_t color) override
SetMainColor for the compound.
REveCompound * GetCompound()
virtual void RemoveElementsLocal()
Perform additional local removal of all elements.
void SetCompound(REveCompound *c)
virtual void SetMainTransparency(Char_t t)
Set main-transparency.
void SetupDefaultColorAndTransparency(Color_t col, Bool_t can_edit_color, Bool_t can_edit_transparency)
Set up element to use built-in main color and set flags allowing editing of main color and transparen...
virtual void AddElement(REveElement *el)
Add el to the list of children.
virtual void RemoveElementLocal(REveElement *el)
Perform additional local removal of el.
@ kCSCBApplyMainColorToMatchingChildren
@ kCSCBApplyMainColorToAllChildren
@ kCSCBImplySelectAllChildren
@ kCSCBApplyMainTransparencyToAllChildren
@ kCSCBApplyMainTransparencyToMatchingChildren
virtual Char_t GetMainTransparency() const
Bool_t TestCSCBits(UChar_t f) const
std::set< REveElement * > Set_t
virtual void SetMainColor(Color_t color)
Set main color of the element.
virtual void FillImpliedSelectedSet(Set_t &impSelSet, const std::set< int > &)
Populate set impSelSet with derived / dependant elements.
virtual Color_t GetMainColor() const
REveProjection Base for specific classes that implement non-linear projections.
TClass instances represent classes, structs and namespaces in the ROOT type system.