4 #include "TEveGeoNode.h" 6 #include "TEveCompound.h" 31 TEveElement* iCompound,
57 if (
nullptr == clusters)
61 for (TEveElement::List_i
ei = product->BeginChildren();
ei != product->EndChildren(); ++
ei) {
62 TEveElement* holder = *
ei;
63 if (holder->HasChildren()) {
64 holder->SetRnrSelfChildren(
false,
false);
65 holder->RemoveElement(holder->LastChild());
71 for (
int i = 0;
i <= sdiff; ++
i)
74 TEveElement::List_i shapeIt =
m_shapeList->BeginChildren();
78 unsigned int id =
set->detId();
99 TEveGeoShape* shape = (TEveGeoShape*)(*shapeIt);
101 shape->SetTransMatrix(array);
102 shape->SetRnrSelf(
true);
106 TEveCompound* itemHolder =
nullptr;
107 TEveLine*
line =
nullptr;
109 if (cntEl < product->NumChildren()) {
110 TEveElement::List_i pit = product->BeginChildren();
111 std::advance(pit, cntEl);
112 itemHolder = (TEveCompound*)*pit;
113 itemHolder->SetRnrSelfChildren(
true,
true);
115 line = (TEveLine*)(itemHolder->FirstChild());
120 line =
new TEveLine(
"line");
124 shape->SetMainTransparency(75);
127 float localTop[3] = {0.0, 0.0, 0.0};
128 float localBottom[3] = {0.0, 0.0, 0.0};
131 float globalBottom[3];
133 line->SetPoint(0, globalTop[0], globalTop[1], globalTop[2]);
134 line->SetPoint(1, globalBottom[0], globalBottom[1], globalBottom[2]);
141 TEveElement* iCompound,
void itemBeingDestroyed(const FWEventItem *) override
~FWSiStripClusterProxyBuilder(void) override
const_iterator end(bool update=false) const
void localModelChanges(const FWModelId &iId, TEveElement *iCompound, FWViewType::EType viewType, const FWViewContext *vc) override
static const int kAllRPZBits
TEveElementList * m_shapeList
virtual void itemBeingDestroyed(const FWEventItem *)
IdToInfoItr find(unsigned int) const
const float * getParameters(unsigned int id) const
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
void get(const T *&oData) const
TGeoShape * getShape(unsigned int id) const
data_type const * const_iterator
static const int kAll3DBits
void localSiStrip(short strip, float *localTop, float *localBottom, const float *pars, unsigned int id)
void localToGlobal(unsigned int id, const float *local, float *global, bool translatep=true) const
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
TEveCompound * createCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
const FWSiStripClusterProxyBuilder & operator=(const FWSiStripClusterProxyBuilder &)=delete
const FWGeometry * getGeom() const
void increaseComponentTransparency(unsigned int index, TEveElement *holder, const std::string &name, Char_t transpOffset)
FWSiStripClusterProxyBuilder(void)
const_iterator begin(bool update=false) const