ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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:39
~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:254
virtual Bool_t Notify()
This method must be overridden to handle object notification.
TObjArray * fPositions
const Bool_t kIterForward
Definition: TCollection.h:43
Float_t z[5]
Definition: Ifit.C:16
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:30
TLine * l
Definition: textangle.C:4
virtual const TVolumePosition * GetPosition(Int_t level=0) const
to be documented
double Double_t
Definition: RtypesCore.h:55
void dir(char *path=0)
Definition: rootalias.C:30
Double_t y[n]
Definition: legend1.C:17
tuple view
Definition: tornado.py:20
virtual TDataSet * operator[](const Char_t *path)
operator [] returns the pointer to the TDataSet if it does contain any data (TTable for example) ...
char Char_t
Definition: RtypesCore.h:29
TVolumeViewIter(TVolumeView *view, Int_t depth=1, Bool_t dir=kIterForward)
virtual TVolumePosition * SetPositionAt(TVolume *node, Double_t x=0, Double_t y=0, Double_t z=0, TRotMatrix *matrix=0)
to be documented