128 for (
Int_t i=0; i<
n;i++) {
149 if (
fP)
delete []
fP;
158 fN(point.fN),fP(0),fGLList(point.fGLList),fLastPoint(point.fLastPoint)
190 const Int_t inaxis = 7;
199 if (px < puxmin - inaxis)
return Int_t (
dist);
200 if (py > puymin + inaxis)
return Int_t (
dist);
201 if (px > puxmax + inaxis)
return Int_t (
dist);
202 if (py < puymax - inaxis)
return Int_t (
dist);
211 for (i=0;i<size;i++) {
213 x1 =
gPad->XtoAbsPixel(xndc[0]);
214 y1 =
gPad->YtoAbsPixel(xndc[1]);
215 dpoint = (px-
x1)*(px-
x1) + (py-y1)*(py-y1);
228 gPad->GetView()->ExecuteRotateView(event, px, py);
237 std::cout << IsA()->GetName() <<
" N=" <<
fN<<
" Option="<<option<<std::endl;
245 std::cout <<
" " << IsA()->GetName() <<
" Printing N=" <<
fN<<
" Option="<<option<<std::endl;
266 if (!
fP ||
n >=
fN) {
292 if (
fP)
delete []
fP;
306void TPointsArray3D::Streamer(
TBuffer &
b)
310 TObject::Streamer(
b);
314 b.ReadFastArray(
fP,3*
fN);
319 b.WriteVersion(TPointsArray3D::IsA());
320 TObject::Streamer(
b);
323 if (size)
b.WriteFastArray(
fP, 3*size);
static const double x1[5]
Buffer base class used for serializing objects.
Mother of all ROOT objects.
virtual void Copy(TObject &object) const
Copy this to obj.
Abstract class to define Arrays of 3D points.
virtual Int_t Size() const
virtual Int_t SetLastPosition(Int_t idx)
to be documented
virtual void Copy(TObject &points) const
Copy this TPointsArray3D to another.
virtual ~TPointsArray3D()
3-D PolyLine default destructor.
virtual Int_t SetPoint(Int_t point, Float_t x, Float_t y, Float_t z)
Initialize one point of the 3-D polyline.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
virtual Int_t GetN() const
GetN() returns the number of allocated cells if any.
virtual void ls(Option_t *option="") const
List this 3-D polyline with its attributes.
virtual void Print(Option_t *option="") const
Dump this 3-D polyline with its attributes.
virtual Int_t SetPoints(Int_t n, Float_t *p=0, Option_t *option="")
Set new values for this 3-D polyline.
TPointsArray3D()
3-D PolyLine default constructor.
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 WCtoNDC(const Float_t *pw, Float_t *pn)=0
double dist(Rotation3D const &r1, Rotation3D const &r2)
Short_t Max(Short_t a, Short_t b)
Double_t Sqrt(Double_t x)
Short_t Min(Short_t a, Short_t b)