ROOT » GRAF3D » G3D » TGTRA

class TGTRA: public TBRIK

 

 GTRA is a general twisted trapezoid. The faces perpendicular to z are trapezia
 and their centres are not necessarily on a line parallel to the z axis as the
 TRAP; additionally, the faces may be twisted so that none of their edges are
 parallel. It is a TRAP shape, except that it is twisted in the x-y plane as a
 function of z. The parallel sides perpendicular to the z axis are rotated with
 respect to the x axis by an angle TWIST, which is one of the parameters. The
 shape is defined by the eight corners and is assumed to be constructed of
 straight lines joining points on the boundary of the trapezoidal face at z=-DZ
 to the corresponding points on the face at z=DZ. Divisions are not allowed.
 It has 15 parameters:

     - name       name of the shape
     - title      shape's title
     - material  (see TMaterial)
     - dZ         half-length along the z axis
     - theta      polar angle of the line joining the centre of the face
                  at -DZ to the centre of the one at +DZ
     - phi        azimuthal angle of the line joining the centre of
                  the face at -DZ to the centre of the one at +DZ
     - twist      twist angle of the faces parallel to the x-y plane
                  at z = +/- DZ around an axis parallel to z passing
                  through their centre
     - h1         half-length along y of the face at -DZ
     - bl1        half-length along x of the side at -H1 in y of
                  the face at -DZ in z
     - tl1        half-length along x of the side at +H1 in y of the face
                  at -DZ in z
     - alpha1     angle with respect to the y axis from the centre of
                  the side at -H1 in y to the centre of the side at
                  +H1 in y of the face at -DZ in z
     - h2         half-length along y of the face at +DZ
     - bL2        half-length along x of the side at -H2 in y of the face at
                  +DZ in z

     - tl2        half-length along x of the side at +H2 in y of the face
                  at +DZ in z

     - alpha2     angle with respect to the y axis from the centre of the side
                  at -H2 in y to the centre of the side at +H2 in y of the
                  face at +DZ in z

Function Members (Methods)

public:
virtual~TGTRA()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Delete(Option_t* option = "")MENU
Int_tTAttLine::DistancetoLine(Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
virtual Int_tTBRIK::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
Float_tGetAlpha1() const
Float_tGetAlpha2() const
Float_tGetBl1() const
Float_tGetBl2() const
virtual const TBuffer3D&TBRIK::GetBuffer3D(Int_t reqSections) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Float_tTBRIK::GetDx() const
Float_tTBRIK::GetDy() const
Float_tTBRIK::GetDz() const
virtual Color_tTAttFill::GetFillColor() const
virtual Style_tTAttFill::GetFillStyle() const
Float_tGetH1() const
Float_tGetH2() const
virtual const char*TObject::GetIconName() const
virtual Color_tTAttLine::GetLineColor() const
virtual Style_tTAttLine::GetLineStyle() const
virtual Width_tTAttLine::GetLineWidth() const
TMaterial*TShape::GetMaterial() const
virtual const char*TNamed::GetName() const
virtual Int_tTShape::GetNumber() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TNamed::GetTitle() const
Float_tGetTl1() const
Float_tGetTl2() const
Float_tGetTwist() const
virtual UInt_tTObject::GetUniqueID() const
Int_tTShape::GetVisibility() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
virtual Bool_tTAttFill::IsTransparent() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual voidTAttLine::Modify()
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TGTRA&operator=(const TGTRA&)
virtual voidTShape::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTNamed::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidTAttFill::ResetAttFill(Option_t* option = "")
virtual voidTAttLine::ResetAttLine(Option_t* option = "")
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTAttFill::SaveFillAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1001)
virtual voidTAttLine::SaveLineAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1, Int_t widdef = 1)
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidTAttFill::SetFillAttributes()MENU
virtual voidTAttFill::SetFillColor(Color_t fcolor)
virtual voidTAttFill::SetFillColorAlpha(Color_t fcolor, Float_t falpha)
virtual voidTAttFill::SetFillStyle(Style_t fstyle)
virtual voidTAttLine::SetLineAttributes()MENU
virtual voidTAttLine::SetLineColor(Color_t lcolor)
virtual voidTAttLine::SetLineColorAlpha(Color_t lcolor, Float_t lalpha)
virtual voidTAttLine::SetLineStyle(Style_t lstyle)
virtual voidTAttLine::SetLineWidth(Width_t lwidth)
virtual voidTShape::SetName(const char* name)
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidTShape::SetVisibility(Int_t vis)MENU
virtual voidShowMembers(TMemberInspector& insp) const
virtual Int_tTNamed::Sizeof() const
virtual voidTBRIK::Sizeof3D() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
TGTRA()
TGTRA(const TGTRA&)
TGTRA(const char* name, const char* title, const char* material, Float_t dz, Float_t theta, Float_t phi, Float_t twist, Float_t h1, Float_t bl1, Float_t tl1, Float_t alpha1, Float_t h2, Float_t bl2, Float_t tl2, Float_t alpha2)
voidTShape::TransformPoints(Double_t* points, UInt_t NbPnts) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual voidTShape::FillBuffer3D(TBuffer3D& buffer, Int_t reqSections) const
Int_tTShape::GetBasicColor() const
voidTObject::MakeZombie()
virtual voidSetPoints(Double_t* points) const
Int_tTShape::ShapeDistancetoPrimitive(Int_t numPoints, Int_t px, Int_t py)

Data Members

public:
static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TObject::EStatusBitsTObject::kHasUUID
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static TObject::(anonymous)TObject::kWriteDelete
static TObject::(anonymous)TObject::kZombie
protected:
Float_tfAlpha1angle w.r.t. the y axis
Float_tfAlpha2angle w.r.t. the y axis
Float_tfBl1half length in x at low z and y low edge
Float_tfBl2half length in x at high z and y low edge
Float_tTBRIK::fDxhalf length in x
Float_tTBRIK::fDyhalf length in y
Float_tTBRIK::fDzhalf length in z
Color_tTAttFill::fFillColorfill area color
Style_tTAttFill::fFillStylefill area style
Float_tfH1half length in y at low z
Float_tfH2half length in y at high z
Color_tTAttLine::fLineColorline color
Style_tTAttLine::fLineStyleline style
Width_tTAttLine::fLineWidthline width
TMaterial*TShape::fMaterialPointer to material
TStringTNamed::fNameobject identifier
Int_tTShape::fNumberShape number
TStringTNamed::fTitleobject title
Float_tfTl1half length in x at low z and y high edge
Float_tfTl2half length in x at high z and y high edge
Float_tfTwisttwisting parameter
Int_tTShape::fVisibilityVisibility flag

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGTRA()
 GTRA shape default constructor.
TGTRA(const char* name, const char* title, const char* material, Float_t dz, Float_t theta, Float_t phi, Float_t twist, Float_t h1, Float_t bl1, Float_t tl1, Float_t alpha1, Float_t h2, Float_t bl2, Float_t tl2, Float_t alpha2)
 GTRA shape normal constructor
~TGTRA()
 GTRA shape default destructor
void SetPoints(Double_t* points) const
 Create GTRA points
TGTRA()
Float_t GetTwist() const
{return fTwist;}
Float_t GetH1() const
{return fH1;}
Float_t GetBl1() const
{return fBl1;}
Float_t GetTl1() const
{return fTl1;}
Float_t GetAlpha1() const
{return fAlpha1;}
Float_t GetH2() const
{return fH2;}
Float_t GetBl2() const
{return fBl2;}
Float_t GetTl2() const
{return fTl2;}
Float_t GetAlpha2() const
{return fAlpha2;}