Logo ROOT   6.10/09
Reference Guide
TVolumeViewIter.h
Go to the documentation of this file.
1 // @(#)root/table:$Id$
2 // Author: Valery Fine(fine@bnl.gov) 25/01/99
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TVolumeViewIter
13 #define ROOT_TVolumeViewIter
14 
15 #include "TDataSetIter.h"
16 #include "TVolumePosition.h"
17 
18 class TObjArray;
19 class TVolumeView;
20 
21 class TVolumeViewIter : public TDataSetIter {
22 private:
23 protected:
24  friend class TVolumeView;
25  TObjArray *fPositions; // the array of the Node position in the absolute system
26  virtual const TVolumePosition *GetPosition(Int_t level=0) const;
27  virtual TVolumePosition *SetPositionAt(TVolume *node,Double_t x=0, Double_t y=0, Double_t z=0, TRotMatrix *matrix=0);
28  virtual TVolumePosition *SetPositionAt(TVolumePosition &curPosition);
29 public:
32  virtual Bool_t Notify();
33  virtual void Notify(TDataSet *set);
34  virtual void Reset(TDataSet *l=0,Int_t depth=0);
35 
36  virtual TDataSet *operator[](const Char_t *path);
38 
40  void ResetPosition(Int_t level=0, TVolumePosition *newPosition=0);
41  ClassDef(TVolumeViewIter,0) // Volume view iterator
42 };
43 
46 {return TDataSetIter::operator[](path); }
47 
48 #endif
49 
virtual Bool_t Notify()
This method must be overridden to handle object notification.
Definition: TDataSetIter.h:110
TVolumePosition * UpdateTempMatrix(TVolumePosition *curPosition)
Pick the "old" position by pieces.
void ResetPosition(Int_t level=0, TVolumePosition *newPosition=0)
to be documented
An array of TObjects.
Definition: TObjArray.h:37
~TVolumeViewIter()
to be documented
virtual void Reset(TDataSet *l=0, Int_t depth=0)
to be documented
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
Double_t x[n]
Definition: legend1.C:17
#define ClassDef(name, id)
Definition: Rtypes.h:297
virtual Bool_t Notify()
This method must be overridden to handle object notification.
TObjArray * fPositions
const Bool_t kIterForward
Definition: TCollection.h:37
virtual TDataSet * operator[](const Char_t *path)
operator [] returns the pointer to the TDataSet if it does contain any data (TTable for example) ...
Manages a detector rotation matrix.
Definition: TRotMatrix.h:28
TLine * l
Definition: textangle.C:4
double Double_t
Definition: RtypesCore.h:55
Double_t y[n]
Definition: legend1.C:17
virtual TDataSet * operator[](const Char_t *path)
operator [] returns the pointer to the TDataSet if it does contain any data (TTable for example) ...
you should not use this method at all Int_t Int_t z
Definition: TRolke.cxx:630
char Char_t
Definition: RtypesCore.h:29
virtual const TVolumePosition * GetPosition(Int_t level=0) const
to be documented
TVolumeViewIter(TVolumeView *view, Int_t depth=1, Bool_t dir=kIterForward)
to be documented
virtual TVolumePosition * SetPositionAt(TVolume *node, Double_t x=0, Double_t y=0, Double_t z=0, TRotMatrix *matrix=0)
to be documented