135 for (
Int_t i=0; i<
n;i++) {
157 if (
fP)
delete []
fP;
202 const Int_t inaxis = 7;
211 if (px < puxmin - inaxis)
return Int_t (dist);
212 if (py > puymin + inaxis)
return Int_t (dist);
213 if (px > puxmax + inaxis)
return Int_t (dist);
214 if (py < puymax - inaxis)
return Int_t (dist);
217 if (!view)
return Int_t(dist);
223 for (i=0;i<size;i++) {
225 x1 =
gPad->XtoAbsPixel(xndc[0]);
226 y1 =
gPad->YtoAbsPixel(xndc[1]);
227 dpoint = (px-
x1)*(px-x1) + (py-y1)*(py-y1);
228 if (dpoint < dist) dist = dpoint;
241 gPad->GetView()->ExecuteRotateView(event, px, py);
251 std::cout << IsA()->GetName() <<
" N=" <<
fN<<
" Option="<<option<<std::endl;
260 std::cout <<
" " << IsA()->GetName() <<
" Printing N=" <<
fN<<
" Option="<<option<<std::endl;
283 if (!
fP || n >=
fN) {
311 if (
fP)
delete []
fP;
326 void TPointsArray3D::Streamer(
TBuffer &
b)
330 TObject::Streamer(b);
340 TObject::Streamer(b);
virtual Int_t SetLastPosition(Int_t idx)
to be documented
double dist(Rotation3D const &r1, Rotation3D const &r2)
virtual void WCtoNDC(const Float_t *pw, Float_t *pn)=0
virtual ~TPointsArray3D()
-*-*-*-*-*-*-*-*-*-*-*-*3-D PolyLine default destructor-*-*-*-*-*-*-*-*-*-*-* *-* ===================...
Abstract class to define Arrays of 3D points.
Buffer base class used for serializing objects.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
-*-*-*-*-*-*-*-*-*Execute action corresponding to one event-*-*-*-*-*-*-*-*-* *-* ===================...
Short_t Min(Short_t a, Short_t b)
virtual Int_t SetPoints(Int_t n, Float_t *p=0, Option_t *option="")
-*-*-*-*-*-*-*-*-*-*Set new values for this 3-D polyline-*-*-*-*-*-*-*-*-*-* *-* ====================...
virtual UInt_t WriteVersion(const TClass *cl, Bool_t useBcnt=kFALSE)=0
virtual void Copy(TObject &object) const
Copy this to obj.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
*-*-*-*-*-*-*Compute distance from point px,py to a 3-D points *-*-*-*-*-*-* *-* ====================...
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
virtual void ReadFastArray(Bool_t *b, Int_t n)=0
virtual void WriteFastArray(const Bool_t *b, Int_t n)=0
virtual void Copy(TObject &points) const
*-*-*-*-*-*-*-*-*-*-*-*-*Copy this TPointsArray3D to another *-*-*-*-*-*-*-*-*-*-*-* *-* ============...
static const double x1[5]
TPointsArray3D()
-*-*-*-*-*-*-*-*-*-*-*-*3-D PolyLine default constructor-*-*-*-*-*-*-*-*-*-* *-* ====================...
virtual void Print(Option_t *option="") const
-*-*-*-*-*-*-*-*-*Dump this 3-D polyline with its attributes-*-*-*-*-*-*-*-* *-* ====================...
virtual void ls(Option_t *option="") const
-*-*-*-*-*-*-*-*-*List this 3-D polyline with its attributes-*-*-*-*-*-* *-* ========================...
Mother of all ROOT objects.
you should not use this method at all Int_t Int_t z
Short_t Max(Short_t a, Short_t b)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
virtual Int_t SetPoint(Int_t point, Float_t x, Float_t y, Float_t z)
-*-*-*-*-*-*-*-*-*Initialize one point of the 3-D polyline-*-*-*-*-*-*-*-*-* *-* ====================...
Double_t Sqrt(Double_t x)
virtual Int_t GetN() const
GetN() returns the number of allocated cells if any.
virtual Int_t Size() const
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0