Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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"
14#include "HEPREP/HepRepWriter.h"
15#include "HEPREP/HepRepType.h"
16#include "HEPREP/HepRepPoint.h"
18
20
21/**
22 * @author Mark Donszelmann
23 */
24namespace cheprep {
25
27
28 private:
31 std::vector<HEPREP::HepRepPoint*> points;
32 std::vector<HEPREP::HepRepInstance*> instances;
33
34 public:
38
39 void overlay(HEPREP::HepRepInstance * instance);
43 void addPoint(HEPREP::HepRepPoint* point);
44 std::vector<HEPREP::HepRepPoint *> getPoints();
46 void addInstance(HEPREP::HepRepInstance* instance);
48 std::vector<HEPREP::HepRepInstance *> getInstances();
49
50 HEPREP::HepRepAttValue* getAttValue(std::string name);
51
52 void *getParent() { return parent; }
53};
54
55} // cheprep
56
57
58#endif
void removeInstance(HEPREP::HepRepInstance *instance)
std::vector< HEPREP::HepRepPoint * > getPoints()
HEPREP::HepRepInstance * getSuperInstance()
std::vector< HEPREP::HepRepInstance * > getInstances()
HEPREP::HepRepInstance * copy(HEPREP::HepRepTypeTree *typeTree, HEPREP::HepRepInstance *parent, HEPREP::HepRepSelectFilter *filter)
void addInstance(HEPREP::HepRepInstance *instance)
void addPoint(HEPREP::HepRepPoint *point)
HEPREP::HepRepAttValue * getAttValue(std::string name)
void overlay(HEPREP::HepRepInstance *instance)