#ifndef ROOT_TPointsArray3D
#define ROOT_TPointsArray3D
#include "TPoints3DABC.h"
#ifndef ROOT_TString
#include "TString.h"
#endif
class TPointsArray3D : public TPoints3DABC {
protected:
Int_t fN;
Float_t *fP;
TString fOption;
UInt_t fGLList;
Int_t fLastPoint;
public:
TPointsArray3D();
TPointsArray3D(Int_t n, Option_t *option="");
TPointsArray3D(Int_t n, Float_t *p, Option_t *option="");
TPointsArray3D(Int_t n, Float_t *x, Float_t *y, Float_t *z, Option_t *option="");
TPointsArray3D(const TPointsArray3D &points);
virtual ~TPointsArray3D();
virtual void Copy(TObject &points) const;
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
virtual Int_t GetLastPosition() const;
virtual Int_t GetN() const;
virtual Float_t *GetP() const;
virtual Float_t GetX(Int_t idx) const;
virtual Float_t GetY(Int_t idx) const;
virtual Float_t GetZ(Int_t idx) const;
virtual Float_t *GetXYZ(Float_t *xyz,Int_t idx,Int_t num=1) const;
virtual const Float_t *GetXYZ(Int_t idx);
virtual Option_t *GetOption() const ;
virtual Bool_t Is3D() const;
virtual void ls(Option_t *option="") const;
virtual void PaintPoints(Int_t , Float_t *,Option_t *){;}
virtual void Print(Option_t *option="") const;
virtual Int_t SetLastPosition(Int_t idx);
virtual void SetOption(Option_t *option="");
virtual Int_t SetPoint(Int_t point, Float_t x, Float_t y, Float_t z);
virtual Int_t SetPoints(Int_t n, Float_t *p=0, Option_t *option="");
virtual Int_t Size() const;
ClassDef(TPointsArray3D,1)
};
inline Int_t TPointsArray3D::GetLastPosition() const {return fLastPoint;}
inline Int_t TPointsArray3D::GetN() const {return fN;}
inline Float_t *TPointsArray3D::GetP() const {return fP;}
inline Float_t TPointsArray3D::GetX(Int_t idx) const {return fP[3*idx+0];}
inline Float_t TPointsArray3D::GetY(Int_t idx) const {return fP[3*idx+1];}
inline Float_t TPointsArray3D::GetZ(Int_t idx) const {return fP[3*idx+2];}
inline const Float_t *TPointsArray3D::GetXYZ(Int_t idx) {return &fP[3*idx+0];}
inline Float_t *TPointsArray3D::GetXYZ(Float_t *xyz,Int_t idx,Int_t num) const
{return (Float_t *)memcpy(xyz,&fP[3*idx],3*num*sizeof(Float_t));}
inline Option_t *TPointsArray3D::GetOption() const {return fOption.Data();}
inline Bool_t TPointsArray3D::Is3D() const {return kTRUE;}
inline void TPointsArray3D::SetOption(Option_t *option) {fOption = option;}
inline Int_t TPointsArray3D::Size() const {return fLastPoint+1;}
#endif
Last change: Wed Jun 25 08:50:46 2008
Last generated: 2008-06-25 08:50
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.