Dirk Meier wrote: > Hi, > > I am looking for a class similar to TGraph, > which would not create a private copy > of X and Y arrays but rather works on > X,Y arrays which are provided by the user. > Such a way that I do not need to create a > new TGraph object when (all) values in > user's X or Y change. > (Using SetPoint(n,x,y) and Modified() and looping > over n entries is too slow). > Or is there a faster way to tell and update TGraph > when all values have changed? > Dirk, I think it is a bad idea to point to some user defined array. You break theprinciple of data encapsulation. TGraph::SetPoint is very fast. This cannot be an overhead. Why do you need to Update the picture every time one point changes? Simply: gPad->Modified(); gPad->Update(); only when you think that it is necessary. Rene Brun
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:23 MET