29 for (
auto &
compound :
p->m_elements->RefChildren())
40 for (
auto &
compound : product->RefChildren()) {
45 (
spbIt)->second->map.clear();
67 c->CSCImplySelectAllChildren();
72 c->SetMainTransparency(
Collection()->GetMainTransparency());
76 c->CSCApplyMainColorToAllChildren();
77 c->CSCApplyMainTransparencyToAllChildren();
81 c->CSCApplyMainColorToMatchingChildren();
82 c->CSCApplyMainTransparencyToMatchingChildren();
104 auto pmIt =
spb->map.find(idx);
110 if (product->NumChildren() > (
int)
spb->map.size()) {
111 for (
auto &
cr : product->RefChildren()) {
120 std::cerr <<
"REveDataSimpleProxyBuilder::GetHolder can't reuse product\n";
123 std::cout <<
"REveDataSimpleProxyBuilder::GetHolder number of used products do not match product size\n";
128 if ((
int)
spb->map.size() != product->NumChildren()) {
129 std::cout <<
"REveDataSimpleProxyBuilder::GetHolder total number of products do not match product size\n";
153 if (
di->GetRnrSelf() && !
di->GetFiltered())
169 if (
di->GetRnrSelf() && !
di->GetFiltered())
183 for (
auto &it:
p->RefChildren())
186 if (
c->GetMainColor() !=
p->GetMainColor())
203 std::cerr <<
"REveDataSimpleProxyBuilder::ModelChanges product not found!\n";
223 p->m_elements->ProjectChild(
holder);
225 holder->SetRnrSelf(visible);
226 holder->SetRnrChildren(visible);
257 auto it =
spb->map.find(s);
258 if (it !=
spb->map.
end()) {
265 if ((*it)->GetElementId()) {
296 static const REveException eh(
"REveCollectionCompound::GetSelectionMaster()");
304 std::size_t found =
fName.find_last_of(
' ');
305 if (found == std::string::npos)
309 std::string
idss =
fName.substr(found + 1);
313 }
catch (std::exception&
e) {
314 R__LOG_ERROR(
REveLog()) <<
"REveCollectionCompound::GetSelectionMaster " <<
e.what() << std::endl;
#define R__LOG_ERROR(...)
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
REveDataCollection * fCollection
~REveCollectionCompound() override
REveCollectionCompound(REveDataCollection *c)
REveElement * GetSelectionMaster() override
Returns the master element - that is:
REveDataItemList * GetItemList()
const REveDataItem * GetDataItem(Int_t i) const
Bool_t GetRnrSelf() const
Color_t GetMainColor() const
Bool_t GetVisible() const
Bool_t GetFiltered() const
std::vector< Product * > m_products
virtual void LocalModelChanges(int idx, REveElement *el, const REveViewContext *ctx)
virtual REveElement * CreateProduct(const std::string &viewType, const REveViewContext *)
virtual void CleanLocal()
REveDataCollection * Collection() const
virtual bool HaveSingleProduct() const
REveElement * CreateProduct(const std::string &viewType, const REveViewContext *) override
virtual void BuildItem(const void *data, int index, REveElement *iCollectionHolder, const REveViewContext *)=0
void FillImpliedSelected(REveElement::Set_t &impSet, const std::set< int > &sec_idcs, Product *p) override
~REveDataSimpleProxyBuilder() override
REveCompound * GetHolder(REveElement *product, int idx)
void BuildProduct(const REveDataCollection *iCollection, REveElement *product, const REveViewContext *) override
bool VisibilityModelChanges(int idx, REveElement *, const std::string &viewType, const REveViewContext *) override
std::map< REveElement *, SPBProduct * > fProductMap
REveDataSimpleProxyBuilder()
virtual void BuildItemViewType(const void *data, int index, REveElement *iCollectionHolder, const std::string &viewType, const REveViewContext *)=0
void ModelChanges(const REveDataCollection::Ids_t &iIds, Product *p) override
REveCollectionCompound * CreateCompound(bool set_color=true, bool propagate_color_to_all_children=false)
void BuildProductViewType(const REveDataCollection *iCollection, REveElement *product, const std::string &viewType, const REveViewContext *) override
virtual Bool_t GetRnrSelf() const
void SetSelectionMaster(REveElement *el)
std::set< REveElement * > Set_t
virtual void SetMainColor(Color_t color)
Set main color of the element.
REveException Exception-type thrown by Eve classes.
Bool_t IsAcceptingChanges() const
SelectionSet_t & RefSelectedSet()
const_iterator begin() const
const_iterator end() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
RLogChannel & REveLog()
Log channel for Eve diagnostics.