library: libGraf3d
#include "TBRIK.h"

TBRIK


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

class TBRIK : public TShape

Inheritance Chart:
TObject
<-
TNamed
TAttLine
TAttFill
TAtt3D
<-
TShape
<-
TBRIK
<-
TGTRA
TPARA
TTRAP
TTRD1
TTRD2

    protected:
virtual void SetPoints(Double_t* points) const 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) virtual const TBuffer3D& GetBuffer3D(Int_t reqSections) const Float_t GetDx() const Float_t GetDy() const Float_t GetDz() const virtual TClass* IsA() const TBRIK& operator=(const TBRIK&) 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 SetPoints(Double_t *points) const
 Create BRIK points

void Sizeof3D() const
 Return total X3D needed by TNode::ls (when called with option "x")

const TBuffer3D& GetBuffer3D(Int_t reqSections) const



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.7 2005/08/30 09:11:39 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - 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.