ROOT » MISC » TABLE » TPointsArray3D

class TPointsArray3D: public TPoints3DABC

 TPointsArray3D is an abstract class of the array of 3-dimensional points.
 It has 4 different constructors.

 This class has no implementation for Paint, Draw, and SavePrimitive methods

   First one, without any parameters TPointsArray3D(), we call 'default
 constructor' and it's used in a case that just an initialisation is
 needed (i.e. pointer declaration).

                 TPointsArray3D *pl1 = new TPointsArray3D;

   Second one is 'normal constructor' with, usually, one parameter
 n (number of points), and it just allocates a space for the points.

                 TPointsArray3D pl1(150);

   Third one allocates a space for the points, and also makes
 initialisation from the given array.

                 TPointsArray3D pl1(150, pointerToAnArray);

   Fourth one is, almost, similar to the constructor above, except
 initialisation is provided with three independent arrays (array of
 x coordinates, y coordinates and z coordinates).

                 TPointsArray3D pl1(150, xArray, yArray, zArray);

Function Members (Methods)

voidTObject::AbstractMethod(const char* method) const
virtual Int_tTPoints3DABC::Add(Float_t x, Float_t y, Float_t z)
virtual Int_tTPoints3DABC::AddLast(Float_t x, Float_t y, Float_t z)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidCopy(TObject& points) const
virtual voidTObject::Delete(Option_t* option = "")MENU
static Int_tTPoints3DABC::DistancetoLine(Int_t px, Int_t py, Float_t x1, Float_t y1, Float_t x2, Float_t y2, Int_t lineWidth = 1)
virtual Int_tDistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual Int_tGetLastPosition() const
virtual Int_tGetN() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*GetOption() const
virtual Float_t*GetP() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Float_tGetX(Int_t idx) const
virtual const Float_t*GetXYZ(Int_t idx)
virtual Float_t*GetXYZ(Float_t* xyz, Int_t idx, Int_t num = 1) const
virtual Float_tGetY(Int_t idx) const
virtual Float_tGetZ(Int_t idx) const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual Bool_tIs3D() const
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TPointsArray3D&operator=(const TPointsArray3D&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidPaintPoints(Int_t, Float_t*, Option_t*)
virtual voidTObject::Pop()
virtual voidPrint(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual Int_tSetLastPosition(Int_t idx)
virtual Int_tTPoints3DABC::SetNextPoint(Float_t x, Float_t y, Float_t z)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidSetOption(Option_t* option = "")
virtual Int_tSetPoint(Int_t point, Float_t x, Float_t y, Float_t z)MENU
virtual Int_tSetPoints(Int_t n, Float_t* p = 0, Option_t* option = "")
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp) const
virtual Int_tSize() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
TPointsArray3D(const TPointsArray3D& points)
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 = "")
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const

Data Members

static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TObject::EStatusBitsTObject::kHasUUID
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static TObject::(anonymous)TObject::kWriteDelete
static TObject::(anonymous)TObject::kZombie
UInt_tfGLListThe list number for OpenGL view
Int_tfLastPointThe index of the last filled point
Int_tfNNumber of points
Float_t*fPArray of 3-D coordinates (x,y,z)

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

-*-*3-D PolyLine default constructor
*-*                      ================================
TPointsArray3D(Int_t n, Option_t* option = "")
3-D PolyLine normal constructor without initialisation*-
*-*        ======================================================
*-*  If n < 0 the default size (2 points) is set
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
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
-*3-D PolyLine default destructor
*-*                      ===============================
TPointsArray3D(const TPointsArray3D& points)
to be documented
void Copy(TObject& points) const
-*Copy this TPointsArray3D to another 
*-*                      ==============================
Int_t DistancetoPrimitive(Int_t px, Int_t py)
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.
void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event
*-*                =========================================
void ls(Option_t* option = "") const
-*-*-*List this 3-D polyline with its attributes
*-*                ==========================================
void Print(Option_t* option = "") const
-*Dump this 3-D polyline with its attributes
*-*                ==========================================
Int_t SetLastPosition(Int_t idx)
to be documented
Int_t SetPoint(Int_t point, Float_t x, Float_t y, Float_t z)
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
Int_t SetPoints(Int_t n, Float_t* p = 0, Option_t* option = "")
Set new values for this 3-D polyline
*-*                  ====================================
*-* return the total number of points introduced
void Streamer(TBuffer& )
Stream a class object*-*-*-*-*-*-*-
*-*              =========================================
Int_t GetLastPosition() const
{return fLastPoint;}
Int_t GetN() const
{return fN;}
Float_t * GetP() const
{return fP;}
Float_t GetX(Int_t idx) const
{return fP[3*idx+0];}
Float_t GetY(Int_t idx) const
{return fP[3*idx+1];}
Float_t GetZ(Int_t idx) const
{return fP[3*idx+2];}
const Float_t * GetXYZ(Int_t idx)
{return &fP[3*idx+0];}
Float_t * GetXYZ(Float_t* xyz, Int_t idx, Int_t num = 1) const
{return (Float_t *)memcpy(xyz,&fP[3*idx],3*num*sizeof(Float_t));}
Option_t * GetOption() const
{return fOption.Data();}
Bool_t Is3D() const
{return kTRUE;}
void SetOption(Option_t* option = "")
{fOption = option;}
Int_t Size() const
{return fLastPoint+1;}
void PaintPoints(Int_t , Float_t* , Option_t* )