library: libGraf3d #include "TBRIK.h"

# TBRIK

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

## class TBRIK : public TShape

| Inheritance Chart:

`TObject`

<-

`TNamed`

`TAttLine`

`TAttFill`

`TAtt3D`

<-

`TShape`

<-

`TBRIK`

<-

`TGTRA` |

`TPARA` |

`TTRAP` |

`TTRD1` |

`TTRD2` |

        public:

                          TBRIK()
                          TBRIK(const char* name, const char* title, const char* material, Float_t dx, Float_t dy, Float_t dz)
                          TBRIK(const TBRIK&)
                  virtual ~TBRIK()
           static TClass* Class()
            virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
                  Float_t GetDx() const
                  Float_t GetDy() const
                  Float_t GetDz() const
          virtual TClass* IsA() const
                   TBRIK& operator=(const TBRIK&)
             virtual void Paint(Option_t* option)
             virtual void PaintGLPoints(Float_t* buff)
             virtual void SetPoints(Float_t* buff)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Sizeof3D() const
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

          Float_t fDx  half length in x
          Float_t fDy  half length in y
          Float_t fDz  half length in z

## Class Description

     BRIK is a box with faces perpendicular to the axes. It has 6 parameters:

         - name       name of the shape
         - title      shape's title
         - material  (see TMaterial)
         - dx         half-length of the box along the x-axis
         - dy         half-length of the box along the y-axis
         - dz         half-length of the box along the z-axis

TBRIK()

    *-*-*-*-*-*-*-*-*-*-*-*-*BRIK shape default constructor*-*-*-*-*-*-*-*-*-*-*-*
    *-*                      ==============================

TBRIK(const char *name, const char *title, const char *material, Float_t dx, Float_t dy, Float_t dz) : TShape (name, title,material)

    *-*-*-*-*-*-*-*-*-*-*-*-*BRIK shape normal constructor*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*                      =============================

~TBRIK()

    *-*-*-*-*-*-*-*-*-*-*-*-*BRIK shape default destructor*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*                      =============================

Int_t DistancetoPrimitive(Int_t px, Int_t py)

    *-*-*-*-*-*-*-*Compute distance from point px,py to a BRIK*-*-*-*-*-*-*
    *-*            ===========================================
    *-*
    *-*  Compute the closest distance of approach from point px,py to each corner
    *-*  point of the BRIK.
    *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

void Paint(Option_t *option)

    *-*-*-*-*-*-*-*Paint this 3-D shape with its current attributes*-*-*-*-*-*-*-*
    *-*            ==================================================

void PaintGLPoints(Float_t *vertex)

    *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*Paint BRIK via OpenGL *-*-*-*-*-*-*-*-*-*-*-*-*
    *-*                            =====================

void SetPoints(Float_t *buff)

    *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*Create BRIK points*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*                            ==================

void Sizeof3D() const

    *-*-*-*-*-*-*Return total X3D size of this shape with its attributes*-*-*-*-*-*
    *-*          =======================================================

### Inline Functions

                Float_t GetDx() const
                Float_t GetDy() const
                Float_t GetDz() const
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
                  TBRIK TBRIK(const TBRIK&)
                 TBRIK& operator=(const TBRIK&)

Author: Nenad Buncic 17/09/95
Last update: root/g3d:$Name: $:$Id: TBRIK.cxx,v 1.2 2002/11/11 11:21:16 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *