Logo ROOT   6.08/07
Reference Guide
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 #ifndef ROOT_TObject
15 #include "TObject.h"
16 #endif
17 
18 class TGeoManager;
19 
20 class TVirtualGeoConverter : public TObject {
21 
22 protected:
23  static TVirtualGeoConverter *fgGeoConverter; // Pointer to geometry converter
24  TGeoManager *fGeom; // Pointer to geometry manager
25 public:
27  virtual ~TVirtualGeoConverter();
28 
29  virtual void ConvertGeometry() {}
30  static TVirtualGeoConverter *Instance(TGeoManager *geom=0);
31  static void SetConverter(const TVirtualGeoConverter *conv);
32  void SetGeometry(TGeoManager *geom) { fGeom = geom; }
33 
34  ClassDef(TVirtualGeoConverter,0) // Abstract interface for geometry converters
35 };
36 
37 #endif
static void SetConverter(const TVirtualGeoConverter *conv)
Static function to set an alternative converter.
The manager class for any TGeo geometry.
Definition: TGeoManager.h:38
virtual void ConvertGeometry()
#define ClassDef(name, id)
Definition: Rtypes.h:254
static TVirtualGeoConverter * fgGeoConverter
static TVirtualGeoConverter * Instance(TGeoManager *geom=0)
Static function returning a pointer to the current geometry converter.
virtual ~TVirtualGeoConverter()
Geometry converter default destructor.
Mother of all ROOT objects.
Definition: TObject.h:37
Abstract class for geometry converters.
TVirtualGeoConverter(TGeoManager *geom)
Geometry converter default constructor.
void SetGeometry(TGeoManager *geom)