Logo ROOT   6.16/01
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
20class TGeoManager;
21class TOCCToStep;
22
23
24class TGeoToStep: public TObject {
25
26protected:
27 TGeoManager *fGeometry; //ROOT geometry pointer
28 TOCCToStep *fCreate; //OCC geometry build based on Root one
29
30public:
31 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
#define ClassDef(name, id)
Definition: Rtypes.h:324
The manager class for any TGeo geometry.
Definition: TGeoManager.h:39
This class is an interface to convert ROOT's geometry file to STEP file.
Definition: TGeoToStep.h:24
TGeoManager * fGeometry
Definition: TGeoToStep.h:27
void CreateGeometry(const char *fname="geometry.stp", int max_level=-1)
Definition: TGeoToStep.cxx:70
void CreatePartialGeometry(const char *part_name, int max_level=-1, const char *fname="geometry.stp")
Definition: TGeoToStep.cxx:81
TOCCToStep * fCreate
Definition: TGeoToStep.h:28
This class contains implementation of writing OpenCascade's geometry shapes to the STEP file reproduc...
Definition: TOCCToStep.h:27
Mother of all ROOT objects.
Definition: TObject.h:37