library: libGraf3d
#include "TPolyMarker3D.h"


class description - header file - source file
viewCVS header - viewCVS source

class TPolyMarker3D: public TObject, public TAttMarker, public TAtt3D

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
TPolyMarker3D(const TPolyMarker3D& polymarker)
TPolyMarker3D(Int_t n, Marker_t marker = 1, Option_t* option = "")
TPolyMarker3D(Int_t n, Float_t* p, Marker_t marker = 1, Option_t* option = "")
TPolyMarker3D(Int_t n, Double_t* p, Marker_t marker = 1, Option_t* option = "")
voidTObject::AbstractMethod(const char* method) const
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& polymarker) const
virtual voidTObject::Delete(Option_t* option = "")
virtual Int_tDistancetoPrimitive(Int_t px, Int_t py)
virtual voidDraw(Option_t* option = "")
virtual voidTObject::DrawClass() const
virtual TObject*TObject::DrawClone(Option_t* option = "") const
virtual voidDrawPolyMarker(Int_t n, Float_t* p, Marker_t marker, Option_t* option = "")
virtual voidTObject::Dump() const
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_tGetLastPoint() const
virtual Color_tTAttMarker::GetMarkerColor() const
virtual Size_tTAttMarker::GetMarkerSize() const
virtual Style_tTAttMarker::GetMarkerStyle() const
virtual Int_tGetN() const
virtual const char*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 voidGetPoint(Int_t n, Float_t& x, Float_t& y, Float_t& z) 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() const
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 Int_tMerge(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)
virtual voidPaint(Option_t* option = "")
static voidPaintH3(TH1* h, Option_t* option)
virtual voidTObject::Pop()
virtual voidPrint(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidTAttMarker::ResetAttMarker(Option_t* toption = "")
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidTAttMarker::SaveMarkerAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1, Int_t sizdef = 1)
virtual voidSavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")
static voidTObject::SetDtorOnly(void* obj)
virtual voidTAttMarker::SetMarkerAttributes()
virtual voidTAttMarker::SetMarkerColor(Color_t tcolor = 1)
virtual voidTAttMarker::SetMarkerSize(Size_t msize = 1)
virtual voidTAttMarker::SetMarkerStyle(Style_t mstyle = 1)
virtual voidSetName(const char* name)
virtual Int_tSetNextPoint(Double_t x, Double_t y, Double_t z)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetPoint(Int_t n, Double_t x, Double_t y, Double_t z)
virtual voidSetPolyMarker(Int_t n, Float_t* p, Marker_t marker, Option_t* option = "")
virtual voidSetPolyMarker(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_tSize() 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
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
TPolyMarker3D&operator=(const TPolyMarker3D&)

Data Members

enum TObject::EStatusBits { kCanDelete
enum TObject::[unnamed] { kIsOnHeap
Int_tfNnumber of points
Float_t*fP[3*fN] Array of X,Y,Z coordinates
UInt_tfGLList!The list number for OpenGL view
Int_tfLastPointThe index of the last filled point
TStringfNamename of polymarker
Color_tTAttMarker::fMarkerColorMarker color index
Style_tTAttMarker::fMarkerStyleMarker style
Size_tTAttMarker::fMarkerSizeMarker size

Class Description

 PolyMarker3D is a 3D polymarker. It has three constructors.

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

                 TPolyMarker3D *pm = new TPolyMarker3D;

   Second one, takes, usually, two parameters, n (number of points) and
 marker (marker style). Third parameter is optional.

                 TPolyMarker3D (150, 1);

   Third one takes, usually, three parameters, n (number of points), *p
 (pointer to an array of 3D points), and marker (marker style). Fourth
 parameter is optional.

                 Float_t *ptr = new Float_t [150*3];
                         ... ... ...
                         ... ... ...
                         ... ... ...

                 TPolyMarker3D (150, ptr, 1);

 3-D polymarker default constructor.
TPolyMarker3D(Int_t n, Marker_t marker, Option_t *option)
 3-D polymarker normal constructor with initialization to 0.
TPolyMarker3D(Int_t n, Float_t *p, Marker_t marker, Option_t *option)
 3-D polymarker constructor. Polymarker is initialized with p.
TPolyMarker3D(Int_t n, Double_t *p, Marker_t marker, Option_t *option)
 3-D polymarker constructor. Polymarker is initialized with p
 (cast to float).
TPolyMarker3D& operator=(const TPolyMarker3D& tp3)
assignement operator
 3-D polymarker destructor.
TPolyMarker3D(const TPolyMarker3D &polymarker)
 3-D polymarker copy ctor.
void Copy(TObject &obj)
 Copy polymarker to polymarker obj.
Int_t DistancetoPrimitive(Int_t px, Int_t py)
 Compute distance from point px,py to a 3-D polymarker.
 Compute the closest distance of approach from point px,py to each segment
 of the polymarker.
 Returns when the distance found is below DistanceMaximum.
 The distance is computed in pixels units.
void Draw(Option_t *option)
 Draws 3-D polymarker with its current attributes.
void DrawPolyMarker(Int_t n, Float_t *p, Marker_t, Option_t *option)
 Draw this 3-D polymartker with new coordinates. Creates a new
 polymarker which will be adopted by the pad in which it is drawn.
 Does not change the original polymarker (should be static method).
void ExecuteEvent(Int_t event, Int_t px, Int_t py)
 Execute action corresponding to one event.
void ls(Option_t *option)
 List this 3-D polymarker.
Int_t Merge(TCollection *li)
 Merge polymarkers in the collection in this polymarker
void Paint(Option_t * /*option*/ )
 Paint a TPolyMarker3D.
void PaintH3(TH1 *h, Option_t *option)
 Paint 3-d histogram h with 3-d polymarkers.
void Print(Option_t *option)
 Print 3-D polymarker with its attributes on stdout.
void SavePrimitive(ostream &out, Option_t * /*= ""*/)
 Save primitive as a C++ statement(s) on output stream.
void SetName(const char *name)
 Change (i.e. set) the name of the TNamed.
 WARNING: if the object is a member of a THashTable or THashList container
 the container must be Rehash()'ed after SetName(). For example the list
 of objects in the current directory is a THashList.
Int_t SetNextPoint(Double_t x, Double_t y, Double_t z)
 Set point following LastPoint to x, y, z.
 Returns index of the point (new last point).
void SetPoint(Int_t n, Double_t x, Double_t y, Double_t z)
 Set point n to x, y, z.
 If n is more then the current TPolyMarker3D size (n > fN) then
 the polymarker will be resized to contain at least n points.
void SetPolyMarker(Int_t n, Float_t *p, Marker_t marker, Option_t *option)
 Re-initialize polymarker with n points from p. If p=0 initialize with 0.
 if n <= 0 the current array of points is deleted.
void SetPolyMarker(Int_t n, Double_t *p, Marker_t marker, Option_t *option)
 Re-initialize polymarker with n points from p. If p=0 initialize with 0.
 if n <= 0 the current array of points is deleted.
void Streamer(TBuffer &b)
 Stream a 3-D polymarker object.
void GetPoint(Int_t n, Float_t &x, Float_t &y, Float_t &z)
 Fills the parameters x, y, z with the coordinate of the n-th point
 n must be between 0 and Size() - 1.
Int_t GetLastPoint()
{ return fLastPoint;}
const char * GetName()
{return fName.Data();}
Int_t GetN()
{ return fN;}
Float_t * GetP()
{ return fP;}
Option_t * GetOption()
{return fOption.Data();}
Int_t Size()
{return fLastPoint+1;}

Author: Nenad Buncic 21/08/95
Last update: root/g3d:$Name: $:$Id: TPolyMarker3D.cxx,v 1.31 2006/11/27 15:39:40 couet Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

ROOT page - Class index - Class Hierarchy - Top of the page

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.