4 #include "TEveGeoNode.h" 6 #include "TEveCompound.h" 7 #include "TEveGeoShape.h" 32 TEveElement* iCompound,
63 for (TEveElement::List_i ei = product->BeginChildren(); ei != product->EndChildren(); ++ei) {
64 TEveElement* holder = *ei;
65 if (holder->HasChildren()) {
66 holder->SetRnrSelfChildren(
false,
false);
67 holder->RemoveElement(holder->LastChild());
73 for (
int i = 0;
i <= sdiff; ++
i)
76 TEveElement::List_i shapeIt =
m_shapeList->BeginChildren();
80 unsigned int id =
set->detId();
101 TEveGeoShape* shape = (TEveGeoShape*)(*shapeIt);
103 shape->SetTransMatrix(
array);
104 shape->SetRnrSelf(
true);
108 TEveCompound* itemHolder =
nullptr;
109 TEveLine*
line =
nullptr;
111 if (cntEl < product->NumChildren()) {
112 TEveElement::List_i pit = product->BeginChildren();
113 std::advance(pit, cntEl);
114 itemHolder = (TEveCompound*)*pit;
115 itemHolder->SetRnrSelfChildren(
true,
true);
117 line = (TEveLine*)(itemHolder->FirstChild());
122 line =
new TEveLine(
"line");
126 shape->SetMainTransparency(75);
129 float localTop[3] = {0.0, 0.0, 0.0};
130 float localBottom[3] = {0.0, 0.0, 0.0};
133 float globalBottom[3];
135 line->SetPoint(0, globalTop[0], globalTop[1], globalTop[2]);
136 line->SetPoint(1, globalBottom[0], globalBottom[1], globalBottom[2]);
143 TEveElement* iCompound,
void itemBeingDestroyed(const FWEventItem *) override
~FWSiStripClusterProxyBuilder(void) override
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
void localModelChanges(const FWModelId &iId, TEveElement *iCompound, FWViewType::EType viewType, const FWViewContext *vc) override
static const int kAllRPZBits
TEveElementList * m_shapeList
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
virtual void itemBeingDestroyed(const FWEventItem *)
void get(const T *&oData) const
data_type const * const_iterator
static const int kAll3DBits
void localSiStrip(short strip, float *localTop, float *localBottom, const float *pars, unsigned int id)
IdToInfoItr find(unsigned int) const
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
const FWGeometry * getGeom() const
TGeoShape * getShape(unsigned int id) const
void localToGlobal(unsigned int id, const float *local, float *global, bool translatep=true) const
TEveCompound * createCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
const float * getParameters(unsigned int id) const
const FWSiStripClusterProxyBuilder & operator=(const FWSiStripClusterProxyBuilder &)=delete
void increaseComponentTransparency(unsigned int index, TEveElement *holder, const std::string &name, Char_t transpOffset)
FWSiStripClusterProxyBuilder(void)