TPolyMarker3D


class description - source file - inheritance tree

class TPolyMarker3D : public TObject, public TAttMarker


    public:
TPolyMarker3D TPolyMarker3D() TPolyMarker3D TPolyMarker3D(Int_t n, Marker_t marker = 1, Option_t* option) TPolyMarker3D TPolyMarker3D(Int_t n, Float_t* p, Marker_t marker = 1, Option_t* option) TPolyMarker3D TPolyMarker3D(TPolyMarker3D& polymarker) virtual void ~TPolyMarker3D() TClass* Class() virtual void Copy(TObject& polymarker) 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 GetN() virtual Option_t* GetOption() virtual Float_t* GetP() virtual Bool_t Is3D() virtual TClass* IsA() virtual void ls(Option_t* option) virtual void Paint(Option_t* option) virtual void PaintPolyMarker(Int_t n, Float_t* p, Marker_t marker, Option_t* option) virtual void Print(Option_t* option) virtual void SavePrimitive(ofstream& out, Option_t* option) virtual Int_t SetNextPoint(Float_t x, Float_t y, Float_t z) void SetPoint(Int_t n, Float_t x, Float_t y, Float_t z) virtual void SetPolyMarker(Int_t n, Float_t* p, Marker_t marker, Option_t* option) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual Int_t Size() virtual void Sizeof3D() virtual void Streamer(TBuffer& b)

Data Members

protected:
Int_t fN number of points Float_t* fP 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

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).

       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);



TPolyMarker3D() : TObject(), TAttMarker()
*-*-*-*-*-*-*-*-*-*-*-*PolyMarker3D default constructor*-*-*-*-*-*-*-*-*-*-*-*
*-*                    ================================

TPolyMarker3D(Int_t n, Marker_t marker, Option_t *option) : TObject(), TAttMarker()
*-*-*-*-*-*-*-*-*-*-*-*-*PolyMarker3D normal constructor*-*-*-*-*-*-*-*-*-*-*-*
*-*                      ===============================

TPolyMarker3D(Int_t n, Float_t *p, Marker_t marker, Option_t *option) : TObject(), TAttMarker()
*-*-*-*-*-*-*-*-*-*-*-*-*-*PolyMarker3D constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                        ========================

~TPolyMarker3D()
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*PolyMarker3D destructor*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                          =======================

TPolyMarker3D(const TPolyMarker3D &polymarker)

void Copy(TObject &obj)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*Copy polymarker*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                              ===============

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 polyline.
*-*  Returns when the distance found is below DistanceMaximum.
*-*  The distance is computed in pixels units.
*-*
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

void Draw(Option_t *option)
*-*-*-*-*-*-*Draws PolyMarker and adds it into the ListOfPrimitives*-*-*-*-*-*
*-*          ======================================================

void DrawPolyMarker(Int_t n, Float_t *p, Marker_t, Option_t *option)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*Draws PolyMarker*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                            ================

void ExecuteEvent(Int_t event, Int_t px, Int_t py)
*-*-*-*-*-*-*-*-*-*Execute action corresponding to one event*-*-*-*-*-*-*-*-*-*
*-*                =========================================
*-*
*-*  This member function must be implemented to realize the action
*-*  corresponding to the mouse click on the object in the window
*-*
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

void ls(Option_t *option)
*-*-*-*-*-*-*-*-*-*-*-*-*List PolyMarker's contents*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                      ==========================

void Paint(Option_t *option)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*Paint PolyMarker*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                            ================

void PaintPolyMarker(Int_t n, Float_t *p, Marker_t, Option_t *)
*-*-*-*-*-*-*-*-*Paint polymarker in CurrentPad World coordinates*-*-*-*-*-*-*-*
*-*              ================================================

void Print(Option_t *option)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*Print PolyMarker Info*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                          =====================

void SavePrimitive(ofstream &out, Option_t *)
 Save primitive as a C++ statement(s) on output stream out

void SetPoint(Int_t n, Float_t x, Float_t y, Float_t z)
*-*-*-*-*-*-*-*-*-*-*-*-*-*Set point n to x, y, z*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                        ======================
*-*  if n is more then the current TPolyMarker3D size (n > fN) - re-allocate this
*-*

Int_t SetNextPoint(Float_t x, Float_t y, Float_t z)
*-*-*-*-*-*-*-*-*-*-*-*Set "next" point to x, y, z *-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                    ============================
*-*     SetNextPoint:  returns the index this point has occupied
*-*

void SetPolyMarker(Int_t n, Float_t *p, Marker_t marker, Option_t *option)
*-*-*-*-*-*-*-*-*-*-*-*-*Loads n points from array p*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                      ===========================

void Sizeof3D() const
*-*-*-*-*-*Return total size of this 3-D shape with its attributes*-*-*-*-*-*-*
*-*        =======================================================

void Streamer(TBuffer &b)
*-*-*-*-*-*-*-*-*Stream a class object*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*              =========================================



Inline Functions


              Int_t GetN()
           Float_t* GetP()
          Option_t* GetOption()
             Bool_t Is3D()
              Int_t Size()
            TClass* Class()
            TClass* IsA()
               void ShowMembers(TMemberInspector& insp, char* parent)


Author: Nenad Buncic 21/08/95
Last update: 2.22/09 10/07/99 08.46.55 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


ROOT page - Class index - 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.