Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DefaultHepRepInstance.h
Go to the documentation of this file.
1 // Copyright FreeHEP, 2005.
2 #ifndef CHEPREP_DEFAULTHEPREPINSTANCE_H
3 #define CHEPREP_DEFAULTHEPREPINSTANCE_H 1
4 
5 #include "cheprep/config.h"
6 
7 #include <string>
8 #include <vector>
9 
10 #include "HEPREP/HepRep.h"
13 #include "HEPREP/HepRepInstance.h"
14 #include "HEPREP/HepRepWriter.h"
15 #include "HEPREP/HepRepType.h"
16 #include "HEPREP/HepRepPoint.h"
17 #include "HEPREP/HepRepAttValue.h"
18 
19 #include "DefaultHepRepAttribute.h"
20 
25 namespace cheprep {
26 
28 
29  private:
30  HEPREP::HepRepInstance* parent;
31  HEPREP::HepRepType* type;
32  std::vector<HEPREP::HepRepPoint*> points;
33  std::vector<HEPREP::HepRepInstance*> instances;
34 
35  public:
39 
40  void overlay(HEPREP::HepRepInstance * instance);
44  void addPoint(HEPREP::HepRepPoint* point);
45  std::vector<HEPREP::HepRepPoint *> getPoints();
47  void addInstance(HEPREP::HepRepInstance* instance);
48  void removeInstance(HEPREP::HepRepInstance* instance);
49  std::vector<HEPREP::HepRepInstance *> getInstances();
50 
52 
53  void *getParent() { return parent; }
54 };
55 
56 } // cheprep
57 
58 
59 #endif