show_extract.C: Helper script for showing of extracted / simplified geometries. | Event Display | track.C: Demonstrates usage of TEveTrackPRopagator with different magnetic |
// @(#)root/eve:$Id: text.C 30469 2009-09-25 16:51:44Z matevz $ // Author: Alja Mrak-Tadel // Demonstrates usage of class TEveText - 2D & 3D text in GL. TEveText* text() { gSystem->IgnoreSignal(kSigSegmentationViolation, true); TEveManager::Create(); TEvePointSet* marker = new TEvePointSet(8); marker->SetName("Origin marker"); marker->SetMarkerColor(6); marker->SetMarkerStyle(3); Float_t a = 10; marker->SetPoint(0, a, +a, +a); marker->SetPoint(1, a, -a, +a); marker->SetPoint(2, -a, -a, +a); marker->SetPoint(3, -a, +a, +a); marker->SetPoint(4, +a, +a, -a); marker->SetPoint(5, +a, -a, -a); marker->SetPoint(6, -a, +a, -a); marker->SetPoint(7, -a, -a, -a); gEve->AddElement(marker); TEveText* t = new TEveText("DADA"); t->PtrMainTrans()->RotateLF(1, 3, TMath::PiOver2()); t->SetMainColor(kOrange-2); t->SetFontSize(64); t->SetFontMode(TGLFont::kExtrude); t->SetLighting(kTRUE); gEve->AddElement(t); // TEveText does not know its bounding box before first rendering. gEve->FullRedraw3D(kTRUE); gEve->GetDefaultGLViewer()->ResetCurrentCamera(); gEve->GetDefaultGLViewer()->RequestDraw(TGLRnrCtx::kLODHigh); return t; } text.C:1 text.C:2 text.C:3 text.C:4 text.C:5 text.C:6 text.C:7 text.C:8 text.C:9 text.C:10 text.C:11 text.C:12 text.C:13 text.C:14 text.C:15 text.C:16 text.C:17 text.C:18 text.C:19 text.C:20 text.C:21 text.C:22 text.C:23 text.C:24 text.C:25 text.C:26 text.C:27 text.C:28 text.C:29 text.C:30 text.C:31 text.C:32 text.C:33 text.C:34 text.C:35 text.C:36 text.C:37 text.C:38 text.C:39 text.C:40 text.C:41 text.C:42 text.C:43 |
|