JG ROOT Tools libraries  version 5.0 - august 2014
RContourList Class Reference

#include <RContourList.hh>

Inheritance diagram for RContourList:

Public Member Functions

 RContourList (const u_int fl=gcollection::gUniqueName)
 
 RContourList (const RContourList &original, const u_int fl=gcollection::gUniqueName)
 
virtual ~RContourList ()
 
virtual RContourGetContourPtr (Int_t ct_num)
 
virtual void SetLineAtt (const TAttLine l_att, Int_t ct_num=-1)
 
virtual void SetLineAtt (Color_t c, Style_t s=1, Width_t w=1, Int_t ct_num=-1)
 
virtual void Draw (Int_t ct_num=-1)
 
virtual void DrawCopy (Int_t ct_num=-1)
 
virtual Int_t Write (const string &filename) const
 
virtual Int_t Read (const string &filename, const u_int append=false)
 
 ClassDef (RContourList, 0)
 

Private Types

typedef GListIterT< RContouriterator
 ! Contour list iterator local definition
 

Private Member Functions

 GObject (RContourList)
 

Detailed Description

Class defining a list of contours. The contours are own by the list, and deleted when removed.

Constructor & Destructor Documentation

RContourList::RContourList ( const u_int  fl = gcollection::gUniqueName)

Default constructor.

Parameters
fllist option bits
RContourList::RContourList ( const RContourList original,
const u_int  fl = gcollection::gUniqueName 
)

Copy constructor.

Parameters
originallist to copy
fllist option bits
RContourList::~RContourList ( )
virtual

Destructor.

Member Function Documentation

RContourList::GObject ( RContourList  )
private

Macro from GCpp library that defines the following functions:

  • ClassName(): return the real class name of the object
  • StaticClassName(): return the used class name of the object (that may be a base class of the real object).
  • IsInstanceOf<T>(): return true if the current object is an instance of the template class name argument
  • Clone(): return an allocated copy of the object.
RContour * RContourList::GetContourPtr ( Int_t  ct_num)
inlinevirtual

Get the pointer on a contour (NULL if not defined).

Parameters
ct_numcontour number
void RContourList::SetLineAtt ( const TAttLine  l_att,
Int_t  ct_num = -1 
)
virtual

Change line attributes for a contour. If contour number is -1, all contours attributes are changed.

Parameters
l_attline attributes
ct_numcontour number

References RContour::SetLineAtt().

Referenced by SetLineAtt().

void RContourList::SetLineAtt ( Color_t  c,
Style_t  s = 1,
Width_t  w = 1,
Int_t  ct_num = -1 
)
inlinevirtual

Change line attributes for a contour. If contour number is -1, all contours attributes are changed.

Parameters
cline color
sline style
wline width
ct_numcontour number

References SetLineAtt().

void RContourList::Draw ( Int_t  ct_num = -1)
virtual

Draw contours in current pad. If contour number is -1, all the contours are drawn.

Parameters
ct_numcontour number

References RContour::Draw().

void RContourList::DrawCopy ( Int_t  ct_num = -1)
virtual

Draw a copy of contour objects in current pad. If contour number is -1, all the contours are drawn.

Parameters
ct_numcontour number

References RContour::DrawCopy().

Int_t RContourList::Write ( const string &  filename) const
virtual

Write the contour list to a file. The function returns the number of contours written, and -1 in case of error.

Parameters
filenamefile name

References R_CONTOUR_LIST_ID_FILE_BEGIN, and R_CONTOUR_LIST_ID_FILE_END.

Referenced by RGContourListEdit::SaveListButton().

Int_t RContourList::Read ( const string &  filename,
const u_int  append = false 
)
virtual

Read a contour list from a file. The function returns the number of contours read, and -1 in case of error.

Parameters
filenamefile name
appendif true, the contours are added to current list, else list is replaced

References R_CONTOUR_LIST_ID_FILE_BEGIN, and RContour::Read().

Referenced by RGContourListEdit::LoadListButton().

RContourList::ClassDef ( RContourList  ,
 
)

For ROOT dictionary.


The documentation for this class was generated from the following files: