18 #ifndef ROOT_TPointsArray3D
19 #define ROOT_TPointsArray3D
22 #include "TPoints3DABC.h"
40 TPointsArray3D(Int_t n, Float_t *x, Float_t *y, Float_t *z, Option_t *option=
"");
44 virtual void Copy(TObject &points)
const;
46 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
47 virtual Int_t GetLastPosition()
const;
48 virtual Int_t GetN()
const;
49 virtual Float_t *GetP()
const;
50 virtual Float_t GetX(Int_t idx)
const;
51 virtual Float_t GetY(Int_t idx)
const;
52 virtual Float_t GetZ(Int_t idx)
const;
53 virtual Float_t *GetXYZ(Float_t *xyz,Int_t idx,Int_t num=1)
const;
54 virtual const Float_t *GetXYZ(Int_t idx);
55 virtual Option_t *GetOption()
const ;
56 virtual Bool_t Is3D()
const;
57 virtual void ls(Option_t *option=
"")
const;
58 virtual void PaintPoints(Int_t , Float_t *,Option_t *){;}
59 virtual void Print(Option_t *option=
"")
const;
61 virtual void SetOption(Option_t *option=
"");
62 virtual Int_t
SetPoint(Int_t point, Float_t x, Float_t y, Float_t z);
63 virtual Int_t
SetPoints(Int_t n, Float_t *p=0, Option_t *option=
"");
64 virtual Int_t Size()
const;
70 inline Int_t TPointsArray3D::GetLastPosition()
const {
return fLastPoint;}
71 inline Int_t TPointsArray3D::GetN()
const {
return fN;}
72 inline Float_t *TPointsArray3D::GetP()
const {
return fP;}
73 inline Float_t TPointsArray3D::GetX(Int_t idx)
const {
return fP[3*idx+0];}
74 inline Float_t TPointsArray3D::GetY(Int_t idx)
const {
return fP[3*idx+1];}
75 inline Float_t TPointsArray3D::GetZ(Int_t idx)
const {
return fP[3*idx+2];}
76 inline const Float_t *TPointsArray3D::GetXYZ(Int_t idx) {
return &fP[3*idx+0];}
77 inline Float_t *TPointsArray3D::GetXYZ(Float_t *xyz,Int_t idx,Int_t num)
const
78 {
return (Float_t *)memcpy(xyz,&fP[3*idx],3*num*
sizeof(Float_t));}
79 inline Option_t *TPointsArray3D::GetOption()
const {
return fOption.Data();}
80 inline Bool_t TPointsArray3D::Is3D()
const {
return kTRUE;}
81 inline void TPointsArray3D::SetOption(Option_t *option) {fOption = option;}
83 inline Int_t TPointsArray3D::Size()
const {
return fLastPoint+1;}
virtual Int_t SetLastPosition(Int_t idx)
to be documented
virtual ~TPointsArray3D()
3-D PolyLine default destructor.
virtual void ls(Option_t *option="") const
List this 3-D polyline with its attributes.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
virtual Int_t SetPoints(Int_t n, Float_t *p=0, Option_t *option="")
virtual void Print(Option_t *option="") const
Dump this 3-D polyline with its attributes.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
TPointsArray3D()
3-D PolyLine default constructor.
virtual void Copy(TObject &points) const
Copy this TPointsArray3D to another.
virtual Int_t SetPoint(Int_t point, Float_t x, Float_t y, Float_t z)