ROOT logo
ROOT » GRAF3D » G3D » TPointSet3D

class TPointSet3D: public TPolyMarker3D, public TAttBBox


 TPolyMarker3D using TPointSet3DGL for direct OpenGL rendering.
 Supports only elementary marker types:
 4, 20, 24 : round points, size in pixels;
   2, 3, 5 : crosses, size in scene units;
        28 : as above, line width 2 pixels;
 all other : square points, size in pixels.

 Marker-size (from TAttMarker) is multiplied by 5!

 An identification of type TObject* can be assigned to each point
 via SetPointId() method. Set the fOwnIds flag if the ids are owned
 by the point-set and should be deleted when pointset is cleared or
 destructed.

 Copy-constructor and assignment operator COPIES the ids if the are
 not owned and CLONES them if they are owned.

 The ids are not streamed.

Function Members (Methods)

public:
TPointSet3D()
TPointSet3D(const TPointSet3D& t)
TPointSet3D(Int_t n, Marker_t m = 1, Option_t* opt = "")
TPointSet3D(Int_t n, Float_t* p, Marker_t m = 1, Option_t* opt = "")
TPointSet3D(Int_t n, Double_t* p, Marker_t m = 1, Option_t* opt = "")
virtual~TPointSet3D()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
Float_t*TAttBBox::AssertBBox()
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
voidClearIds()
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidComputeBBox()
virtual voidTPolyMarker3D::Copy(TObject& polymarker) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTPolyMarker3D::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTPolyMarker3D::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTPolyMarker3D::DrawPolyMarker(Int_t n, Float_t* p, Marker_t marker, Option_t* option = "")
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 voidTPolyMarker3D::ExecuteEvent(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
Float_t*TAttBBox::GetBBox()
Bool_tTAttBBox::GetBBoxOK() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual Int_tTPolyMarker3D::GetLastPoint() const
virtual Color_tTAttMarker::GetMarkerColor() const
virtual Size_tTAttMarker::GetMarkerSize() const
virtual Style_tTAttMarker::GetMarkerStyle() const
virtual Int_tTPolyMarker3D::GetN() const
virtual const char*TPolyMarker3D::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TPolyMarker3D::GetOption() const
Bool_tGetOwnIds() const
virtual Float_t*TPolyMarker3D::GetP() const
virtual voidTPolyMarker3D::GetPoint(Int_t n, Float_t& x, Float_t& y, Float_t& z) const
virtual voidTPolyMarker3D::GetPoint(Int_t n, Double_t& x, Double_t& y, Double_t& z) const
TObject*GetPointId(Int_t n) const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() 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 voidTPolyMarker3D::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Int_tTPolyMarker3D::Merge(TCollection* list)
virtual voidTAttMarker::Modify()
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)
TPointSet3D&operator=(const TPointSet3D& t)
virtual voidTPolyMarker3D::Paint(Option_t* option = "")
static voidTPolyMarker3D::PaintH3(TH1* h, Option_t* option)
virtual voidPointSelected(Int_t n)
virtual voidTObject::Pop()
virtual voidTPolyMarker3D::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidTAttMarker::ResetAttMarker(Option_t* toption = "")
voidTAttBBox::ResetBBox()
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTAttMarker::SaveMarkerAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1, Int_t sizdef = 1)
virtual voidTPolyMarker3D::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 voidTAttMarker::SetMarkerAttributes()MENU
virtual voidTAttMarker::SetMarkerColor(Color_t tcolor = 1)
virtual voidTAttMarker::SetMarkerSize(Size_t msize = 1)
virtual voidTAttMarker::SetMarkerStyle(Style_t mstyle = 1)
virtual voidTPolyMarker3D::SetName(const char* name)MENU
virtual Int_tTPolyMarker3D::SetNextPoint(Double_t x, Double_t y, Double_t z)MENU
static voidTObject::SetObjectStat(Bool_t stat)
voidSetOwnIds(Bool_t o)
voidTPolyMarker3D::SetPoint(Int_t n, Double_t x, Double_t y, Double_t z)MENU
voidSetPointId(TObject* id)
voidSetPointId(Int_t n, TObject* id)
virtual voidTPolyMarker3D::SetPolyMarker(Int_t n, Float_t* p, Marker_t marker, Option_t* option = "")
virtual voidTPolyMarker3D::SetPolyMarker(Int_t n, Double_t* p, Marker_t marker, Option_t* option = "")
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTPolyMarker3D::Size() const
virtual voidTAtt3D::Sizeof3D() 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:
voidTAttBBox::AssertBBoxExtents(Float_t epsilon = 0.005)
voidTAttBBox::BBoxCheckPoint(const Float_t* p)
voidTAttBBox::BBoxCheckPoint(Float_t x, Float_t y, Float_t z)
voidTAttBBox::BBoxClear()
voidTAttBBox::BBoxInit(Float_t infinity = 1e6)
voidTAttBBox::BBoxZero(Float_t epsilon = 0, Float_t x = 0, Float_t y = 0, Float_t z = 0)
voidCopyIds(const TPointSet3D& t)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

protected:
Float_t*TAttBBox::fBBox! Dynamic Float_t[6] X(min,max), Y(min,max), Z(min,max)
TRefArrayfIdsUser-provided point identifications
Int_tTPolyMarker3D::fLastPointThe index of the last filled point
Color_tTAttMarker::fMarkerColorMarker color index
Size_tTAttMarker::fMarkerSizeMarker size
Style_tTAttMarker::fMarkerStyleMarker style
Int_tTPolyMarker3D::fNnumber of points
TStringTPolyMarker3D::fNamename of polymarker
TStringTPolyMarker3D::fOptionoptions
Bool_tfOwnIdsFlag specifying id-objects are owned by the point-set
Float_t*TPolyMarker3D::fP[3*fN] Array of X,Y,Z coordinates

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TPointSet3D(const TPointSet3D& t)
 Copy constructor.
~TPointSet3D()
 Destructor.
void CopyIds(const TPointSet3D& t)
 Copy id objects from point-set 't'.
TPointSet3D& operator=(const TPointSet3D& t)
 Assignement operator.
void ComputeBBox()
 Compute the bounding box of this points set.
void SetPointId(TObject* id)
 Set id of last point.
 Use this method if you also use TPolyMarker3D::SetNextPoint().
void SetPointId(Int_t n, TObject* id)
 Set id of point n.
void ClearIds()
 Clears the id-array. If ids are owned the TObjects are deleted.
void PointSelected(Int_t n)
 This virtual method is called from TPointSet3DGL when a point is
 selected.
 At this point it just prints out n and id of the point (if it exists).
 To make something useful out of this do:
  a) subclass and re-implement this method;
  b) extend this class to include TExec or some other kind of callback.
void Streamer(TBuffer& b)
 Stream an object of class TPointSet3D.
TPointSet3D()
{ fName="TPointSet3D"; }
TPointSet3D(Int_t n, Marker_t m = 1, Option_t* opt = "")
{ fName="TPointSet3D"; }
TPointSet3D(Int_t n, Float_t *p, Marker_t m=1, Option_t *opt="")
{ fName="TPointSet3D"; }
TPointSet3D(Int_t n, Double_t *p, Marker_t m=1, Option_t *opt="")
{ fName="TPointSet3D"; }
TObject* GetPointId(Int_t n) const
{ return fIds.At(n); }
Bool_t GetOwnIds() const
{ return fOwnIds; }
void SetOwnIds(Bool_t o)
{ fOwnIds = o; }