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 ~TVirtualGeoConverter() override;
26
27 virtual void ConvertGeometry() {}
28 static TVirtualGeoConverter *Instance(TGeoManager *geom = nullptr);
29 static void SetConverter(const TVirtualGeoConverter *conv);
30 void SetGeometry(TGeoManager *geom) { fGeom = geom; }
31
32 ClassDefOverride(TVirtualGeoConverter, 0) // Abstract interface for geometry converters
33};
34
35#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
The manager class for any TGeo geometry.
Definition TGeoManager.h:44
Mother of all ROOT objects.
Definition TObject.h:41
Abstract class for geometry converters.
static TVirtualGeoConverter * fgGeoConverter
static TVirtualGeoConverter * Instance(TGeoManager *geom=nullptr)
Static function returning a pointer to the current geometry converter.
void SetGeometry(TGeoManager *geom)
~TVirtualGeoConverter() override
Geometry converter default destructor.
static void SetConverter(const TVirtualGeoConverter *conv)
Static function to set an alternative converter.