buffer.fID = this;
buffer.fColor = 1;
buffer.fTransparency = 0;
- buffer.fLocalFrame = fTrans;
- if (fTrans)
- memcpy(buffer.fLocalMaster, fMatrix, 16*sizeof(Double_t));
+ fHMTrans.SetBuffer3D(buffer);
buffer.SetSectionsValid(TBuffer3D::kCore);
Int_t reqSections = gPad->GetViewer3D()->AddObject(buffer);
if (reqSections == TBuffer3D::kNone) {
- // printf("TPCSector2D::Paint viewer was happy with Core buff3d.\n");
return;
}
- printf("TPCSector2D::Paint only GL supported.\n");
- return;
-
- /*
- if (reqSections & TBuffer3D::kRawSizes) {
- Int_t nbPnts = fQuads.size()*4;
- Int_t nbSegs = nbPnts;
- if (!buffer.SetRawSizes(nbPnts, 3*nbPnts, nbSegs, 3*nbSegs, fQuads.size(), fQuads.size()*6)) {
- return;
- }
- buffer.SetSectionsValid(TBuffer3D::kRawSizes);
- }
-
- if ((reqSections & TBuffer3D::kRaw) && buffer.SectionsValid(TBuffer3D::kRawSizes)) {
- // Points
- Int_t pidx = 0;
- for (std::vector<Quad>::iterator i=fQuads.begin(); i!=fQuads.end(); ++i) {
- for (Int_t k = 0; k < 12; k++ ){
- buffer.fPnts[pidx] = (*i).vertices[k];
- pidx++;
- }
- }
-
- // Segments
- Int_t sidx = 0;
- for (Int_t q = 0; q < fQuads.size(); ++q) {
- for (Int_t s = 0; s < 4; ++s ) {
- buffer.fSegs[3*sidx ] = 4;
- buffer.fSegs[3*sidx+1] = sidx;
- if (s == 3)
- buffer.fSegs[3*sidx+2] = q*4;
- else
- buffer.fSegs[3*sidx+2] = sidx + 1;
- sidx ++;
- }
- }
-
- // Polygons
- for (Int_t q = 0; q < fQuads.size(); ++q) {
- buffer.fPols[6*q] = fQuads[q].color;
- buffer.fPols[6*q +1] = 4;
- buffer.fPols[6*q +2] = 4*q +0;
- buffer.fPols[6*q +3] = 4*q +1;
- buffer.fPols[6*q +4] = 4*q +2;
- buffer.fPols[6*q +5] = 4*q +3;
- }
-
- buffer.SetSectionsValid(TBuffer3D::kRaw);
- buffer.fColor = 5;
- }
-
- */
- // gPad->GetViewer3D()->AddObject(buffer);
+ Error("TPCSector2D::Paint", "only direct OpenGL rendering supported.");
}
buffer.fID = this;
buffer.fColor = 1;
buffer.fTransparency = 0;
- buffer.fLocalFrame = fTrans;
- if (fTrans)
- memcpy(buffer.fLocalMaster, fMatrix, 16*sizeof(Double_t));
+ fHMTrans.SetBuffer3D(buffer);
buffer.SetSectionsValid(TBuffer3D::kCore);
Int_t reqSections = gPad->GetViewer3D()->AddObject(buffer);
return;
}
- printf("TPCSector3D::Paint only GL supported.\n");
+ Error("TPCSector3D::Paint", "only direct OpenGL rendering supported.");
return;
}
s->SetSectorID(i);
s->SetDataSource(g_tpc_data);
s->SetFrameColor(col);
- s->SetTrans(true);
+ s->SetAutoTrans(kTRUE);
gReve->AddRenderElement(l, s);
}
}
s->SetSectorID(i);
s->SetDataSource(g_tpc_data);
s->SetFrameColor(col);
- s->SetTrans(true);
+ s->SetAutoTrans(kTRUE);
gReve->AddRenderElement(l, s);
}
}
s->SetSectorID(i);
s->SetDataSource(g_tpc_data);
s->SetFrameColor(col);
- s->SetTrans(true);
+ s->SetAutoTrans(kTRUE);
gReve->AddRenderElement(l, s);
}
}
s->SetSectorID(i);
s->SetDataSource(g_tpc_data);
s->SetFrameColor(col);
- s->SetTrans(true);
+ s->SetAutoTrans(kTRUE);
gReve->AddRenderElement(l, s);
}
}