void shapesAnim()
{
TBRIK *brik =
new TBRIK(
"BRIK",
"BRIK",
"void", 200, 150, 150);
TTRD1 *trd1 =
new TTRD1(
"TRD1",
"TRD1",
"void", 200, 50, 100, 100);
TTRD2 *trd2 =
new TTRD2(
"TRD2",
"TRD2",
"void", 200, 50, 200, 50, 100);
TTRAP *trap =
new TTRAP(
"TRAP",
"TRAP",
"void", 190, 0, 0, 60, 40, 90, 15, 120, 80, 180, 15);
TPARA *para =
new TPARA(
"PARA",
"PARA",
"void", 100, 200, 200, 15, 30, 30);
TGTRA *gtra =
new TGTRA(
"GTRA",
"GTRA",
"void", 390, 0, 0, 20, 60, 40, 90, 15, 120, 80, 180, 15);
TTUBE *tube =
new TTUBE(
"TUBE",
"TUBE",
"void", 150, 200, 400);
TTUBS *tubs =
new TTUBS(
"TUBS",
"TUBS",
"void", 80, 100, 100, 90, 235);
TCONE *cone =
new TCONE(
"CONE",
"CONE",
"void", 100, 50, 70, 120, 150);
TCONS *cons =
new TCONS(
"CONS",
"CONS",
"void", 50, 100, 100, 200, 300, 90, 270);
TSPHE *sphe =
new TSPHE(
"SPHE",
"SPHE",
"void", 25, 340, 45, 135, 0, 270);
TSPHE *sphe1 =
new TSPHE(
"SPHE1",
"SPHE1",
"void", 0, 140, 0, 180, 0, 360);
TSPHE *sphe2 =
new TSPHE(
"SPHE2",
"SPHE2",
"void", 0, 200, 10, 120, 45, 145);
TPCON *pcon =
new TPCON(
"PCON",
"PCON",
"void", 180, 270, 4);
TPGON *pgon =
new TPGON(
"PGON",
"PGON",
"void", 180, 270, 8, 4);
TNode *node1 =
new TNode(
"NODE1",
"NODE1",
"BRIK");
TNode *node2 =
new TNode(
"NODE2",
"NODE2",
"TRD1", 0, 0, -1000);
TNode *node3 =
new TNode(
"NODE3",
"NODE3",
"TRD2", 0, 0, 1000);
TNode *node4 =
new TNode(
"NODE4",
"NODE4",
"TRAP", 0, -1000, 0);
TNode *node5 =
new TNode(
"NODE5",
"NODE5",
"PARA", 0, 1000, 0);
TNode *node6 =
new TNode(
"NODE6",
"NODE6",
"TUBE", -1000, 0, 0);
TNode *node7 =
new TNode(
"NODE7",
"NODE7",
"TUBS", 1000, 0, 0);
TNode *node8 =
new TNode(
"NODE8",
"NODE8",
"CONE", -300, -300, 0);
TNode *node9 =
new TNode(
"NODE9",
"NODE9",
"CONS", 300, 300, 0);
TNode *node10 =
new TNode(
"NODE10",
"NODE10",
"PCON", 0, -1000, -1000);
TNode *node11 =
new TNode(
"NODE11",
"NODE11",
"PGON", 0, 1000, 1000);
TNode *node12 =
new TNode(
"NODE12",
"NODE12",
"GTRA", 0, -400, 700);
TNode *node13 =
new TNode(
"NODE13",
"NODE13",
"SPHE", 10, -400, 500);
TNode *node14 =
new TNode(
"NODE14",
"NODE14",
"SPHE1", 10, 250, 300);
TNode *node15 =
new TNode(
"NODE15",
"NODE15",
"SPHE2", 10, -100, -200);
}
void Animate()
{
theta += 2;
phi += 2;
gPad->GetView()->RotateView(theta, phi);
}
virtual void SetLineColor(Color_t lcolor)
Set the line color.
A box with faces perpendicular to the axes.
A segment of a conical tube.
A general twisted trapezoid.
void Draw(Option_t *option="") override
Draw Referenced node with current parameters.
virtual void cd(const char *path=nullptr)
Change Current Reference node to this.
virtual void DefineSection(Int_t secNum, Float_t z, Float_t rmin, Float_t rmax)
Defines section secNum of the polycone.
A trapezoid with the x dimension varying along z.
A trapezoid with both x and y dimensions varying along z.
Handles synchronous and a-synchronous timer events.
virtual void TurnOn()
Add the timer to the system timer list.
void SetCommand(const char *command)
Set the interpreter command to be executed at time out.