12 #ifndef ROOT_TPoints3D
13 #define ROOT_TPoints3D
23 #include "TPoints3DABC.h"
33 TPoints3DABC *fPoints;
35 Bool_t IsOwner()
const {
return TestBit(kIsOwner);}
36 Bool_t
DoOwner(Bool_t done=kTRUE);
41 TPoints3D(Int_t n, Float_t *p, Option_t *option=
"");
42 TPoints3D(Int_t n, Float_t *x, Float_t *y, Float_t *z, Option_t *option=
"");
46 virtual void Copy(TObject &points)
const;
47 virtual void Delete(Option_t *);
49 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
50 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
51 virtual Int_t GetLastPosition()
const;
52 virtual Int_t GetN()
const;
53 virtual Float_t *GetP()
const;
54 virtual Float_t GetX(Int_t idx)
const;
55 virtual Float_t GetY(Int_t idx)
const;
56 virtual Float_t GetZ(Int_t idx)
const;
57 virtual Float_t *GetXYZ(Float_t *xyz,Int_t idx,Int_t num=1)
const;
58 virtual const Float_t *GetXYZ(Int_t idx);
59 virtual Option_t *GetOption()
const ;
60 virtual void ls(Option_t *option=
"")
const;
61 virtual void PaintPoints(Int_t, Float_t *,Option_t *){;}
62 virtual void Print(Option_t *option=
"")
const;
63 virtual Int_t SetLastPosition(Int_t idx);
64 virtual void SetOption(Option_t *option=
"");
65 virtual Int_t SetPoint(Int_t point, Float_t x, Float_t y, Float_t z);
66 virtual Int_t SetPoints(Int_t n, Float_t *p=0, Option_t *option=
"");
67 virtual Int_t Size()
const;
73 inline Int_t TPoints3D::DistancetoPrimitive(Int_t px, Int_t py) {
return fPoints?fPoints->DistancetoPrimitive(px,py):99999;}
74 inline Int_t TPoints3D::GetLastPosition()
const {
return fPoints?fPoints->GetLastPosition():0;}
75 inline Int_t TPoints3D::GetN()
const {
return fPoints?fPoints->GetN():0;}
76 inline Float_t *TPoints3D::GetP()
const {
return fPoints?fPoints->GetP():0;}
77 inline Float_t TPoints3D::GetX(Int_t idx)
const {
return fPoints?fPoints->GetX(idx):0;}
78 inline Float_t TPoints3D::GetY(Int_t idx)
const {
return fPoints?fPoints->GetY(idx):0;}
79 inline Float_t TPoints3D::GetZ(Int_t idx)
const {
return fPoints?fPoints->GetZ(idx):0;}
80 inline const Float_t *TPoints3D::GetXYZ(Int_t idx) {
return fPoints?fPoints->GetXYZ(idx):0;}
81 inline Float_t *TPoints3D::GetXYZ(Float_t *xyz,Int_t idx,Int_t num)
const
82 {
return fPoints?fPoints->GetXYZ(xyz,idx,num):0;}
83 inline Option_t *TPoints3D::GetOption()
const {
return fPoints?fPoints->GetOption():
"";}
84 inline Int_t TPoints3D::SetLastPosition(Int_t idx) {
return fPoints?fPoints->SetLastPosition(idx):0;}
85 inline void TPoints3D::SetOption(Option_t *option){
if (fPoints) fPoints->SetOption(option);}
86 inline Int_t TPoints3D::SetPoint(Int_t point, Float_t x, Float_t y, Float_t z){
return fPoints?fPoints->SetPoint(point,x,y,z):0;}
87 inline Int_t TPoints3D::SetPoints(Int_t n, Float_t *p, Option_t *option){
return fPoints?fPoints->SetPoints(n,p,option):0;}
89 inline Int_t TPoints3D::Size()
const {
return fPoints?fPoints->Size():0;}
virtual void Delete()
Delete only own object.
virtual void Print(Option_t *option="") const
Dump this 3-D polyline with its attributes.
virtual void Copy(TObject &points) const
Copy this TPoints3D to another.
Bool_t DoOwner(Bool_t done=kTRUE)
to be documented
TPoints3D(TPoints3DABC *points=0)
3-D PolyLine default constructor.
virtual void ls(Option_t *option="") const
List this 3-D polyline with its attributes.
virtual ~TPoints3D()
3-D PolyLine default destructor.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.