Logo ROOT   6.16/01
Reference Guide
TTable3Points.h
Go to the documentation of this file.
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{
19protected:
21
22private:
23 TTable3Points(const TTable3Points&); // Not implemented.
24 TTable3Points &operator=(const TTable3Points&); // Not implemented.
25
26public:
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
int Int_t
Definition: RtypesCore.h:41
char Char_t
Definition: RtypesCore.h:29
unsigned long ULong_t
Definition: RtypesCore.h:51
float Float_t
Definition: RtypesCore.h:53
const char Option_t
Definition: RtypesCore.h:62
#define ClassDef(name, id)
Definition: Rtypes.h:324
virtual const Float_t * GetXYZ(Int_t)
Definition: TTable3Points.h:49
virtual Float_t GetY(Int_t idx) const
Definition: TTable3Points.h:45
~TTable3Points()
to be documented
virtual void SetZColumn(const Char_t *zName)
Definition: TTable3Points.h:37
virtual Float_t GetAnyPoint(Int_t idx, EPointDirection xAxis) const
to be documented
virtual void SetYColumn(const Char_t *yName)
Definition: TTable3Points.h:36
TTable3Points & operator=(const TTable3Points &)
virtual Int_t GetKey(Int_t)
Definition: TTable3Points.h:39
TTable3Points(const TTable3Points &)
virtual void PaintPoints(int, float *, const char *)
Definition: TTable3Points.h:48
virtual Int_t GetTotalKeys()
Definition: TTable3Points.h:38
virtual Float_t GetX(Int_t idx) const
Definition: TTable3Points.h:44
TTable3Points()
to be documented
ULong_t * fColumnOffset
Definition: TTable3Points.h:20
virtual Int_t GetN() const
GetN() returns the number of allocated cells if any.
Definition: TTable3Points.h:52
virtual Int_t SetKeyByValue(Int_t)
Definition: TTable3Points.h:41
virtual void SetXColumn(const Char_t *xName)
Definition: TTable3Points.h:35
virtual Float_t * GetP() const
GetP() returns the pointer to the float point array of points if available The number of the availabl...
Definition: TTable3Points.h:51
virtual void SetAnyColumn(const Char_t *anyName, EPointDirection indx)
to be documented
virtual Int_t SetKeyByIndx(Int_t)
Definition: TTable3Points.h:40
virtual Float_t GetZ(Int_t idx) const
Definition: TTable3Points.h:46