Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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 * @version $Id: DefaultHepRepInstance.h,v 1.3 2005-06-02 21:28:45 duns Exp $
24 */
25namespace cheprep {
26
28
29 private:
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);
49 std::vector<HEPREP::HepRepInstance *> getInstances();
50
51 HEPREP::HepRepAttValue* getAttValue(std::string name);
52
53 void *getParent() { return parent; }
54};
55
56} // cheprep
57
58
59#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)