13 double PI = 3.141592653;
15 int numberOfPoints=200;
16 int numberOfCircles=40;
24 float range = numberOfCircles*
d;
25 view->
SetRange( 0, 0, 0, 4.0*range, 2.0*range, range );
27 for(
int j = d; j < numberOfCircles*
d; j +=
d ) {
36 float csin =
sin(2*PI / (
double)numberOfPoints * (
double)i) + 1;
37 float ccos =
cos(2*PI / (
double)numberOfPoints * (
double)i) + 1;
38 float esin =
sin(2*PI / (
double)(numberOfCircles*d) * (
double)j) + 1;
39 x = j * ( csin +
esin );
58 sprintf( timeStr,
"Execution time: %g sec.", ct);
62 text->
AddText(
"ROOT example: tornado.C");
virtual void Draw(Option_t *option="")
Draw this pavetext with its current attributes.
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
Add a new Text line to this pavetext at given coordinates.
virtual void SetRange(const Double_t *min, const Double_t *max)=0
virtual void Show(const char *name)
Stops Benchmark name and Prints results.
virtual void Start(const char *name)
Starts Benchmark with the specified name.
virtual void SetMarkerColor(Color_t mcolor=1)
Float_t GetCpuTime(const char *name)
Returns Cpu time used by Benchmark name.
virtual void SetFillColor(Color_t fcolor)
R__EXTERN TBenchmark * gBenchmark
virtual void SetMarkerStyle(Style_t mstyle=1)
virtual void Draw(Option_t *option="")
Draws 3-D polymarker with its current attributes.
virtual void SetMarkerSize(Size_t msize=1)
void SetPoint(Int_t n, Double_t x, Double_t y, Double_t z)
Set point n to x, y, z.
A Pave (see TPave) with text, lines or/and boxes inside.
static TView * CreateView(Int_t system=1, const Double_t *rmin=0, const Double_t *rmax=0)
Create a concrete default 3-d view via the plug-in manager.
virtual void Update()
Update canvas pad buffers.