ROOT 6.12/07 Reference Guide |
This class contains implementation of writing OpenCascade's geometry shapes to the STEP file reproducing the original ROOT geometry tree.
The TRootStep Class takes a gGeoManager pointer and gives back a STEP file. The OCCShapeCreation(TGeoManager *m) method starting from the top of the ROOT geometry tree translates each ROOT shape in the OCC one. A fLabel is created for each OCC shape and the correspondance between the the fLabel and the shape is saved in a map. The OCCTreeCreation(TGeoManager *m) method starting from the top of the ROOT geometry and using the fLabel-shape map reproduce the ROOT tree that will be written to the STEP file using the OCCWriteStep(const char * fname ) method.
Definition at line 27 of file TOCCToStep.h.
Public Member Functions | |
TOCCToStep () | |
TDF_Label | OCCShapeCreation (TGeoManager *m) |
Logical fTree creation. More... | |
void | OCCTreeCreation (TGeoManager *m) |
void | OCCWriteStep (const char *fname) |
void | PrintAssembly () |
Private Types | |
typedef std::map< TGeoVolume *, TDF_Label > | LabelMap_t |
Private Member Functions | |
void | AddChildLabel (TDF_Label mother, TDF_Label child, TopLoc_Location loc) |
TopoDS_Shape | AssemblyShape (TGeoVolume *vol, TGeoHMatrix m) |
TopLoc_Location | CalcLocation (TGeoHMatrix matrix) |
TDF_Label | GetLabelOfVolume (TGeoVolume *v) |
TGeoVolume * | GetVolumeOfLabel (TDF_Label fLabel) |
Handle (TDocStd_Document) fDoc | |
void | OCCDocCreation () |
Private Attributes | |
TDF_Label | fLabel |
TGeoToOCC | fRootShape |
TopoDS_Shape | fShape |
LabelMap_t | fTree |
STEPCAFControl_Writer | fWriter |
#include <TOCCToStep.h>
|
private |
Definition at line 30 of file TOCCToStep.h.
TOCCToStep::TOCCToStep | ( | ) |
Definition at line 51 of file TOCCToStep.cxx.
|
private |
Definition at line 181 of file TOCCToStep.cxx.
|
private |
|
private |
Definition at line 189 of file TOCCToStep.cxx.
|
private |
Definition at line 159 of file TOCCToStep.cxx.
|
private |
Definition at line 170 of file TOCCToStep.cxx.
|
private |
|
private |
Definition at line 58 of file TOCCToStep.cxx.
TDF_Label TOCCToStep::OCCShapeCreation | ( | TGeoManager * | m | ) |
Logical fTree creation.
Definition at line 71 of file TOCCToStep.cxx.
void TOCCToStep::OCCTreeCreation | ( | TGeoManager * | m | ) |
Definition at line 210 of file TOCCToStep.cxx.
void TOCCToStep::OCCWriteStep | ( | const char * | fname | ) |
Definition at line 144 of file TOCCToStep.cxx.
void TOCCToStep::PrintAssembly | ( | ) |
Definition at line 249 of file TOCCToStep.cxx.
|
private |
Definition at line 35 of file TOCCToStep.h.
|
private |
Definition at line 36 of file TOCCToStep.h.
|
private |
Definition at line 37 of file TOCCToStep.h.
|
private |
Definition at line 34 of file TOCCToStep.h.
|
private |
Definition at line 32 of file TOCCToStep.h.