47 REveElement *projected = i->GetProjectedAsElement();
123 REveElement *projectedAsElement = prj->GetProjectedAsElement();
124 auto parentIt = projectedAsElement->
RefChildren().begin();
143 else if (
cnt < itemSize)
171 catch (
const std::runtime_error& iException)
173 std::cout <<
"Caught exception in build function for item " <<
m_collection->
GetName() <<
":\n"
174 << iException.what() << std::endl;
185 assert(
"virtual Build(const REveEventItem*, REveElement*, const REveViewContext*) not implemented by inherited class");
192 assert(
"virtual BuildViewType(const FWEventItem*, TEveElementList*, FWViewType::EType, const FWViewContext*) not implemented by inherited class");
209 if (viewType == prod->m_viewType)
210 return prod->m_elements;
215 auto product =
new Product(viewType, viewContext);
223 return product->m_elements;
239 applyColorAttrToChildren(
c);
251 for (
auto itemIdx: iIds)
258 std::advance(itElement, itemIdx);
265 applyColorAttrToChildren(comp);
270 printf(
"---REveDataProxyBuilderBase project child\n");
346 c->CSCImplySelectAllChildren();
347 c->SetPickable(
true);
353 if (propagate_color_to_all_children)
355 c->CSCApplyMainColorToAllChildren();
356 c->CSCApplyMainTransparencyToAllChildren();
360 c->CSCApplyMainColorToMatchingChildren();
361 c->CSCApplyMainTransparencyToMatchingChildren();
373 if (prod->m_elements)
374 prod->m_elements->DestroyElements();
static Double_t Product(const Double_t *x, const Float_t *y)
Product.
char * Form(const char *fmt,...)
REveDataItem * GetDataItem(Int_t i) const
Bool_t GetFiltered() const
std::vector< Product * > m_products
void SetHaveAWindow(bool)
virtual void SetCollection(REveDataCollection *)
void CollectionChanged(const REveDataCollection *)
const REveDataCollection * m_collection
REveCompound * CreateCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
virtual void BuildViewType(const REveDataCollection *iItem, REveElement *product, std::string viewType, const REveViewContext *)
virtual void LocalModelChanges(int idx, REveElement *el, const REveViewContext *ctx)
virtual void CollectionBeingDestroyed(const REveDataCollection *)
void ModelChanges(const REveDataCollection::Ids_t &)
void SetupElement(REveElement *el, bool color=true) const
This method is invoked to setup the per element properties of the various objects being drawn.
void SetupAddElement(REveElement *el, REveElement *parent, bool set_color=true) const
virtual void CleanLocal()
virtual bool VisibilityModelChanges(int idx, REveElement *, const REveViewContext *)
virtual bool HaveSingleProduct() const
REveDataProxyBuilderBase(const std::string &type)
REveElement * CreateProduct(std::string viewType, const REveViewContext *)
const std::string & GetName() const
void CSCApplyMainTransparencyToMatchingChildren()
void CSCApplyMainColorToMatchingChildren()
virtual void SetMainTransparency(Char_t t)
Set main-transparency.
virtual void Annihilate()
Optimized destruction without check of reference-count.
void CSCTakeMotherAsMaster()
void SetPickable(Bool_t p)
const char * GetCName() const
virtual void AddElement(REveElement *el)
Add el to the list of children.
virtual Bool_t GetRnrSelf() const
virtual Bool_t SetRnrChildren(Bool_t rnr)
Set render state of this element's children, i.e.
REveElement * GetMother()
virtual Char_t GetMainTransparency() const
virtual Bool_t SetRnrSelf(Bool_t rnr)
Set render state of this element, i.e.
void IncDenyDestroy()
Increases the deny-destroy count of the element.
Int_t NumChildren() const
virtual void SetMainColor(Color_t color)
Set main color of the element.
virtual Color_t GetMainColor() const
void SetName(const std::string &name)
Set name of an element.
virtual void RemoveElement(REveElement *el)
Remove el from the list of children.
virtual void ProjectChild(REveElement *el, Bool_t same_depth=kTRUE)
If this is a projectable, loop over all projected replicas and add the projected image of child 'el' ...
virtual Bool_t HasProjecteds() const
ProjList_t & RefProjecteds()
REveProjectionManager Manager class for steering of projections and managing projected objects.
Float_t GetCurrentDepth() const
void SetCurrentDepth(Float_t d)
virtual REveElement * SubImportElements(REveElement *el, REveElement *proj_parent)
Recursively import elements and apply projection to the newly imported objects.
virtual Int_t SubImportChildren(REveElement *el, REveElement *proj_parent)
Recursively import children elements of el and apply projection to the newly imported objects.
const REveViewContext * m_viewContext
REveCompound * m_elements