Logo ROOT   6.10/09
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 #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:
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
static void SetConverter(const TVirtualGeoConverter *conv)
Static function to set an alternative converter.
The manager class for any TGeo geometry.
Definition: TGeoManager.h:37
virtual void ConvertGeometry()
#define ClassDef(name, id)
Definition: Rtypes.h:297
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)