class TPoints3D: public TPoints3DABC


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

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

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

       Example:
                 TPoints3D *pl1 = new TPoints3D;


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

       Example:
                 TPoints3D pl1(150);


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

       Example:
                 TPoints3D 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).

       Example:
                 TPoints3D pl1(150, xArray, yArray, zArray);

Function Members (Methods)

public:
TPoints3D(TPoints3DABC* points = 0)
TPoints3D(const TPoints3D& points)
TPoints3D(Int_t n, Option_t* option = "")
TPoints3D(Int_t n, Float_t* p, Option_t* option = "")
TPoints3D(Int_t n, Float_t* x, Float_t* y, Float_t* z, Option_t* option = "")
virtual~TPoints3D()
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 voidDelete()
virtual voidDelete(Option_t* opt)
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 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()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static 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)
TPoints3D&operator=(const TPoints3D&)
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(basic_ostream<char,char_traits<char> >& 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, char* parent)
virtual Int_tSize() const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& 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
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
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
Bool_tDoOwner(Bool_t done = kTRUE)
Bool_tIsOwner() const
voidTObject::MakeZombie()

Data Members

public:
enum EOwnerBits { kIsOwner
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
TPoints3DABC*fPoints

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TPoints3D(TPoints3DABC *points)
-*-*3-D PolyLine default constructor
*-*                      ================================
TPoints3D(Int_t n, Option_t* option = "")
3-D PolyLine normal constructor without initialisation*-
*-*        ======================================================
*-*  If n < 0 the default size (2 points) is set
-
TPoints3D(Int_t n, Float_t* p, Option_t* option = "")
-*3-D Point3D normal constructor
*-*                      ===============================
*-*  If n < 0 the default size (2 points) is set
-
TPoints3D(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
-
~TPoints3D()
-*3-D PolyLine default destructor
*-*                      ===============================
TPoints3D(const TPoints3D &point)
to be documented
void Copy(TObject& points) const
-*Copy this TPoints3D to another 
*-*                      ==============================
void Delete(Option_t* opt)
 Delete only own object
Bool_t DoOwner(Bool_t done = kTRUE)
to be documented
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
*-*                ==========================================
void Delete(Option_t* opt)
{ TObject::Delete(opt);}
Int_t DistancetoPrimitive(Int_t px, Int_t py)
{return fPoints?fPoints->DistancetoPrimitive(px,py):99999;}
Int_t GetLastPosition()
{return fPoints?fPoints->GetLastPosition():0;}
Int_t GetN()
{return fPoints?fPoints->GetN():0;}
Float_t * GetP()
{return fPoints?fPoints->GetP():0;}
Float_t GetX(Int_t idx) const
{return fPoints?fPoints->GetX(idx):0;}
Float_t GetY(Int_t idx) const
{return fPoints?fPoints->GetY(idx):0;}
Float_t GetZ(Int_t idx) const
{return fPoints?fPoints->GetZ(idx):0;}
const Float_t * GetXYZ(Int_t idx)
{return fPoints?fPoints->GetXYZ(idx):0;}
Float_t * GetXYZ(Float_t* xyz, Int_t idx, Int_t num = 1) const
{return fPoints?fPoints->GetXYZ(xyz,idx,num):0;}
Option_t * GetOption()
{return fPoints?fPoints->GetOption():"";}
Int_t SetLastPosition(Int_t idx)
{return fPoints?fPoints->SetLastPosition(idx):0;}
void SetOption(Option_t* option = "")
{if (fPoints) fPoints->SetOption(option);}
Int_t SetPoint(Int_t point, Float_t x, Float_t y, Float_t z)
{return fPoints?fPoints->SetPoint(point,x,y,z):0;}
Int_t SetPoints(Int_t n, Float_t* p = 0, Option_t* option = "")
{return fPoints?fPoints->SetPoints(n,p,option):0;}
Int_t Size()
{return fPoints?fPoints->Size():0;}
Bool_t IsOwner()
{return TestBit(kIsOwner);}
void PaintPoints(Int_t , Float_t* , Option_t* )
{;}

Author: Valery Fine(fine@mail.cern.ch) 24/04/99
Last change: root/table:$Id: TPoints3D.h 20882 2007-11-19 11:31:26Z rdm $
Last generated: 2008-06-25 08:50
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

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.