MyScenery Class Reference

List of all members.

Public Member Functions

 MyScenery ()
 ~MyScenery ()
void Diddle ()

Private Attributes

TRandom rand

Detailed Description

Definition at line 18 of file test-Scene.cxx.


Constructor & Destructor Documentation

MyScenery::MyScenery (  )  [inline]

Definition at line 22 of file test-Scene.cxx.

References Diddle().

00022 { this->Diddle(); }

MyScenery::~MyScenery (  )  [inline]

Definition at line 23 of file test-Scene.cxx.

00023 {}


Member Function Documentation

void MyScenery::Diddle (  )  [inline]

Definition at line 24 of file test-Scene.cxx.

References rand.

Referenced by add_box(), and MyScenery().

00024                   {
00025         this->ClearPrimitives();
00026         double x1 = rand.Uniform();
00027         double y1 = rand.Uniform();
00028         double x2 = rand.Uniform();
00029         double y2 = rand.Uniform();
00030         cerr << "Diddle the box: "
00031              << "(" << x1 << "," << y1 << ")-->"
00032              << "(" << x2 << "," << y2 << ")\n";
00033         TBox* box = new TBox(x1,y1,x2,y2);
00034         this->AddPrimitive(box);
00035         box->SetFillColor(rand.Integer(50));
00036         modified.emit();
00037     }


Member Data Documentation

TRandom MyScenery::rand [private]

Definition at line 20 of file test-Scene.cxx.

Referenced by Diddle().


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

Generated on 16 Jan 2018 for loon by  doxygen 1.6.1