Skip to content
Snippets Groups Projects
Commit 4064cee0 authored by Axel Naumann's avatar Axel Naumann
Browse files

[v7tut] For now, attributes for FooOpts are not below Foo().

parent a50a2dcb
No related branches found
No related tags found
No related merge requests found
......@@ -30,30 +30,30 @@ void box()
RColor Color1(1., 0., 0., 0.5); // 50% opaque
RColor Color2(0., 0., 1., 0.3); // 30% opaque
OptsBox1->Box().Border().SetColor(Color1).SetWidth(5);
OptsBox1->Border().SetColor(Color1).SetWidth(5);
//OptsBox1->Fill().SetColor(Color2);
auto OptsBox2 = canvas->Draw(RBox({0.4_normal, 0.2_normal}, {0.6_normal,0.7_normal}));
OptsBox2->Box().Border().SetColor(Color2).SetStyle(2).SetWidth(3);
OptsBox2->Border().SetColor(Color2).SetStyle(2).SetWidth(3);
//OptsBox2->Fill().SetStyle(0);
auto OptsBox3 = canvas->Draw(RBox({0.7_normal, 0.4_normal}, {0.9_normal,0.6_normal}));
//OptsBox3->SetFillStyle(0);
//OptsBox3->SetRoundWidth(50);
//OptsBox3->SetRoundHeight(50);
OptsBox3->Box().Border().SetWidth(3);
OptsBox3->Border().SetWidth(3);
auto OptsBox4 = canvas->Draw(RBox({0.7_normal, 0.7_normal}, {0.9_normal,0.9_normal}));
//OptsBox4->SetFillStyle(0);
//OptsBox4->SetRoundWidth(50);
//OptsBox4->SetRoundHeight(25);
OptsBox4->Box().Border().SetWidth(3);
OptsBox4->Border().SetWidth(3);
auto OptsBox5 = canvas->Draw(RBox({0.7_normal, 0.1_normal}, {0.9_normal,0.3_normal}));
//OptsBox5->SetFillStyle(0);
//OptsBox5->SetRoundWidth(25);
//OptsBox5->SetRoundHeight(50);
OptsBox5->Box().Border().SetWidth(3);
OptsBox5->Border().SetWidth(3);
canvas->Show();
}
......@@ -33,7 +33,7 @@ void line()
0.3_normal*TMath::Sin(angle) + 0.5_normal);
auto opts = canvas->Draw(RLine({0.5_normal, 0.5_normal} , p));
RColor col(0.0025*i, 0, 0);
opts->Line().SetColor(col);
opts->SetColor(col);
}
canvas->Draw(RLine({0.0_normal, 0.0_normal}, {1.0_normal,1.0_normal}));
......
......@@ -26,12 +26,12 @@ void lineStyle() {
RPadPos pt(.3_normal, RPadLength::Normal(num));
auto optts = canvas->Draw(RText(pt, std::to_string(i)));
optts->Text().SetSize(13).SetAlign(32).SetFont(52);
optts->SetSize(13).SetAlign(32).SetFont(52);
RPadPos pl1(.32_normal, RPadLength::Normal(num));
RPadPos pl2(.8_normal , RPadLength::Normal(num));
auto optls = canvas->Draw(RLine(pl1, pl2));
optls->Line().SetStyle(i);
optls->SetStyle(i);
}
canvas->Show();
......
......@@ -26,12 +26,12 @@ void lineWidth() {
RPadPos pt(.3_normal, RPadLength::Normal(num));
auto optts = canvas->Draw(RText(pt, std::to_string(i)));
optts->Text().SetSize(13).SetAlign(32).SetFont(52);
optts->SetSize(13).SetAlign(32).SetFont(52);
RPadPos pl1(.32_normal, RPadLength::Normal(num));
RPadPos pl2(.8_normal , RPadLength::Normal(num));
auto optls = canvas->Draw(RLine(pl1, pl2));
optls->Line().SetWidth(i);
optls->SetWidth(i);
}
canvas->Show();
......
......@@ -29,19 +29,19 @@ void markerStyle() {
auto ot1 = canvas->Draw(RText(pt1, std::to_string(i)));
RPadPos pm1(RPadLength::Normal(x), .25_normal);
auto om1 = canvas->Draw(RMarker(pm1));
om1->Marker().SetStyle(i).SetSize(2.5);
om1->SetStyle(i).SetSize(2.5);
RPadPos pt2(RPadLength::Normal(x), .42_normal);
auto ot2 = canvas->Draw(RText(pt2, std::to_string(i+19)));
RPadPos pm2(RPadLength::Normal(x), .55_normal);
auto om2 = canvas->Draw(RMarker(pm2));
om2->Marker().SetStyle(i+19).SetSize(2.5);
om2->SetStyle(i+19).SetSize(2.5);
RPadPos pt3(RPadLength::Normal(x), .72_normal);
auto ot3 = canvas->Draw(RText(pt3, std::to_string(i+34)));
RPadPos pm3(RPadLength::Normal(x), .85_normal);
auto om3 = canvas->Draw(RMarker(pm3));
om3->Marker().SetStyle(i+34).SetSize(2.5);
om3->SetStyle(i+34).SetSize(2.5);
}
canvas->Show();
......
......@@ -32,7 +32,7 @@ void text()
auto opts = canvas->Draw(RText({0.5_normal, 0.6_normal}, "____ Hello World"));
RColor col(0.0015*i, 0.0025*i ,0.003*i);
opts->Text().SetColor(col).SetSize(10+i/10).SetAngle(i).SetAlign(13).SetFont(42);
opts->SetColor(col).SetSize(10+i/10).SetAngle(i).SetAlign(13).SetFont(42);
}
canvas->Show();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment