Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TVirtualGeoConverter.h
Go to the documentation of this file.
1// @(#)root/geom:$Id$
2// Author: Mihaela Gheata 30/03/16
3
4/*************************************************************************
5 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11#ifndef ROOT_TVirtualGeoConverter
12#define ROOT_TVirtualGeoConverter
13
14#include "TObject.h"
15
16class TGeoManager;
17
19
20protected:
21 static TVirtualGeoConverter *fgGeoConverter; // Pointer to geometry converter
22 TGeoManager *fGeom; // Pointer to geometry manager
23public:
25 virtual ~TVirtualGeoConverter();
26
27 virtual void ConvertGeometry() {}
29 static void SetConverter(const TVirtualGeoConverter *conv);
30 void SetGeometry(TGeoManager *geom) { fGeom = geom; }
31
32 ClassDef(TVirtualGeoConverter,0) // Abstract interface for geometry converters
33};
34
35#endif
#define ClassDef(name, id)
Definition Rtypes.h:325
The manager class for any TGeo geometry.
Definition TGeoManager.h:45
Mother of all ROOT objects.
Definition TObject.h:41
Abstract class for geometry converters.
static TVirtualGeoConverter * Instance(TGeoManager *geom=0)
Static function returning a pointer to the current geometry converter.
static TVirtualGeoConverter * fgGeoConverter
void SetGeometry(TGeoManager *geom)
static void SetConverter(const TVirtualGeoConverter *conv)
Static function to set an alternative converter.
virtual ~TVirtualGeoConverter()
Geometry converter default destructor.