StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Attributes | List of all members
TPointsArray3D Class Reference
Inheritance diagram for TPointsArray3D:

Public Member Functions

 TPointsArray3D ()
 3-D PolyLine default constructor.
 
 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)
 to be documented
 
virtual ~TPointsArray3D ()
 3-D PolyLine default destructor.
 
virtual void Copy (TObject &points) const
 Copy this TPointsArray3D to another.
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to one event.
 
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
 List this 3-D polyline with its attributes.
 
virtual void PaintPoints (Int_t, Float_t *, Option_t *)
 
virtual void Print (Option_t *option="") const
 Dump this 3-D polyline with its attributes.
 
virtual Int_t SetLastPosition (Int_t idx)
 to be documented
 
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
 

Protected Attributes

Int_t fN
 
Float_t * fP
 
TString fOption
 
UInt_t fGLList
 
Int_t fLastPoint
 

Detailed Description

Definition at line 27 of file TPointsArray3D.h.

Constructor & Destructor Documentation

TPointsArray3D::TPointsArray3D ( Int_t  n,
Option_t *  option = "" 
)

3-D PolyLine normal constructor without initialisation. If n < 0 the default size (2 points) is set.

Definition at line 77 of file TPointsArray3D.cxx.

TPointsArray3D::TPointsArray3D ( Int_t  n,
Float_t *  p,
Option_t *  option = "" 
)

3-D Point3D normal constructor. If n < 0 the default size (2 points) is set.

Definition at line 95 of file TPointsArray3D.cxx.

TPointsArray3D::TPointsArray3D ( Int_t  n,
Float_t *  x,
Float_t *  y,
Float_t *  z,
Option_t *  option = "" 
)

3-D PolyLine normal constructor. If n < 0 the default size (2 points) is set.

Definition at line 119 of file TPointsArray3D.cxx.

Member Function Documentation

Int_t TPointsArray3D::DistancetoPrimitive ( Int_t  px,
Int_t  py 
)
virtual

Compute distance from point px,py to a 3-D points.

Compute the closest distance of approach from point px,py to each segment of the polyline. Returns when the distance found is below DistanceMaximum. The distance is computed in pixels units.

Definition at line 188 of file TPointsArray3D.cxx.

Int_t TPointsArray3D::SetPoint ( Int_t  n,
Float_t  x,
Float_t  y,
Float_t  z 
)
virtual

Initialize one point of the 3-D polyline. if n is more then the current TPointsArray3D size (n > fN) - re-allocate this. The new size of the object will be fN += min(10,fN/4).

return the total number of points introduced.

Definition at line 263 of file TPointsArray3D.cxx.

Int_t TPointsArray3D::SetPoints ( Int_t  n,
Float_t *  p = 0,
Option_t *  option = "" 
)
virtual

Set new values for this 3-D polyline. return the total number of points introduced.

Definition at line 288 of file TPointsArray3D.cxx.


The documentation for this class was generated from the following files: