|
ROOT 6.16/01 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 () | |
| bool | OCCPartialTreeCreation (TGeoManager *m, const char *node_name, int max_level=-1) |
| bool | OCCPartialTreeCreation (TGeoManager *m, std::map< std::string, int > part_name_levels) |
| TDF_Label | OCCShapeCreation (TGeoManager *m) |
| Logical fTree creation. More... | |
| void | OCCTreeCreation (TGeoManager *m, int max_level=-1) |
| 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) |
| void | FillOCCWithNode (TGeoManager *m, TGeoNode *currentNode, TGeoIterator &nextNode, int level, int max_level, int level1_skipped) |
| 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 |
|
private |
Definition at line 30 of file TOCCToStep.h.
| TOCCToStep::TOCCToStep | ( | ) |
Definition at line 51 of file TOCCToStep.cxx.
|
private |
Definition at line 179 of file TOCCToStep.cxx.
|
private |
|
private |
Definition at line 187 of file TOCCToStep.cxx.
|
private |
Definition at line 349 of file TOCCToStep.cxx.
|
private |
Definition at line 157 of file TOCCToStep.cxx.
|
private |
Definition at line 168 of file TOCCToStep.cxx.
|
private |
|
private |
Definition at line 58 of file TOCCToStep.cxx.
| bool TOCCToStep::OCCPartialTreeCreation | ( | TGeoManager * | m, |
| const char * | node_name, | ||
| int | max_level = -1 |
||
| ) |
Definition at line 255 of file TOCCToStep.cxx.
| bool TOCCToStep::OCCPartialTreeCreation | ( | TGeoManager * | m, |
| std::map< std::string, int > | part_name_levels | ||
| ) |
Definition at line 292 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, |
| int | max_level = -1 |
||
| ) |
Definition at line 208 of file TOCCToStep.cxx.
| void TOCCToStep::OCCWriteStep | ( | const char * | fname | ) |
Definition at line 142 of file TOCCToStep.cxx.
| void TOCCToStep::PrintAssembly | ( | ) |
Definition at line 394 of file TOCCToStep.cxx.
|
private |
Definition at line 37 of file TOCCToStep.h.
|
private |
Definition at line 38 of file TOCCToStep.h.
|
private |
Definition at line 39 of file TOCCToStep.h.
|
private |
Definition at line 36 of file TOCCToStep.h.
|
private |
Definition at line 32 of file TOCCToStep.h.