#include <G4GMocrenIO.hh>
|
| GMocrenTrack () |
|
| ~GMocrenTrack () |
|
int | getNumberOfSteps () |
|
void | addStep (float _startx, float _starty, float _startz, float _endx, float _endy, float _endz) |
|
void | getStep (float &_startx, float &_starty, float &_startz, float &_endx, float &_endy, float &_endz, int _num) |
|
void | setTrack (std::vector< struct Step > &_aTrack) |
|
void | setColor (unsigned char _color[3]) |
|
void | getColor (unsigned char _color[3]) |
|
void | translate (std::vector< float > &_tranlate) |
|
Definition at line 91 of file G4GMocrenIO.hh.
◆ GMocrenTrack()
GMocrenTrack::GMocrenTrack |
( |
| ) |
|
Definition at line 249 of file G4GMocrenIO.cc.
249 {
251 for(
int i = 0; i < 3; i++)
kColor[i] = 0;
252}
std::vector< struct Step > kTrack
◆ ~GMocrenTrack()
GMocrenTrack::~GMocrenTrack |
( |
| ) |
|
|
inline |
◆ addStep()
void GMocrenTrack::addStep |
( |
float |
_startx, |
|
|
float |
_starty, |
|
|
float |
_startz, |
|
|
float |
_endx, |
|
|
float |
_endy, |
|
|
float |
_endz |
|
) |
| |
Definition at line 254 of file G4GMocrenIO.cc.
255 {
256 struct Step step;
257 step.startPoint[0] = _startx;
258 step.startPoint[1] = _starty;
259 step.startPoint[2] = _startz;
260 step.endPoint[0] = _endx;
261 step.endPoint[1] = _endy;
262 step.endPoint[2] = _endz;
264}
◆ getColor()
void GMocrenTrack::getColor |
( |
unsigned char |
_color[3] | ) |
|
|
inline |
◆ getNumberOfSteps()
int GMocrenTrack::getNumberOfSteps |
( |
| ) |
|
|
inline |
◆ getStep()
void GMocrenTrack::getStep |
( |
float & |
_startx, |
|
|
float & |
_starty, |
|
|
float & |
_startz, |
|
|
float & |
_endx, |
|
|
float & |
_endy, |
|
|
float & |
_endz, |
|
|
int |
_num |
|
) |
| |
Definition at line 265 of file G4GMocrenIO.cc.
267 {
268 if(_num >= (
int)
kTrack.size()) {
270 G4cout <<
"GMocrenTrack::getStep(...) Error: "
271 <<
"invalid step # : " << _num <<
G4endl;
272 return;
273 }
274
275 _startx =
kTrack[_num].startPoint[0];
276 _starty =
kTrack[_num].startPoint[1];
277 _startz =
kTrack[_num].startPoint[2];
278 _endx =
kTrack[_num].endPoint[0];
279 _endy =
kTrack[_num].endPoint[1];
280 _endz =
kTrack[_num].endPoint[2];
281}
G4DLLIMPORT std::ostream G4cout
static Verbosity GetVerbosity()
◆ setColor()
void GMocrenTrack::setColor |
( |
unsigned char |
_color[3] | ) |
|
|
inline |
◆ setTrack()
void GMocrenTrack::setTrack |
( |
std::vector< struct Step > & |
_aTrack | ) |
|
|
inline |
◆ translate()
void GMocrenTrack::translate |
( |
std::vector< float > & |
_tranlate | ) |
|
Definition at line 282 of file G4GMocrenIO.cc.
282 {
283 std::vector<struct Step>::iterator itr =
kTrack.begin();
284 for(; itr !=
kTrack.end(); itr++) {
285 for(int i = 0; i < 3; i++ ) {
286 itr->startPoint[i] += _translate[i];
287 itr->endPoint[i] += _translate[i];
288 }
289 }
290}
◆ kColor
unsigned char GMocrenTrack::kColor[3] |
|
protected |
◆ kTrack
std::vector<struct Step> GMocrenTrack::kTrack |
|
protected |
The documentation for this class was generated from the following files: