TBRIK


class description - source file - inheritance tree

class TBRIK : public TShape


    public:
TBRIK TBRIK() TBRIK TBRIK(const char* name, const char* title, const char* material, Float_t dx, Float_t dy, Float_t dz) TBRIK TBRIK(TBRIK&) virtual void ~TBRIK() static TClass* Class() virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) Float_t GetDx() Float_t GetDy() Float_t GetDz() virtual TClass* IsA() const 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)

Data Members

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


See also

TGTRA, TPARA, TTRAP, TTRD1, TTRD2

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()
            Float_t GetDy()
            Float_t GetDz()
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
              TBRIK TBRIK(TBRIK&)


Author: Nenad Buncic 17/09/95
Last update: root/g3d:$Name: $:$Id: TBRIK.cxx,v 1.1.1.1 2000/05/16 17:00:42 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.