TGeoCompositeShape Class Reference

#include <TGeoCompositeShape.h>

Inheritance diagram for TGeoCompositeShape:

TGeoBBox TGeoBBox TGeoShape TGeoShape TGeoShape TGeoShape TNamed TNamed TNamed TNamed TNamed TNamed TNamed TNamed List of all members.

Public Member Functions

 TGeoCompositeShape ()
 TGeoCompositeShape (const char *name, const char *expression)
 TGeoCompositeShape (const char *expression)
 TGeoCompositeShape (const char *name, TGeoBoolNode *node)
virtual ~TGeoCompositeShape ()
virtual Double_t Capacity () const
virtual void ComputeBBox ()
virtual void ComputeNormal (Double_t *point, Double_t *dir, Double_t *norm)
virtual Bool_t Contains (Double_t *point) const
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual Double_t DistFromInside (Double_t *point, Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=0) const
virtual Double_t DistFromOutside (Double_t *point, Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=0) const
virtual TGeoVolumeDivide (TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step)
TGeoBoolNodeGetBoolNode () const
virtual void GetBoundingCylinder (Double_t *) const
virtual TGeoShapeGetMakeRuntimeShape (TGeoShape *, TGeoMatrix *) const
virtual void GetMeshNumbers (Int_t &nvert, Int_t &nsegs, Int_t &npols) const
virtual Int_t GetNmeshVertices () const
virtual Bool_t GetPointsOnSegments (Int_t, Double_t *) const
virtual void InspectShape () const
virtual Bool_t IsComposite () const
virtual Bool_t IsCylType () const
void MakeNode (const char *expression)
virtual Bool_t PaintComposite (Option_t *option="") const
void RegisterYourself ()
virtual Double_t Safety (Double_t *point, Bool_t in=kTRUE) const
virtual void SavePrimitive (ostream &out, Option_t *option="")
virtual void SetDimensions (Double_t *)
virtual void SetPoints (Double_t *points) const
virtual void SetPoints (Float_t *points) const
virtual void Sizeof3D () const
 TGeoCompositeShape ()
 TGeoCompositeShape (const char *name, const char *expression)
 TGeoCompositeShape (const char *expression)
 TGeoCompositeShape (const char *name, TGeoBoolNode *node)
virtual ~TGeoCompositeShape ()
virtual Double_t Capacity () const
virtual void ComputeBBox ()
virtual void ComputeNormal (Double_t *point, Double_t *dir, Double_t *norm)
virtual Bool_t Contains (Double_t *point) const
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual Double_t DistFromInside (Double_t *point, Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=0) const
virtual Double_t DistFromOutside (Double_t *point, Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=0) const
virtual TGeoVolumeDivide (TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step)
TGeoBoolNodeGetBoolNode () const
virtual void GetBoundingCylinder (Double_t *) const
virtual TGeoShapeGetMakeRuntimeShape (TGeoShape *, TGeoMatrix *) const
virtual void GetMeshNumbers (Int_t &nvert, Int_t &nsegs, Int_t &npols) const
virtual Int_t GetNmeshVertices () const
virtual Bool_t GetPointsOnSegments (Int_t, Double_t *) const
virtual void InspectShape () const
virtual Bool_t IsComposite () const
virtual Bool_t IsCylType () const
void MakeNode (const char *expression)
virtual Bool_t PaintComposite (Option_t *option="") const
void RegisterYourself ()
virtual Double_t Safety (Double_t *point, Bool_t in=kTRUE) const
virtual void SavePrimitive (ostream &out, Option_t *option="")
virtual void SetDimensions (Double_t *)
virtual void SetPoints (Double_t *points) const
virtual void SetPoints (Float_t *points) const
virtual void Sizeof3D () const

Protected Member Functions

 TGeoCompositeShape (const TGeoCompositeShape &gcs)
TGeoCompositeShapeoperator= (const TGeoCompositeShape &gcs)
 TGeoCompositeShape (const TGeoCompositeShape &gcs)
TGeoCompositeShapeoperator= (const TGeoCompositeShape &gcs)

Private Attributes

TGeoBoolNodefNode
TGeoBoolNodefNode

Detailed Description

Definition at line 29 of file TGeoCompositeShape.h.


Constructor & Destructor Documentation

TGeoCompositeShape::TGeoCompositeShape ( const TGeoCompositeShape gcs  )  [inline, protected]

Definition at line 36 of file TGeoCompositeShape.h.

TGeoCompositeShape::TGeoCompositeShape (  ) 

TGeoCompositeShape::TGeoCompositeShape ( const char *  name,
const char *  expression 
)

Definition at line 172 of file TGeoCompositeShape.cxx.

References ComputeBBox(), TObject::Error(), fNode, TGeoShape::kGeoComb, MakeNode(), TNamed::SetName(), and TGeoShape::SetShapeBit().

TGeoCompositeShape::TGeoCompositeShape ( const char *  expression  ) 

Definition at line 188 of file TGeoCompositeShape.cxx.

References ComputeBBox(), TString::Data(), TObject::Error(), fNode, TString::Format(), TGeoShape::kGeoComb, MakeNode(), and TGeoShape::SetShapeBit().

TGeoCompositeShape::TGeoCompositeShape ( const char *  name,
TGeoBoolNode node 
)

Definition at line 204 of file TGeoCompositeShape.cxx.

References ComputeBBox(), TObject::Error(), fNode, and TNamed::SetName().

TGeoCompositeShape::~TGeoCompositeShape (  )  [virtual]

Definition at line 218 of file TGeoCompositeShape.cxx.

References fNode.

TGeoCompositeShape::TGeoCompositeShape ( const TGeoCompositeShape gcs  )  [inline, protected]

Definition at line 36 of file TGeoCompositeShape.h.

TGeoCompositeShape::TGeoCompositeShape (  ) 

TGeoCompositeShape::TGeoCompositeShape ( const char *  name,
const char *  expression 
)

TGeoCompositeShape::TGeoCompositeShape ( const char *  expression  ) 

TGeoCompositeShape::TGeoCompositeShape ( const char *  name,
TGeoBoolNode node 
)

virtual TGeoCompositeShape::~TGeoCompositeShape (  )  [virtual]


Member Function Documentation

TGeoCompositeShape& TGeoCompositeShape::operator= ( const TGeoCompositeShape gcs  )  [inline, protected]

Definition at line 38 of file TGeoCompositeShape.h.

References fNode, gcs, and TNamed::operator=().

Double_t TGeoCompositeShape::Capacity (  )  const [virtual]

Reimplemented from TGeoBBox.

Definition at line 225 of file TGeoCompositeShape.cxx.

References Contains(), TGeoBBox::fDX, TGeoBBox::fDY, TGeoBBox::fDZ, TGeoBBox::fOrigin, gRandom, and TRandom::Rndm().

void TGeoCompositeShape::ComputeBBox (  )  [virtual]

Reimplemented from TGeoBBox.

Definition at line 245 of file TGeoCompositeShape.cxx.

References TGeoBoolNode::ComputeBBox(), TGeoBBox::fDX, TGeoBBox::fDY, TGeoBBox::fDZ, fNode, and TGeoBBox::fOrigin.

Referenced by TGeoCompositeShape().

void TGeoCompositeShape::ComputeNormal ( Double_t point,
Double_t dir,
Double_t norm 
) [virtual]

Reimplemented from TGeoBBox.

Definition at line 252 of file TGeoCompositeShape.cxx.

References TGeoBoolNode::ComputeNormal(), and fNode.

Bool_t TGeoCompositeShape::Contains ( Double_t point  )  const [virtual]

Reimplemented from TGeoBBox.

Definition at line 259 of file TGeoCompositeShape.cxx.

References TGeoBoolNode::Contains(), fNode, and kFALSE.

Referenced by Capacity().

Int_t TGeoCompositeShape::DistancetoPrimitive ( Int_t  px,
Int_t  py 
) [virtual]

Reimplemented from TGeoBBox.

Definition at line 267 of file TGeoCompositeShape.cxx.

References GetNmeshVertices(), and TGeoShape::ShapeDistancetoPrimitive().

Double_t TGeoCompositeShape::DistFromInside ( Double_t point,
Double_t dir,
Int_t  iact = 1,
Double_t  step = TGeoShape::Big(),
Double_t safe = 0 
) const [virtual]

Reimplemented from TGeoBBox.

Definition at line 287 of file TGeoCompositeShape.cxx.

References TGeoShape::Big(), TGeoBoolNode::DistFromInside(), and fNode.

Double_t TGeoCompositeShape::DistFromOutside ( Double_t point,
Double_t dir,
Int_t  iact = 1,
Double_t  step = TGeoShape::Big(),
Double_t safe = 0 
) const [virtual]

Reimplemented from TGeoBBox.

Definition at line 275 of file TGeoCompositeShape.cxx.

References TGeoShape::Big(), TGeoBBox::DistFromOutside(), TGeoBoolNode::DistFromOutside(), TGeoBBox::fDX, TGeoBBox::fDY, TGeoBBox::fDZ, fNode, and TGeoBBox::fOrigin.

TGeoVolume * TGeoCompositeShape::Divide ( TGeoVolume voldiv,
const char *  divname,
Int_t  iaxis,
Int_t  ndiv,
Double_t  start,
Double_t  step 
) [virtual]

Reimplemented from TGeoBBox.

Definition at line 296 of file TGeoCompositeShape.cxx.

References TObject::Error().

TGeoBoolNode* TGeoCompositeShape::GetBoolNode (  )  const [inline]

Definition at line 61 of file TGeoCompositeShape.h.

References fNode.

Referenced by TEveGeoPolyShape::Construct(), and TEveGeoShape::Paint().

virtual void TGeoCompositeShape::GetBoundingCylinder ( Double_t  )  const [inline, virtual]

Reimplemented from TGeoBBox.

Definition at line 62 of file TGeoCompositeShape.h.

virtual TGeoShape* TGeoCompositeShape::GetMakeRuntimeShape ( TGeoShape ,
TGeoMatrix  
) const [inline, virtual]

Reimplemented from TGeoBBox.

Definition at line 63 of file TGeoCompositeShape.h.

void TGeoCompositeShape::GetMeshNumbers ( Int_t nvert,
Int_t nsegs,
Int_t npols 
) const [virtual]

Reimplemented from TGeoBBox.

Definition at line 305 of file TGeoCompositeShape.cxx.

References GetNmeshVertices().

Int_t TGeoCompositeShape::GetNmeshVertices (  )  const [virtual]

Reimplemented from TGeoBBox.

Definition at line 484 of file TGeoCompositeShape.cxx.

References fNode, and TGeoBoolNode::GetNpoints().

Referenced by DistancetoPrimitive(), and GetMeshNumbers().

virtual Bool_t TGeoCompositeShape::GetPointsOnSegments ( Int_t  ,
Double_t  
) const [inline, virtual]

Reimplemented from TGeoBBox.

Definition at line 66 of file TGeoCompositeShape.h.

References kFALSE.

void TGeoCompositeShape::InspectShape (  )  const [virtual]

Reimplemented from TGeoBBox.

Definition at line 314 of file TGeoCompositeShape.cxx.

References TGeoShape::GetName(), TNamed::GetTitle(), and TGeoBBox::InspectShape().

virtual Bool_t TGeoCompositeShape::IsComposite (  )  const [inline, virtual]

Reimplemented from TGeoShape.

Definition at line 68 of file TGeoCompositeShape.h.

References kTRUE.

virtual Bool_t TGeoCompositeShape::IsCylType (  )  const [inline, virtual]

Reimplemented from TGeoBBox.

Definition at line 69 of file TGeoCompositeShape.h.

References kFALSE.

void TGeoCompositeShape::MakeNode ( const char *  expression  ) 

Definition at line 323 of file TGeoCompositeShape.cxx.

References TString::Data(), TObject::Error(), fNode, TString::Length(), TGeoManager::Parse(), TNamed::SetTitle(), and TObject::Warning().

Referenced by TGeoCompositeShape().

Bool_t TGeoCompositeShape::PaintComposite ( Option_t option = ""  )  const [virtual]

Definition at line 357 of file TGeoCompositeShape.cxx.

References buffer, TVirtualViewer3D::CloseComposite(), TBuffer3D::DecCSLevel(), TGeoBBox::FillBuffer3D(), fNode, TBuffer3D::GetCSLevel(), TGeoManager::GetGeomPainter(), TGeoShape::GetTransform(), gGeoManager, gPad, TBuffer3D::IncCSLevel(), TBuffer3D::kBoundingBox, TBuffer3DTypes::kComposite, TBuffer3D::kCore, kFALSE, kTRUE, TVirtualViewer3D::OpenComposite(), TGeoBoolNode::Paint(), and TVirtualViewer3D::PreferLocalFrame().

void TGeoCompositeShape::RegisterYourself (  ) 

Definition at line 401 of file TGeoCompositeShape.cxx.

References TObjArray::Add(), TGeoManager::AddShape(), TObjArray::FindObject(), fNode, TGeoBoolNode::GetLeftMatrix(), TGeoBoolNode::GetLeftShape(), TGeoManager::GetListOfMatrices(), TGeoManager::GetListOfShapes(), TGeoBoolNode::GetRightMatrix(), TGeoBoolNode::GetRightShape(), gGeoManager, TGeoShape::IsComposite(), and RegisterYourself().

Referenced by RegisterYourself().

Double_t TGeoCompositeShape::Safety ( Double_t point,
Bool_t  in = kTRUE 
) const [virtual]

Reimplemented from TGeoBBox.

Definition at line 442 of file TGeoCompositeShape.cxx.

References fNode, and TGeoBoolNode::Safety().

void TGeoCompositeShape::SavePrimitive ( ostream &  out,
Option_t option = "" 
) [virtual]

Reimplemented from TGeoBBox.

Definition at line 451 of file TGeoCompositeShape.cxx.

References TObject::ClassName(), fNode, TGeoShape::GetName(), TGeoShape::GetPointerName(), TNamed::GetTitle(), TGeoShape::kGeoSavePrimitive, TGeoBoolNode::SavePrimitive(), TObject::SetBit(), and TObject::TestBit().

virtual void TGeoCompositeShape::SetDimensions ( Double_t  )  [inline, virtual]

Reimplemented from TGeoBBox.

Definition at line 75 of file TGeoCompositeShape.h.

void TGeoCompositeShape::SetPoints ( Double_t points  )  const [virtual]

Reimplemented from TGeoBBox.

Definition at line 463 of file TGeoCompositeShape.cxx.

References fNode, and TGeoBoolNode::SetPoints().

void TGeoCompositeShape::SetPoints ( Float_t points  )  const [virtual]

Reimplemented from TGeoBBox.

Definition at line 470 of file TGeoCompositeShape.cxx.

References fNode, and TGeoBoolNode::SetPoints().

void TGeoCompositeShape::Sizeof3D (  )  const [virtual]

Reimplemented from TGeoBBox.

Definition at line 477 of file TGeoCompositeShape.cxx.

References fNode, and TGeoBoolNode::Sizeof3D().

TGeoCompositeShape& TGeoCompositeShape::operator= ( const TGeoCompositeShape gcs  )  [inline, protected]

Definition at line 38 of file TGeoCompositeShape.h.

References fNode, gcs, and TNamed::operator=().

virtual Double_t TGeoCompositeShape::Capacity (  )  const [virtual]

Reimplemented from TGeoBBox.

virtual void TGeoCompositeShape::ComputeBBox (  )  [virtual]

Reimplemented from TGeoBBox.

virtual void TGeoCompositeShape::ComputeNormal ( Double_t point,
Double_t dir,
Double_t norm 
) [virtual]

Reimplemented from TGeoBBox.

virtual Bool_t TGeoCompositeShape::Contains ( Double_t point  )  const [virtual]

Reimplemented from TGeoBBox.

virtual Int_t TGeoCompositeShape::DistancetoPrimitive ( Int_t  px,
Int_t  py 
) [virtual]

Reimplemented from TGeoBBox.

virtual Double_t TGeoCompositeShape::DistFromInside ( Double_t point,
Double_t dir,
Int_t  iact = 1,
Double_t  step = TGeoShape::Big(),
Double_t safe = 0 
) const [virtual]

Reimplemented from TGeoBBox.

virtual Double_t TGeoCompositeShape::DistFromOutside ( Double_t point,
Double_t dir,
Int_t  iact = 1,
Double_t  step = TGeoShape::Big(),
Double_t safe = 0 
) const [virtual]

Reimplemented from TGeoBBox.

virtual TGeoVolume* TGeoCompositeShape::Divide ( TGeoVolume voldiv,
const char *  divname,
Int_t  iaxis,
Int_t  ndiv,
Double_t  start,
Double_t  step 
) [virtual]

Reimplemented from TGeoBBox.

TGeoBoolNode* TGeoCompositeShape::GetBoolNode (  )  const [inline]

Definition at line 61 of file TGeoCompositeShape.h.

References fNode.

virtual void TGeoCompositeShape::GetBoundingCylinder ( Double_t  )  const [inline, virtual]

Reimplemented from TGeoBBox.

Definition at line 62 of file TGeoCompositeShape.h.

virtual TGeoShape* TGeoCompositeShape::GetMakeRuntimeShape ( TGeoShape ,
TGeoMatrix  
) const [inline, virtual]

Reimplemented from TGeoBBox.

Definition at line 63 of file TGeoCompositeShape.h.

virtual void TGeoCompositeShape::GetMeshNumbers ( Int_t nvert,
Int_t nsegs,
Int_t npols 
) const [virtual]

Reimplemented from TGeoBBox.

virtual Int_t TGeoCompositeShape::GetNmeshVertices (  )  const [virtual]

Reimplemented from TGeoBBox.

virtual Bool_t TGeoCompositeShape::GetPointsOnSegments ( Int_t  ,
Double_t  
) const [inline, virtual]

Reimplemented from TGeoBBox.

Definition at line 66 of file TGeoCompositeShape.h.

References kFALSE.

virtual void TGeoCompositeShape::InspectShape (  )  const [virtual]

Reimplemented from TGeoBBox.

virtual Bool_t TGeoCompositeShape::IsComposite (  )  const [inline, virtual]

Reimplemented from TGeoShape.

Definition at line 68 of file TGeoCompositeShape.h.

References kTRUE.

virtual Bool_t TGeoCompositeShape::IsCylType (  )  const [inline, virtual]

Reimplemented from TGeoBBox.

Definition at line 69 of file TGeoCompositeShape.h.

References kFALSE.

void TGeoCompositeShape::MakeNode ( const char *  expression  ) 

virtual Bool_t TGeoCompositeShape::PaintComposite ( Option_t option = ""  )  const [virtual]

void TGeoCompositeShape::RegisterYourself (  ) 

virtual Double_t TGeoCompositeShape::Safety ( Double_t point,
Bool_t  in = kTRUE 
) const [virtual]

Reimplemented from TGeoBBox.

virtual void TGeoCompositeShape::SavePrimitive ( ostream &  out,
Option_t option = "" 
) [virtual]

Reimplemented from TGeoBBox.

virtual void TGeoCompositeShape::SetDimensions ( Double_t  )  [inline, virtual]

Reimplemented from TGeoBBox.

Definition at line 75 of file TGeoCompositeShape.h.

virtual void TGeoCompositeShape::SetPoints ( Double_t points  )  const [virtual]

Reimplemented from TGeoBBox.

virtual void TGeoCompositeShape::SetPoints ( Float_t points  )  const [virtual]

Reimplemented from TGeoBBox.

virtual void TGeoCompositeShape::Sizeof3D (  )  const [virtual]

Reimplemented from TGeoBBox.


Member Data Documentation

TGeoBoolNode* TGeoCompositeShape::fNode [private]

Definition at line 33 of file TGeoCompositeShape.h.

Referenced by ComputeBBox(), ComputeNormal(), Contains(), DistFromInside(), DistFromOutside(), GetBoolNode(), GetNmeshVertices(), MakeNode(), operator=(), PaintComposite(), RegisterYourself(), Safety(), SavePrimitive(), SetPoints(), Sizeof3D(), TGeoCompositeShape(), and ~TGeoCompositeShape().

TGeoBoolNode* TGeoCompositeShape::fNode [private]

Definition at line 33 of file TGeoCompositeShape.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:38:41 2011 for ROOT_528-00b_version by  doxygen 1.5.1