#ifndef ROOT_TVolume
#define ROOT_TVolume
#include "TObjectSet.h"
#include "TNode.h"
#ifndef ROOT_TShape
#include "TShape.h"
#endif
#ifndef ROOT_TAttLine
#include "TAttLine.h"
#endif
#ifndef ROOT_TAttFill
#include "TAttFill.h"
#endif
class TBrowser;
class TVolumePosition;
class TRotMatrix;
class TList;
class TVolume : public TObjectSet, public TAttLine, public TAttFill, public TAtt3D {
public:
enum ENodeSEEN {kBothVisible = 00,
kSonUnvisible = 1,
kThisUnvisible= 2,
kNoneVisible = kThisUnvisible | kSonUnvisible};
protected:
TShape *fShape;
TList *fListOfShapes;
TString fOption;
ENodeSEEN fVisibility;
virtual void Add(TDataSet *dataset);
virtual void Add(TVolumePosition *position);
virtual TVolumePosition *Add(TVolume *node, TVolumePosition *nodePosition);
virtual Int_t DistancetoNodePrimitive(Int_t px, Int_t py,TVolumePosition *position=0);
void SetPositionsList(TList *list=0){AddObject((TObject *)list);}
virtual void PaintNodePosition(Option_t *option="",TVolumePosition *postion=0);
friend class TPolyLineShape;
public:
TVolume();
TVolume(const Text_t *name, const Text_t *title, const Text_t *shapename, Option_t *option="");
TVolume(const Text_t *name, const Text_t *title, TShape *shape, Option_t *option="");
TVolume(TNode &node);
virtual ~TVolume();
virtual TVolumePosition *Add(TVolume *node, Double_t x=0, Double_t y=0, Double_t z=0, TRotMatrix *matrix=0, UInt_t id=0, Option_t *option="");
virtual TVolumePosition *Add(TVolume *node, Double_t x, Double_t y, Double_t z, const Text_t *matrixname, UInt_t id=0, Option_t *option="");
static Int_t MapStNode2GEANTVis(ENodeSEEN vis);
static Int_t MapGEANT2StNodeVis(Int_t vis);
virtual void Add(TShape *shape, Bool_t IsMaster=kFALSE);
virtual void Browse(TBrowser *b);
virtual TNode *CreateTNode(const TVolumePosition *position=0);
virtual void DeletePosition(TVolumePosition *position);
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
virtual void Draw(Option_t *depth="3");
virtual void DrawOnly(Option_t *option="");
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
static TRotMatrix *GetIdentity();
virtual Text_t *GetObjectInfo(Int_t px, Int_t py) const;
const Option_t *GetOption() const { return fOption.Data();}
TShape *GetShape() const {return fShape;}
TList *GetListOfShapes() const {return fListOfShapes;}
virtual void GetLocalRange(Float_t *min, Float_t *max);
virtual ENodeSEEN GetVisibility() const {return fVisibility;}
virtual TList *GetListOfPositions() { return (TList *)(GetObject());}
virtual ULong_t Hash() const { return TObject::Hash();}
virtual void ImportShapeAttributes();
virtual Bool_t IsMarked() const;
virtual Bool_t Is3D() const {return kTRUE;}
virtual TList *Nodes() const { return GetList(); }
virtual void Paint(Option_t *option="");
virtual void PaintShape(Option_t *option="");
virtual void SetVisibility(ENodeSEEN vis=TVolume::kBothVisible);
virtual void Sizeof3D() const;
ClassDef(TVolume,1)
};
inline void TVolume::Add(TDataSet *dataset){ TDataSet::Add(dataset);}
inline Bool_t TVolume::IsMarked() const { return TestBit(kMark); }
#endif
Last change: Wed Jun 25 08:55:03 2008
Last generated: 2008-06-25 08:55
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.