library: libGraf3d #include "TPolyMarker3D.h" |
TPolyMarker3D
class description - header file - source file - inheritance tree (.pdf)
protected:
TPolyMarker3D& operator=(const TPolyMarker3D&)
public:
TPolyMarker3D()
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 = "")
TPolyMarker3D(const TPolyMarker3D& polymarker)
virtual ~TPolyMarker3D()
static TClass* Class()
virtual void Copy(TObject& polymarker) const
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
virtual void Draw(Option_t* option = "")
virtual void DrawPolyMarker(Int_t n, Float_t* p, Marker_t marker, Option_t* option = "")
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual Int_t GetLastPoint() const
virtual Int_t GetN() const
virtual const char* GetName() const
virtual Option_t* GetOption() const
virtual Float_t* GetP() const
virtual void GetPoint(Int_t n, Float_t& x, Float_t& y, Float_t& z) const
virtual TClass* IsA() const
virtual void ls(Option_t* option = "") const
virtual Int_t Merge(TCollection* list)
virtual void Paint(Option_t* option = "")
static void PaintH3(TH1* h, Option_t* option)
virtual void Print(Option_t* option = "") const
virtual void SavePrimitive(ostream& out, Option_t* option = "")
virtual void SetName(const char* name)
virtual Int_t SetNextPoint(Double_t x, Double_t y, Double_t z)
void SetPoint(Int_t n, Double_t x, Double_t y, Double_t z)
virtual void SetPolyMarker(Int_t n, Float_t* p, Marker_t marker, Option_t* option = "")
virtual void SetPolyMarker(Int_t n, Double_t* p, Marker_t marker, Option_t* option = "")
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual Int_t Size() const
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
Int_t fN number of points
Float_t* fP [3*fN] Array of X,Y,Z coordinates
TString fOption options
UInt_t fGLList !The list number for OpenGL view
Int_t fLastPoint The index of the last filled point
TString fName name of polymarker
______________________________________________________________________________
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).
Example:
TPolyMarker3D *pm = new TPolyMarker3D;
Second one, takes, usually, two parameters, n (number of points) and
marker (marker style). Third parameter is optional.
Example:
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.
Example:
Float_t *ptr = new Float_t [150*3];
... ... ...
... ... ...
... ... ...
TPolyMarker3D (150, ptr, 1);
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 ls(Option_t *option)
List this 3-D polymarker.
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.
Author: Nenad Buncic 21/08/95
Last update: root/g3d:$Name: $:$Id: TPolyMarker3D.cxx,v 1.30 2006/07/03 16:10:43 brun 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.