library: libGraf3d #include "TTRD2.h"

# TTRD2

class description - source file - inheritance tree (.pdf)

## class TTRD2 : public TBRIK

| Inheritance Chart:
`TObject`
| <- | `TNamed`
`TAttLine`
`TAttFill`
`TAtt3D`
| <- | `TShape`
| <- | `TBRIK`
| <- | `TTRD2` |

        protected:

          virtual void SetPoints(Double_t* points) const

        public:

                          TTRD2()
                          TTRD2(const char* name, const char* title, const char* material, Float_t dx1, Float_t dx2, Float_t dy1, Float_t dy2, Float_t dz)
                          TTRD2(const TTRD2&)
                  virtual ~TTRD2()
           static TClass* Class()
                  Float_t GetDx2() const
                  Float_t GetDy2() const
          virtual TClass* IsA() const
                   TTRD2& operator=(const TTRD2&)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

          Float_t fDx2  half length in x at the high z surface
          Float_t fDy2  half length in y at the high z surface

## Class Description

     TRD2 is a trapezoid with both x and y dimensions varying along z.
     It has 8 parameters:

         - name       name of the shape
         - title      shape's title
         - material  (see TMaterial)
         - dx1        half-length along x at the z surface positioned at -DZ
         - dx2        half-length along x at the z surface positioned at +DZ
         - dy1        half-length along y at the z surface positioned at -DZ
         - dy2        half-length along y at the z surface positioned at +DZ
         - dz         half-length along the z-axis

TTRD2()

     TRD2 shape default constructor

TTRD2(const char *name, const char *title, const char *material, Float_t dx1, Float_t dx2, Float_t dy1, Float_t dy2, Float_t dz) : TBRIK(name, title,material,dx1,dy1,dz)

     TRD2 shape normal constructor

~TTRD2()

     TRD2 shape default destructor

void SetPoints(Double_t *points) const

     Create TRD2 points

### Inline Functions

                Float_t GetDx2() const
                Float_t GetDy2() const
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
                  TTRD2 TTRD2(const TTRD2&)
                 TTRD2& operator=(const TTRD2&)

Author: Nenad Buncic 13/09/95
Last update: root/g3d:$Name: $:$Id: TTRD2.cxx,v 1.4 2005/03/09 18:19:26 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *