StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
TTable3Points.h
1 // @(#)root/table:$Id$
2 // Author: Valery Fine 10/05/99 (E-mail: fine@bnl.gov)
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_TTable3Points
13 #define ROOT_TTable3Points
14 
15 #include "TTablePoints.h"
16 
18 {
19 protected:
20  ULong_t *fColumnOffset;
21 
22 private:
23  TTable3Points(const TTable3Points&); // Not implemented.
24  TTable3Points &operator=(const TTable3Points&); // Not implemented.
25 
26 public:
27  enum EPointDirection {kXPoints,kYPoints,kZPoints,kTotalSize};
28  TTable3Points();
29  TTable3Points(TTableSorter *sorter,const void *key, const Char_t *xName="x",
30  const Char_t *yName="y", const Char_t *zName="z",Option_t *opt="");
31  TTable3Points(TTableSorter *sorter,Int_t keyIndex, const Char_t *xName="x",
32  const Char_t *yName="y", const Char_t *zName="z",Option_t *opt="");
34  virtual void SetAnyColumn(const Char_t *anyName, EPointDirection indx);
35  virtual void SetXColumn(const Char_t *xName){ SetAnyColumn(xName,kXPoints);}
36  virtual void SetYColumn(const Char_t *yName){ SetAnyColumn(yName,kYPoints);}
37  virtual void SetZColumn(const Char_t *zName){ SetAnyColumn(zName,kZPoints);}
38  virtual Int_t GetTotalKeys(){ return -1;}
39  virtual Int_t GetKey(Int_t ){return -1;}
40  virtual Int_t SetKeyByIndx(Int_t ){return -1;}
41  virtual Int_t SetKeyByValue(Int_t){return -1;}
42 
43  virtual Float_t GetAnyPoint(Int_t idx, EPointDirection xAxis) const;
44  virtual Float_t GetX(Int_t idx) const {return GetAnyPoint(idx,kXPoints);}
45  virtual Float_t GetY(Int_t idx) const {return GetAnyPoint(idx,kYPoints);}
46  virtual Float_t GetZ(Int_t idx) const {return GetAnyPoint(idx,kZPoints);}
47  //-- abstract methods
48  virtual void PaintPoints(int, float*, const char*) {}
49  virtual const Float_t *GetXYZ(Int_t) {return 0;}
50  virtual Float_t *GetXYZ(Float_t *xyz,Int_t idx , Int_t num=1 )const;
51  virtual Float_t *GetP() const {return 0;}
52  virtual Int_t GetN() const {return -1;}
53 
54  //
55  ClassDef(TTable3Points,0) //A 3-D Points
56 };
57 
58 #endif
59 
~TTable3Points()
to be documented
virtual Float_t GetAnyPoint(Int_t idx, EPointDirection xAxis) const
to be documented
virtual void SetAnyColumn(const Char_t *anyName, EPointDirection indx)
to be documented
TTable3Points()
to be documented