library: libHistPainter #include "TGraphPainter.h"

# TGraphPainter

class description - source file - inheritance tree (.pdf)

## class TGraphPainter : public TObject

| Inheritance Chart:
`TObject`
| <- | `TGraphPainter` |

        protected:

          void FindTriangles()
          void PaintLevels(Int_t* T, Double_t* x, Double_t* y, Int_t nblev = 0, Double_t* glev = 0)
          void PaintPolyMarker0(Int_t n, Double_t* x, Double_t* y)

        public:

                          TGraphPainter()
                          TGraphPainter(TGraphDelaunay* gd)
                          TGraphPainter(const TGraphPainter&)
                  virtual ~TGraphPainter()
           static TClass* Class()
                   TList* GetContourList(Double_t contour)
          virtual TClass* IsA() const
           TGraphPainter& operator=(const TGraphPainter&)
             virtual void Paint(Option_t* option)
                     void PaintContour(Option_t* option)
                     void PaintPolyMarker(Option_t* option)
                     void PaintTriangles(Option_t* option)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

                Double_t* fX         !Pointer to fGraph2D->fX
                Double_t* fY         !Pointer to fGraph2D->fY
                Double_t* fZ         !Pointer to fGraph2D->fZ
                Double_t* fXN        !Pointer to fDelaunay->fXN
                Double_t* fYN        !Pointer to fDelaunay->fYN
                 Double_t fXNmin     !Equal to fDelaunay->fXNmin
                 Double_t fXNmax     !Equal to fDelaunay->fXNmax
                 Double_t fYNmin     !Equal to fDelaunay->fYNmin
                 Double_t fYNmax     !Equal to fDelaunay->fYNmax
                 Double_t fXmin      !
                 Double_t fXmax      !
                 Double_t fYmin      ! fGraph2D->fHistogram limits
                 Double_t fYmax      !
                 Double_t fZmin      !
                 Double_t fZmax      !
                    Int_t fNpoints   !Equal to fGraph2D->fNpoints
                    Int_t fNdt       !Equal to fDelaunay->fNdt
                   Int_t* fPTried    !Pointer to fDelaunay->fPTried
                   Int_t* fNTried    !Pointer to fDelaunay->fNTried
                   Int_t* fMTried    !Pointer to fDelaunay->fMTried
          TGraphDelaunay* fDelaunay  Pointer to the TGraphDelaunay to be painted
                TGraph2D* fGraph2D   Pointer to the TGraph2D in fDelaunay

## Class Description

     TGraphPainter paints a TGraphDelaunay

TGraphPainter()

     TGraphPainter default constructor

TGraphPainter(TGraphDelaunay *gd)

     TGraphPainter constructor

~TGraphPainter()

     TGraphPainter destructor.

void FindTriangles()

     Find triangles in fDelaunay and initialise the TGraphPainter values
     needed to paint triangles or find contours.

TList* GetContourList(Double_t contour)

     Returns the X and Y graphs building a contour. A contour level may
     consist in several parts not connected to each other. This function
     finds them and returns them in a graphs' list.

void Paint(Option_t *option)

     Paint a TGraphDelaunay according to the value of "option":

       "TRI"  : The Delaunay triangles are drawn using filled area.
                An hidden surface drawing technique is used. The surface is
                painted with the current fill area color. The edges of each
                triangles are painted with the current line color.
       "TRIW" : The Delaunay triangles are drawn as wire frame
       "TRI1" : The Delaunay triangles are painted with color levels. The edges
                of each triangles are painted with the current line color.
       "TRI2" : the Delaunay triangles are painted with color levels.
       "P"    : Draw a marker at each vertex
       "P0"   : Draw a circle at each vertex. Each circle background is white.
       "PCOL" : Draw a marker at each vertex. The color of each marker is
                defined according to its Z position.
       "CONT" : Draw contours

void PaintContour(Option_t * /*option*/)

     Paints the 2D graph as a contour plot. Delaunay triangles are used
     to compute the contours.

void PaintLevels(Int_t *T,Double_t *x, Double_t *y, Int_t nblev, Double_t *glev)

     Paints one triangle.
     nblev  = 0 : paint the color levels
     nblev != 0 : paint the grid

void PaintPolyMarker(Option_t *option)

     Paints the 2D graph as PaintPolyMarker

void PaintPolyMarker0(Int_t n, Double_t *x, Double_t *y)

     Paints a circle at each vertex. Each circle background is white.

void PaintTriangles(Option_t *option)

     Paints the 2D graph as triangles

### Inline Functions

                   TClass* Class()
                   TClass* IsA() const
                      void ShowMembers(TMemberInspector& insp, char* parent)
                      void Streamer(TBuffer& b)
                      void StreamerNVirtual(TBuffer& b)
             TGraphPainter TGraphPainter(const TGraphPainter&)
            TGraphPainter& operator=(const TGraphPainter&)

Author: Olivier Couet
Last update: root/histpainter:$Name: $:$Id: TGraphPainter.cxx,v 1.00
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *