From $ROOTSYS/tutorials/eve/geom_alias.C

// @(#)root/eve:$Id$
// Author: Matevz Tadel

// Demonstates usage of geometry aliases - merge ALICE ITS with ATLAS MUON.

void geom_alias()
{
   TEveManager::Create();

   gEve->RegisterGeometryAlias("ALICE", "http://root.cern.ch/files/alice.root");
   gEve->RegisterGeometryAlias("ATLAS", "http://root.cern.ch/files/atlas.root");


   gGeoManager = gEve->GetGeometryByAlias("ALICE");

   TGeoNode* node1 = gGeoManager->GetTopVolume()->FindNode("ITSV_1");
   TEveGeoTopNode* its = new TEveGeoTopNode(gGeoManager, node1);
   gEve->AddGlobalElement(its);


   gGeoManager = gEve->GetGeometryByAlias("ATLAS");

   TGeoNode* node2 = gGeoManager->GetTopVolume()->FindNode("OUTE_1");
   TEveGeoTopNode* atlas = new TEveGeoTopNode(gGeoManager, node2);
   gEve->AddGlobalElement(atlas);


   gEve->FullRedraw3D(kTRUE);

   // EClipType not exported to CINT (see TGLUtil.h):
   // 0 - no clip, 1 - clip plane, 2 - clip box
   TGLViewer *v = gEve->GetDefaultGLViewer();
   v->GetClipSet()->SetClipType(TGLClip::EType(2));
   v->RefreshPadEditor(v);

   v->CurrentCamera().RotateRad(-0.5, -2.4);
   v->DoDraw();
}
 geom_alias.C:1
 geom_alias.C:2
 geom_alias.C:3
 geom_alias.C:4
 geom_alias.C:5
 geom_alias.C:6
 geom_alias.C:7
 geom_alias.C:8
 geom_alias.C:9
 geom_alias.C:10
 geom_alias.C:11
 geom_alias.C:12
 geom_alias.C:13
 geom_alias.C:14
 geom_alias.C:15
 geom_alias.C:16
 geom_alias.C:17
 geom_alias.C:18
 geom_alias.C:19
 geom_alias.C:20
 geom_alias.C:21
 geom_alias.C:22
 geom_alias.C:23
 geom_alias.C:24
 geom_alias.C:25
 geom_alias.C:26
 geom_alias.C:27
 geom_alias.C:28
 geom_alias.C:29
 geom_alias.C:30
 geom_alias.C:31
 geom_alias.C:32
 geom_alias.C:33
 geom_alias.C:34
 geom_alias.C:35
 geom_alias.C:36
 geom_alias.C:37
 geom_alias.C:38
 geom_alias.C:39