68 Error(
name,
"number of z planes for %s must be at least two !",
name);
175 if ((secNum < 0) || (secNum >=
fNz))
return;
177 fRmin[secNum] = rmin;
178 fRmax[secNum] = rmax;
201 for (
Int_t j = 0; j <
n; j++) {
230 for (i = 0; i <
fNz; i++) {
231 for (j = 0; j <
n; j++) {
236 for (j = 0; j <
n; j++) {
310 if (buffer.
SetRawSizes(nbPnts, 3*nbPnts, nbSegs, 3*nbSegs, nbPols, 6*nbPols)) {
348 for (i = 0; i <
fNz*2; i++) {
350 for (j = 1; j <
n; j++) {
352 buffer.
fSegs[indx++] = indx2+j-1;
353 buffer.
fSegs[indx++] = indx2+j;
357 buffer.
fSegs[indx++] = indx2+j-1;
358 buffer.
fSegs[indx++] = indx2;
363 for (i = 0; i < 2; i++) {
364 indx2 = i*(
fNz-1)*2*
n;
365 for (j = 0; j <
n; j++) {
367 buffer.
fSegs[indx++] = indx2+j;
368 buffer.
fSegs[indx++] = indx2+
n+j;
373 for (i = 0; i < (
fNz-1); i++) {
377 for (j = 0; j <
n; j++) {
378 buffer.
fSegs[indx++] =
c+2;
379 buffer.
fSegs[indx++] = indx2+j;
380 buffer.
fSegs[indx++] = indx2+
n*2+j;
384 for (j = 0; j <
n; j++) {
385 buffer.
fSegs[indx++] =
c+3;
386 buffer.
fSegs[indx++] = indx2+j;
387 buffer.
fSegs[indx++] = indx2+
n*2+j;
394 for (i = 1; i < (
fNz-1); i++) {
395 for (j = 0; j < 2; j++) {
397 buffer.
fSegs[indx++] = 2*i *
n + j*(
n-1);
398 buffer.
fSegs[indx++] = (2*i+1) *
n + j*(
n-1);
408 for (j = 0; j <
n-1; j++) {
409 buffer.
fPols[indx++] =
c+3;
410 buffer.
fPols[indx++] = 4;
412 buffer.
fPols[indx++] =
m+j;
414 buffer.
fPols[indx++] = j;
416 for (j = 0; j <
n-1; j++) {
417 buffer.
fPols[indx++] =
c+3;
418 buffer.
fPols[indx++] = 4;
425 buffer.
fPols[indx++] =
c+3;
426 buffer.
fPols[indx++] = 4;
428 buffer.
fPols[indx++] =
m+j;
430 buffer.
fPols[indx++] = j;
432 buffer.
fPols[indx++] =
c+3;
433 buffer.
fPols[indx++] = 4;
439 for (k = 0; k < (
fNz-1); k++) {
440 for (j = 0; j <
n-1; j++) {
442 buffer.
fPols[indx++] = 4;
443 buffer.
fPols[indx++] = 2*k*
m+j;
445 buffer.
fPols[indx++] = (2*k+2)*
m+j;
448 for (j = 0; j <
n-1; j++) {
449 buffer.
fPols[indx++] =
c+1;
450 buffer.
fPols[indx++] = 4;
451 buffer.
fPols[indx++] = (2*k+1)*
m+j;
453 buffer.
fPols[indx++] = (2*k+3)*
m+j;
459 buffer.
fPols[indx++] = 4;
460 buffer.
fPols[indx++] = 2*k*
m+j;
462 buffer.
fPols[indx++] = (2*k+2)*
m+j;
465 buffer.
fPols[indx++] =
c+1;
466 buffer.
fPols[indx++] = 4;
467 buffer.
fPols[indx++] = (2*k+1)*
m+j;
469 buffer.
fPols[indx++] = (2*k+3)*
m+j;
476 for (k = 0; k < (
fNz-1); k++) {
477 buffer.
fPols[indx++] =
c+2;
478 buffer.
fPols[indx++] = 4;
479 buffer.
fPols[indx++] = k==0 ? indx2 : indx2+2*
fNz*
n+2*(k-1);
480 buffer.
fPols[indx++] = indx2+2*(k+1)*
n;
481 buffer.
fPols[indx++] = indx2+2*
fNz*
n+2*k;
482 buffer.
fPols[indx++] = indx2+(2*k+3)*
n;
484 buffer.
fPols[indx++] =
c+2;
485 buffer.
fPols[indx++] = 4;
486 buffer.
fPols[indx++] = k==0 ? indx2+
n-1 : indx2+2*
fNz*
n+2*(k-1)+1;
487 buffer.
fPols[indx++] = indx2+(2*k+3)*
n+
n-1;
488 buffer.
fPols[indx++] = indx2+2*
fNz*
n+2*k+1;
489 buffer.
fPols[indx++] = indx2+2*(k+1)*
n+
n-1;
491 buffer.
fPols[indx-8] = indx2+
n;
492 buffer.
fPols[indx-2] = indx2+2*
n-1;
int Int_t
Signed integer 4 bytes (int).
short Version_t
Class version identifier (short).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
float Float_t
Float 4 bytes (float).
Generic 3D primitive description class.
Bool_t SectionsValid(UInt_t mask) const
void SetSectionsValid(UInt_t mask)
Bool_t SetRawSizes(UInt_t reqPnts, UInt_t reqPntsCapacity, UInt_t reqSegs, UInt_t reqSegsCapacity, UInt_t reqPols, UInt_t reqPolsCapacity)
Set kRaw tessellation section of buffer with supplied sizes.
Buffer base class used for serializing objects.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void SetNumberOfDivisions(Int_t p)
Set number of divisions.
const TBuffer3D & GetBuffer3D(Int_t reqSections) const override
Get buffer 3d.
Double_t * fCoTab
! Table of cos(fPhi1) .... cos(fPhil+fDphi1)
void Sizeof3D() const override
Return total X3D needed by TNode::ls (when called with option "x").
TPCON(const TPCON &)
copy constructor
void Streamer(TBuffer &) override
Stream a class object.
virtual Int_t GetNumberOfDivisions() const
TPCON & operator=(const TPCON &)
assignment operator
TPCON()
PCON shape default constructor.
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Compute distance from point px,py to a PCON.
virtual Bool_t SetSegsAndPols(TBuffer3D &buffer) const
Set segments and polygons.
~TPCON() override
PCON shape default destructor.
Double_t * fSiTab
! Table of sin(fPhi1) .... sin(fPhil+fDphi1)
TClass * IsA() const override
virtual void FillTableOfCoSin(Double_t phi, Double_t angstep, Int_t n) const
Fill the table of cos and sin to prepare drawing.
virtual void DefineSection(Int_t secNum, Float_t z, Float_t rmin, Float_t rmax)
Defines section secNum of the polycone.
void SetPoints(Double_t *points) const override
Create PCON points.
virtual void MakeTableOfCoSin() const
Make table of cosine and sine.
TShape & operator=(const TShape &)
assignment operator
void Streamer(TBuffer &) override
Stream an object of class TShape.
Int_t GetBasicColor() const
Get basic color.
Int_t ShapeDistancetoPrimitive(Int_t numPoints, Int_t px, Int_t py)
Distance to primitive.
TShape()
Shape default constructor.
virtual void FillBuffer3D(TBuffer3D &buffer, Int_t reqSections) const
We have to set kRawSize (unless already done) to allocate buffer space before kRaw can be filled.
void TransformPoints(Double_t *points, UInt_t NbPnts) const
Transform points (LocalToMaster).
Double_t ATan(Double_t)
Returns the principal value of the arc tangent of x, expressed in radians.
Double_t Cos(Double_t)
Returns the cosine of an angle of x radians.
Double_t Sin(Double_t)
Returns the sine of an angle of x radians.