12 #ifndef ROOT_TTablePoints
13 #define ROOT_TTablePoints
15 #include "TPoints3DABC.h"
16 #include "TTableSorter.h"
28 virtual void SetTablePointer(
void *table);
35 virtual Int_t GetLastPosition()
const;
36 virtual Float_t GetX(Int_t idx)
const = 0;
37 virtual Float_t GetY(Int_t idx)
const = 0;
38 virtual Float_t GetZ(Int_t idx)
const = 0;
39 virtual void *GetTable();
40 virtual Option_t *GetOption()
const {
return 0;}
41 virtual Int_t Indx(Int_t sortedIndx)
const;
42 virtual Int_t SetLastPosition(Int_t idx);
43 virtual void SetOption(Option_t *){;}
44 virtual Int_t SetPoint(Int_t, Float_t, Float_t, Float_t ){
return -1;}
45 virtual Int_t SetPoints(Int_t , Float_t *, Option_t *){
return -1;}
46 virtual Int_t Size()
const;
52 inline Int_t TTablePoints::Indx(Int_t sortedIndx)
const
53 {
return fTableSorter?fTableSorter->
GetIndex(fFirstRow+sortedIndx):-1;}
56 inline void *TTablePoints::GetTable(){
60 if (t) ret = t->GetArray();
65 inline Int_t TTablePoints::Size()
const {
return fSize;}
67 inline Int_t TTablePoints::GetLastPosition()
const {
return Size()-1;}
70 inline Int_t TTablePoints::SetLastPosition(Int_t idx)
72 Int_t pos = GetLastPosition();
73 fSize = TMath::Min(pos,idx)+1;
TTablePoints()
to be documented
Int_t GetIndex(UInt_t sortedIndex) const
returns the original index of the row by its sorted index
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
virtual TTable * GetTable() const
to be documented