Logo ROOT   6.16/01
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
18class TObjArray;
19class TVolumeView;
20
22private:
23protected:
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);
29public:
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
int Int_t
Definition: RtypesCore.h:41
char Char_t
Definition: RtypesCore.h:29
bool Bool_t
Definition: RtypesCore.h:59
double Double_t
Definition: RtypesCore.h:55
#define ClassDef(name, id)
Definition: Rtypes.h:324
const Bool_t kIterForward
Definition: TCollection.h:40
virtual TDataSet * operator[](const Char_t *path)
operator [] returns the pointer to the TDataSet if it does contain any data (TTable for example)
virtual Bool_t Notify()
This method must be overridden to handle object notification.
Definition: TDataSetIter.h:110
An array of TObjects.
Definition: TObjArray.h:37
Manages a detector rotation matrix.
Definition: TRotMatrix.h:28
virtual TVolumePosition * SetPositionAt(TVolume *node, Double_t x=0, Double_t y=0, Double_t z=0, TRotMatrix *matrix=0)
to be documented
void ResetPosition(Int_t level=0, TVolumePosition *newPosition=0)
to be documented
~TVolumeViewIter()
to be documented
virtual TDataSet * operator[](const Char_t *path)
operator [] returns the pointer to the TDataSet if it does contain any data (TTable for example)
TObjArray * fPositions
TVolumeViewIter(TVolumeView *view, Int_t depth=1, Bool_t dir=kIterForward)
to be documented
virtual void Reset(TDataSet *l=0, Int_t depth=0)
to be documented
virtual const TVolumePosition * GetPosition(Int_t level=0) const
to be documented
TVolumePosition * UpdateTempMatrix(TVolumePosition *curPosition)
Pick the "old" position by pieces.
virtual Bool_t Notify()
This method must be overridden to handle object notification.
Double_t y[n]
Definition: legend1.C:17
Double_t x[n]
Definition: legend1.C:17
auto * l
Definition: textangle.C:4