#include <G4GMocrenIO.hh>
|
| GMocrenDetector () |
|
| ~GMocrenDetector () |
|
int | getNumberOfEdges () |
|
void | addEdge (float _startx, float _starty, float _startz, float _endx, float _endy, float _endz) |
|
void | getEdge (float &_startx, float &_starty, float &_startz, float &_endx, float &_endy, float &_endz, int _num) |
|
void | setDetector (std::vector< struct Edge > &_aDetector) |
|
void | setColor (unsigned char _color[3]) |
|
void | getColor (unsigned char _color[3]) |
|
void | setName (std::string &_name) |
|
std::string | getName () |
|
void | translate (std::vector< float > &_tranlate) |
|
Definition at line 127 of file G4GMocrenIO.hh.
◆ GMocrenDetector()
GMocrenDetector::GMocrenDetector |
( |
| ) |
|
Definition at line 300 of file G4GMocrenIO.cc.
300 {
302 for(
int i = 0; i < 3; i++)
kColor[i] = 0;
303}
std::vector< struct Edge > kDetector
◆ ~GMocrenDetector()
GMocrenDetector::~GMocrenDetector |
( |
| ) |
|
|
inline |
◆ addEdge()
void GMocrenDetector::addEdge |
( |
float |
_startx, |
|
|
float |
_starty, |
|
|
float |
_startz, |
|
|
float |
_endx, |
|
|
float |
_endy, |
|
|
float |
_endz |
|
) |
| |
Definition at line 305 of file G4GMocrenIO.cc.
306 {
307 struct Edge edge;
308 edge.startPoint[0] = _startx;
309 edge.startPoint[1] = _starty;
310 edge.startPoint[2] = _startz;
311 edge.endPoint[0] = _endx;
312 edge.endPoint[1] = _endy;
313 edge.endPoint[2] = _endz;
315}
◆ getColor()
void GMocrenDetector::getColor |
( |
unsigned char |
_color[3] | ) |
|
|
inline |
◆ getEdge()
void GMocrenDetector::getEdge |
( |
float & |
_startx, |
|
|
float & |
_starty, |
|
|
float & |
_startz, |
|
|
float & |
_endx, |
|
|
float & |
_endy, |
|
|
float & |
_endz, |
|
|
int |
_num |
|
) |
| |
Definition at line 316 of file G4GMocrenIO.cc.
318 {
321 G4cout <<
"GMocrenDetector::getEdge(...) Error: "
322 <<
"invalid edge # : " << _num <<
G4endl;
323 return;
324 }
325
332}
G4DLLIMPORT std::ostream G4cout
static Verbosity GetVerbosity()
◆ getName()
std::string GMocrenDetector::getName |
( |
| ) |
|
|
inline |
◆ getNumberOfEdges()
int GMocrenDetector::getNumberOfEdges |
( |
| ) |
|
|
inline |
◆ setColor()
void GMocrenDetector::setColor |
( |
unsigned char |
_color[3] | ) |
|
|
inline |
◆ setDetector()
void GMocrenDetector::setDetector |
( |
std::vector< struct Edge > & |
_aDetector | ) |
|
|
inline |
◆ setName()
void GMocrenDetector::setName |
( |
std::string & |
_name | ) |
|
|
inline |
◆ translate()
void GMocrenDetector::translate |
( |
std::vector< float > & |
_tranlate | ) |
|
Definition at line 333 of file G4GMocrenIO.cc.
333 {
334 std::vector<struct Edge>::iterator itr =
kDetector.begin();
336 for(int i = 0; i < 3; i++) {
337 itr->startPoint[i] += _translate[i];
338 itr->endPoint[i] += _translate[i];
339 }
340 }
341}
◆ kColor
unsigned char GMocrenDetector::kColor[3] |
|
protected |
◆ kDetector
std::vector<struct Edge> GMocrenDetector::kDetector |
|
protected |
◆ kName
std::string GMocrenDetector::kName |
|
protected |
The documentation for this class was generated from the following files: