StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TVolumeView Class Reference
Inheritance diagram for TVolumeView:
TObjectSet TDataSet

Public Member Functions

 TVolumeView (TVolumeView *viewNode, TVolumePosition *nodePosition=0)
 
 TVolumeView (TVolumeView *viewNode, const Char_t *NodeName1, const Char_t *NodeName2=0)
 
 TVolumeView (TVolumeView *viewNode, TVolumeView *topNode)
 
 TVolumeView (TVolumeView *viewNode, const TVolumeView *node1, const TVolumeView *node2)
 
 TVolumeView (TVolume &pattern, Int_t maxDepLevel=0, const TVolumePosition *nodePosition=0, EDataSetPass iopt=kMarked, TVolumeView *root=0)
 
 TVolumeView (Double_t *translate, Double_t *rotate, UInt_t positionId, TVolume *thisNode, const Char_t *thisNodePath, const Char_t *matrixName=0, Int_t matrixType=0)
 
 TVolumeView (TVolume *thisNode, TVolumePosition *nodePosition)
 to be documented
 
virtual ~TVolumeView ()
 default dtor (empty for this class)
 
virtual TVolumeAddNode (TVolume *node)
 
virtual void Add (TDataSet *dataset)
 
virtual void Add (TVolumeView *node)
 
virtual void Add (TShape *shape, Bool_t IsMaster=kFALSE)
 to be documented
 
virtual void Browse (TBrowser *b)
 to be documented
 
virtual void Draw (Option_t *depth="3")
 Draw Referenced node with current parameters.
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 
virtual TVolumePositionGetPosition () const
 
virtual TVolumeGetNode () const
 to be documented
 
virtual Int_t GetGlobalRange (const TVolumeView *rootNode, Float_t *min, Float_t *max)
 
virtual TList * GetListOfShapes () const
 
virtual void GetLocalRange (Float_t *min, Float_t *max)
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 to be documented
 
virtual TShape * GetShape () const
 
virtual Int_t GetVisibility () const
 
virtual Bool_t IsMarked () const
 
virtual Bool_t Is3D () const
 
virtual TVolumePositionLocal2Master (const TVolumeView *localNode, const TVolumeView *masterNode=0)
 to be documented
 
virtual TVolumePositionLocal2Master (const Char_t *localName, const Char_t *masterName=0)
 to be documented
 
virtual Float_t * Local2Master (const Float_t *local, Float_t *master, const Char_t *localName, const Char_t *masterName=0, Int_t nVector=1)
 
virtual Float_t * Local2Master (const Float_t *local, Float_t *master, const TVolumeView *localNode, const TVolumeView *masterNode=0, Int_t nVector=1)
 
virtual TList * Nodes ()
 
virtual void Paint (Option_t *option="")
 
virtual TString PathP () const
 return the full path of this data set
 
virtual void SetLineAttributes ()
 to be documented
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 to be documented
 
virtual void SetVisibility (Int_t vis=1)
 to be documented
 
virtual void Sizeof3D () const
 Return total size of this 3-D Node with its attributes.
 
- Public Member Functions inherited from TObjectSet
 TObjectSet (const Char_t *name, TObject *obj=0, Bool_t makeOwner=kTRUE)
 to be documented
 
 TObjectSet (TObject *obj=0, Bool_t makeOwner=kTRUE)
 to be documented
 
virtual ~TObjectSet ()
 to be documented
 
virtual TObject * AddObject (TObject *obj, Bool_t makeOwner=kTRUE)
 Aliase for SetObject method.
 
virtual void Delete (Option_t *opt="")
 to be documented
 
virtual Bool_t DoOwner (Bool_t done=kTRUE)
 
virtual Long_t HasData () const
 
virtual TObject * GetObject () const
 The depricated method (left here for the sake of the backward compatibility)
 
virtual TDataSetInstance () const
 
virtual Bool_t IsOwner () const
 
virtual void SetObject (TObject *obj)
 The depricated method (left here for the sake of the backward compatibility)
 
virtual TObject * SetObject (TObject *obj, Bool_t makeOwner)
 
- Public Member Functions inherited from TDataSet
 TDataSet (const char *name="", TDataSet *parent=0, Bool_t arrayFlag=kFALSE)
 
 TDataSet (const TDataSet &src, EDataSetPass iopt=kAll)
 
 TDataSet (TNode &src)
 This copy ctor has been depricated (left for thwe sake of the backweard compatibility)
 
virtual ~TDataSet ()
 std::cout << "Default destructor for " << GetName() << " - " << GetTitle() << std::endl;
 
virtual void AddAt (TDataSet *dataset, Int_t idx=0)
 
virtual void AddAtAndExpand (TDataSet *dataset, Int_t idx=0)
 
virtual void AddFirst (TDataSet *dataset)
 Add TDataSet object at the beginning of the dataset list of this dataset.
 
virtual void AddLast (TDataSet *dataset)
 Add TDataSet object at the end of the dataset list of this dataset.
 
TDataSetAt (Int_t idx) const
 
virtual TObject * Clone (const char *newname="") const
 the custom implementation fo the TObject::Clone
 
virtual TDataSetFind (const char *path) const
 
virtual TDataSetFindByName (const char *name, const char *path="", Option_t *opt="") const
 
virtual TDataSetFindByPath (const char *path) const
 Aliase for TDataSet::Find(const Char_t *path) method.
 
virtual TDataSetFindByTitle (const char *title, const char *path="", Option_t *opt="") const
 
TObject * FindObject (const char *name) const
 
TObject * FindObject (const TObject *o) const
 
virtual TDataSetFirst () const
 Return the first object in the list. Returns 0 when list is empty.
 
TObjArray * GetObjArray () const
 
virtual TSeqCollection * GetCollection () const
 
TList * GetList () const
 
virtual Int_t GetListSize () const
 
TObject * GetMother () const
 
virtual TDataSetGetParent () const
 
virtual TString Path () const
 return the full path of this data set
 
virtual EDataSetPass Pass (EDataSetPass(*callback)(TDataSet *), Int_t depth=0)
 
virtual EDataSetPass Pass (EDataSetPass(*callback)(TDataSet *, void *), void *user, Int_t depth=0)
 
virtual void PrintContents (Option_t *opt="") const
 
virtual Int_t Purge (Option_t *opt="")
 
virtual void Remove (TDataSet *set)
 Remiove the "set" from this TDataSet.
 
virtual TDataSetRemoveAt (Int_t idx)
 
virtual void SetMother (TDataSet *parent=0)
 
virtual void SetParent (TDataSet *parent=0)
 
virtual void SetWrite ()
 
virtual void Shunt (TDataSet *newParent=0)
 
virtual void Sort ()
 Sort recursively all members of the TDataSet with TList::Sort method.
 
virtual Bool_t IsEmpty () const
 return kTRUE if the "internal" collection has no member
 
virtual Bool_t IsFolder () const
 
virtual Bool_t IsThisDir (const char *dirname, int len=-1, int ignorecase=0) const
 
virtual TDataSetLast () const
 Return the last object in the list. Returns 0 when list is empty.
 
virtual void ls (Option_t *option="") const
 
virtual void ls (Int_t depth) const
 
void Mark ()
 
void UnMark ()
 
void MarkAll ()
 Mark all members of this dataset.
 
void UnMarkAll ()
 UnMark all members of this dataset.
 
void InvertAllMarks ()
 Invert mark bit for all members of this dataset.
 
void Mark (UInt_t flag, EBitOpt reset=kSet)
 
virtual TDataSetNext () const
 
virtual TDataSetPrev () const
 
virtual void Update ()
 
virtual void Update (TDataSet *set, UInt_t opt=0)
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 

Protected Member Functions

virtual void PaintShape (Option_t *option)
 
 TVolumeView (TVolumeView &viewNode)
 to be documented
 
- Protected Member Functions inherited from TDataSet
virtual void SetMother (TObject *mother)
 
 TDataSet (const char *name, const char *title)
 
void AddMain (TDataSet *set)
 add data set to main data set
 
TDataSetGetRealParent ()
 return real parent
 
void MakeCollection ()
 Create the internal container at once if any.
 

Protected Attributes

TList * fListOfShapes
 
- Protected Attributes inherited from TObjectSet
TObject * fObj
 
- Protected Attributes inherited from TDataSet
TDataSetfParent
 
TSeqCollection * fList
 

Additional Inherited Members

- Public Types inherited from TDataSet
enum  EDataSetPass {
  kContinue, kPrune, kStop, kUp,
  kStruct, kAll, kRefs, kMarked
}
 
enum  ESetBits { kMark = BIT(22), kArray = BIT(20) }
 
enum  EBitOpt { kSet = kTRUE, kReset = kFALSE }
 
- Static Public Member Functions inherited from TObjectSet
static TObjectSetinstance ()
 
- Static Public Member Functions inherited from TDataSet
static TDataSetGetMainSet ()
 return pointer to the main dataset
 
static TDataSetinstance ()
 
- Protected Types inherited from TObjectSet
enum  EOwnerBits { kIsOwner = BIT(23) }
 
- Static Protected Member Functions inherited from TDataSet
static EDataSetPass SortIt (TDataSet *ds)
 
static EDataSetPass SortIt (TDataSet *ds, void *user)
 
- Static Protected Attributes inherited from TDataSet
static TDataSetfgMainSet = &mainSet
 

Detailed Description

Definition at line 26 of file TVolumeView.h.

Constructor & Destructor Documentation

TVolumeView::TVolumeView ( TVolume pattern,
Int_t  maxDepLevel = 0,
const TVolumePosition nodePosition = 0,
EDataSetPass  iopt = kMarked,
TVolumeView rootVolume = 0 
)

Creates TVolumeView (view) with a topology similar with TVolume *pattern

Parameters:

pattern - the pattern dataset iopt = kStruct - clone only my structural links kAll - clone all links kRefs - clone only refs kMarked - clone marked (not implemented yet) only

All new-created sets become the structural ones anyway.

std::cout << "ctor for " << GetName() << " - " << GetTitle() << std::endl;

Definition at line 235 of file TVolumeView.cxx.

References TObjectSet::DoOwner(), TVolume::GetIdentity(), TObjectSet::SetObject(), and TVolumeView().

Member Function Documentation

TVolume * TVolumeView::AddNode ( TVolume node)
virtual

Add the TVolume in the Tnode data-structure refered by this TVolumeView object Return TVolume * the input TVolume * was attached to

Definition at line 399 of file TVolumeView.cxx.

Int_t TVolumeView::DistancetoPrimitive ( Int_t  px,
Int_t  py 
)
virtual

Compute distance from point px,py to a TVolumeView.

Compute the closest distance of approach from point px,py to the position of this node. The distance is computed in pixels units.

It is restricted by 2 levels of TVolumes.

Definition at line 441 of file TVolumeView.cxx.

References TVolume::DistancetoPrimitive(), and TVolumePosition::UpdatePosition().

Int_t TVolumeView::GetGlobalRange ( const TVolumeView rootNode,
Float_t *  globalMin,
Float_t *  globalMax 
)
virtual

Calculate the position of the vertrex of the outlined cube in repect of the given TVolumeView object

Definition at line 576 of file TVolumeView.cxx.

References GetLocalRange().

void TVolumeView::GetLocalRange ( Float_t *  min,
Float_t *  max 
)
virtual

GetRange

Calculates the size of 3 box the node occupies. Return: two floating point arrays with the bound of box surroundind all shapes of this TModeView

Definition at line 612 of file TVolumeView.cxx.

References Paint().

Referenced by GetGlobalRange().

Float_t * TVolumeView::Local2Master ( const Float_t *  local,
Float_t *  master,
const Char_t *  localName,
const Char_t *  masterName = 0,
Int_t  nVector = 1 
)
virtual

calculate transformation master = (M-local->master )*local + (T-local->master ) where M-local->master - rotation matrix 3 x 3 from the master node to the local node T-local->master - trasport vector 3 from the master node to the local node

returns a "master" pointer if transformation has been found otherwise 0;

Definition at line 699 of file TVolumeView.cxx.

References TDataSet::Find(), TVolumeViewIter::GetPosition(), and TVolumePosition::Local2Master().

Float_t * TVolumeView::Local2Master ( const Float_t *  local,
Float_t *  master,
const TVolumeView localNode,
const TVolumeView masterNode = 0,
Int_t  nVector = 1 
)
virtual

calculate transformation master = (M-local->master )*local + (T-local->master ) where M-local->master - rotation matrix 3 x 3 from the master node to the local node T-local->master - trasport vector 3 from the master node to the local node

returns a "master" pointer if transformation has been found otherwise 0;

Definition at line 725 of file TVolumeView.cxx.

References TVolumeViewIter::GetPosition(), and TVolumePosition::Local2Master().

void TVolumeView::Paint ( Option_t *  option = "")
virtual

Paint Referenced node with current parameters.

  • vis = 1 (default) shape is drawn
  • vis = 0 shape is not drawn but its sons may be not drawn
  • vis = -1 shape is not drawn. Its sons are not drawn
  • vis = -2 shape is drawn. Its sons are not drawn

It draw the TVolumeView layers from the iFirst one (form the zero) till iLast one reached.

restrict the levels for "range" option

Definition at line 755 of file TVolumeView.cxx.

References Paint(), PaintShape(), TVolume::PaintShape(), and TVolumePosition::UpdatePosition().

Referenced by Draw(), GetLocalRange(), and Paint().

void TVolumeView::PaintShape ( Option_t *  option)
protectedvirtual

Paint shape of the node To be called from the TObject::Paint method only

Definition at line 813 of file TVolumeView.cxx.

Referenced by Paint().


The documentation for this class was generated from the following files: