Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 
16 class TGeoManager;
17 
18 class TVirtualGeoConverter : public TObject {
19 
20 protected:
21  static TVirtualGeoConverter *fgGeoConverter; // Pointer to geometry converter
22  TGeoManager *fGeom; // Pointer to geometry manager
23 public:
24  TVirtualGeoConverter(TGeoManager *geom);
25  virtual ~TVirtualGeoConverter();
26 
27  virtual void ConvertGeometry() {}
28  static TVirtualGeoConverter *Instance(TGeoManager *geom=0);
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