Geant4.10
 All Data Structures 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 
21 /**
22  * @author Mark Donszelmann
23  * @version $Id: DefaultHepRepInstance.h 66373 2012-12-18 09:41:34Z gcosmo $
24  */
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
pid_t filter
Definition: tracer.cxx:30
void addInstance(HEPREP::HepRepInstance *instance)
const XML_Char * name
void addPoint(HEPREP::HepRepPoint *point)
DefaultHepRepInstance(HEPREP::HepRepInstance *parent, HEPREP::HepRepType *type)
HEPREP::HepRepInstance * getSuperInstance()
std::vector< HEPREP::HepRepPoint * > getPoints()
HEPREP::HepRepAttValue * getAttValue(std::string name)
void overlay(HEPREP::HepRepInstance *instance)
void removeInstance(HEPREP::HepRepInstance *instance)
HEPREP::HepRepInstance * copy(HEPREP::HepRepTypeTree *typeTree, HEPREP::HepRepInstance *parent, HEPREP::HepRepSelectFilter *filter)
std::vector< HEPREP::HepRepInstance * > getInstances()