| 1 | // Copyright FreeHEP, 2005.
|
|---|
| 2 | #ifndef CHEPREP_DEFAULTHEPREP_H
|
|---|
| 3 | #define CHEPREP_DEFAULTHEPREP_H 1
|
|---|
| 4 |
|
|---|
| 5 | #include "cheprep/config.h"
|
|---|
| 6 |
|
|---|
| 7 | #include <string>
|
|---|
| 8 | #include <vector>
|
|---|
| 9 | #include <set>
|
|---|
| 10 |
|
|---|
| 11 | #include "HEPREP/HepRep.h"
|
|---|
| 12 | #include "HEPREP/HepRepSelectFilter.h"
|
|---|
| 13 | #include "HEPREP/HepRepWriter.h"
|
|---|
| 14 | #include "HEPREP/HepRepType.h"
|
|---|
| 15 | #include "HEPREP/HepRepTypeTree.h"
|
|---|
| 16 | #include "HEPREP/HepRepInstanceTree.h"
|
|---|
| 17 |
|
|---|
| 18 | /**
|
|---|
| 19 | * @author Mark Donszelmann
|
|---|
| 20 | * @version $Id: DefaultHepRep.h,v 1.3 2005/06/02 21:28:45 duns Exp $
|
|---|
| 21 | */
|
|---|
| 22 | namespace cheprep {
|
|---|
| 23 |
|
|---|
| 24 | class DefaultHepRep : public virtual HEPREP::HepRep {
|
|---|
| 25 |
|
|---|
| 26 | private:
|
|---|
| 27 | std::vector<std::string> layers;
|
|---|
| 28 | std::vector<HEPREP::HepRepTypeTree*> typeTrees;
|
|---|
| 29 | std::vector<HEPREP::HepRepInstanceTree*> instanceTrees;
|
|---|
| 30 |
|
|---|
| 31 | public:
|
|---|
| 32 | DefaultHepRep();
|
|---|
| 33 | ~DefaultHepRep();
|
|---|
| 34 |
|
|---|
| 35 | HEPREP::HepRep* copy(HEPREP::HepRepSelectFilter* filter);
|
|---|
| 36 | std::vector<std::string> getLayerOrder();
|
|---|
| 37 | void addLayer(std::string layer);
|
|---|
| 38 | void addTypeTree(HEPREP::HepRepTypeTree* typeTree);
|
|---|
| 39 | void removeTypeTree(HEPREP::HepRepTypeTree* typeTree);
|
|---|
| 40 | HEPREP::HepRepTypeTree* getTypeTree(std::string name, std::string version);
|
|---|
| 41 | std::vector<HEPREP::HepRepTypeTree*> getTypeTreeList();
|
|---|
| 42 | void addInstanceTree(HEPREP::HepRepInstanceTree* instanceTree);
|
|---|
| 43 | void overlayInstanceTree(HEPREP::HepRepInstanceTree * instanceTree);
|
|---|
| 44 | void removeInstanceTree(HEPREP::HepRepInstanceTree* instanceTree);
|
|---|
| 45 | HEPREP::HepRepInstanceTree* getInstanceTreeTop(std::string name, std::string version);
|
|---|
| 46 | HEPREP::HepRepInstanceTree* getInstances(std::string name, std::string version,
|
|---|
| 47 | std::vector<std::string> typeNames);
|
|---|
| 48 | HEPREP::HepRepInstanceTree* getInstancesAfterAction(
|
|---|
| 49 | std::string name,
|
|---|
| 50 | std::string version,
|
|---|
| 51 | std::vector<std::string> typeNames,
|
|---|
| 52 | std::vector<HEPREP::HepRepAction*> actions,
|
|---|
| 53 | bool getPoints,
|
|---|
| 54 | bool getDrawAtts,
|
|---|
| 55 | bool getNonDrawAtts,
|
|---|
| 56 | std::vector<std::string> invertAtts);
|
|---|
| 57 | std::string checkForException();
|
|---|
| 58 | std::vector<HEPREP::HepRepInstanceTree*> getInstanceTreeList();
|
|---|
| 59 | };
|
|---|
| 60 |
|
|---|
| 61 | } // cheprep
|
|---|
| 62 |
|
|---|
| 63 | #endif
|
|---|