Logo ROOT   6.14/05
Reference Guide
TGeoToStep.h
Go to the documentation of this file.
1 // @(#)geom/geocad:$Id$
2 // Author: Cinzia Luzzi 5/5/2012
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2012, 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 
12 #ifndef ROOT_TGeoToStep
13 #define ROOT_TGeoToStep
14 
15 #include "TObject.h"
16 
17 #include <map>
18 #include <string>
19 
20 class TGeoManager;
21 class TOCCToStep;
22 
23 
24 class TGeoToStep: public TObject {
25 
26 protected:
27  TGeoManager *fGeometry; //ROOT geometry pointer
28  TOCCToStep *fCreate; //OCC geometry build based on Root one
29 
30 public:
31  TGeoToStep();
32  TGeoToStep(TGeoManager *geom);
33  ~TGeoToStep();
34 
35  void CreateGeometry(const char* fname = "geometry.stp", int max_level = -1);
36  void CreatePartialGeometry(const char* part_name, int max_level = -1, const char* fname = "geometry.stp");
37  void CreatePartialGeometry(std::map<std::string,int> part_name_levels, const char* fname = "geometry.stp");
38 
40 };
41 
42 #endif
void CreateGeometry(const char *fname="geometry.stp", int max_level=-1)
Definition: TGeoToStep.cxx:70
The manager class for any TGeo geometry.
Definition: TGeoManager.h:38
TGeoManager * fGeometry
Definition: TGeoToStep.h:27
#define ClassDef(name, id)
Definition: Rtypes.h:320
void CreatePartialGeometry(const char *part_name, int max_level=-1, const char *fname="geometry.stp")
Definition: TGeoToStep.cxx:81
This class contains implementation of writing OpenCascade&#39;s geometry shapes to the STEP file reproduc...
Definition: TOCCToStep.h:27
Mother of all ROOT objects.
Definition: TObject.h:37
TOCCToStep * fCreate
Definition: TGeoToStep.h:28
This class is an interface to convert ROOT&#39;s geometry file to STEP file.
Definition: TGeoToStep.h:24