jetcone_test.C: Demonstrates usage of TEveJetCone class. | Event Display | pack.C: Demonstrates usage of class TGPack. |
// @(#)root/eve:$Id: lineset_test.C 26876 2008-12-12 14:45:40Z matevz $ // Author: Matevz Tadel // Demonstrates usage of class TEveStraightLineSet. TEveStraightLineSet* lineset_test(Int_t nlines = 40, Int_t nmarkers = 4) { TEveManager::Create(); TRandom r(0); Float_t s = 100; TEveStraightLineSet* ls = new TEveStraightLineSet(); for(Int_t i = 0; i<nlines; i++) { ls->AddLine( r.Uniform(-s,s), r.Uniform(-s,s), r.Uniform(-s,s), r.Uniform(-s,s), r.Uniform(-s,s), r.Uniform(-s,s)); // add random number of markers Int_t nm = Int_t(nmarkers* r.Rndm()); for(Int_t m = 0; m < nm; m++) { ls->AddMarker(i, r.Rndm()); } } ls->SetMarkerSize(1.5); ls->SetMarkerStyle(4); gEve->AddElement(ls); gEve->Redraw3D(); return ls; } lineset_test.C:1 lineset_test.C:2 lineset_test.C:3 lineset_test.C:4 lineset_test.C:5 lineset_test.C:6 lineset_test.C:7 lineset_test.C:8 lineset_test.C:9 lineset_test.C:10 lineset_test.C:11 lineset_test.C:12 lineset_test.C:13 lineset_test.C:14 lineset_test.C:15 lineset_test.C:16 lineset_test.C:17 lineset_test.C:18 lineset_test.C:19 lineset_test.C:20 lineset_test.C:21 lineset_test.C:22 lineset_test.C:23 lineset_test.C:24 lineset_test.C:25 lineset_test.C:26 lineset_test.C:27 lineset_test.C:28 lineset_test.C:29 lineset_test.C:30 lineset_test.C:31 lineset_test.C:32 lineset_test.C:33 lineset_test.C:34 |
|