#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 |
( |
| ) |
|
Definition at line 250 of file G4GMocrenIO.cc.
252 for(
int i = 0; i < 3; i++)
kColor[i] = 0;
std::vector< struct Step > kTrack
GMocrenTrack::~GMocrenTrack |
( |
| ) |
|
|
inline |
void GMocrenTrack::addStep |
( |
float |
_startx, |
|
|
float |
_starty, |
|
|
float |
_startz, |
|
|
float |
_endx, |
|
|
float |
_endy, |
|
|
float |
_endz |
|
) |
| |
Definition at line 255 of file G4GMocrenIO.cc.
258 step.startPoint[0] = _startx;
259 step.startPoint[1] = _starty;
260 step.startPoint[2] = _startz;
261 step.endPoint[0] = _endx;
262 step.endPoint[1] = _endy;
263 step.endPoint[2] = _endz;
std::vector< struct Step > kTrack
void GMocrenTrack::getColor |
( |
unsigned char |
_color[3] | ) |
|
|
inline |
int GMocrenTrack::getNumberOfSteps |
( |
| ) |
|
|
inline |
void GMocrenTrack::getStep |
( |
float & |
_startx, |
|
|
float & |
_starty, |
|
|
float & |
_startz, |
|
|
float & |
_endx, |
|
|
float & |
_endy, |
|
|
float & |
_endz, |
|
|
int |
_num |
|
) |
| |
Definition at line 266 of file G4GMocrenIO.cc.
269 if(_num >= (
int)
kTrack.size()) {
271 G4cout <<
"GMocrenTrack::getStep(...) Error: "
272 <<
"invalid step # : " << _num <<
G4endl;
276 _startx =
kTrack[_num].startPoint[0];
277 _starty =
kTrack[_num].startPoint[1];
278 _startz =
kTrack[_num].startPoint[2];
279 _endx =
kTrack[_num].endPoint[0];
280 _endy =
kTrack[_num].endPoint[1];
281 _endz =
kTrack[_num].endPoint[2];
std::vector< struct Step > kTrack
G4GLOB_DLL std::ostream G4cout
static Verbosity GetVerbosity()
void GMocrenTrack::setColor |
( |
unsigned char |
_color[3] | ) |
|
|
inline |
void GMocrenTrack::setTrack |
( |
std::vector< struct Step > & |
_aTrack | ) |
|
|
inline |
void GMocrenTrack::translate |
( |
std::vector< float > & |
_tranlate | ) |
|
Definition at line 283 of file G4GMocrenIO.cc.
284 std::vector<struct Step>::iterator itr =
kTrack.begin();
285 for(; itr !=
kTrack.end(); itr++) {
286 for(
int i = 0; i < 3; i++ ) {
287 itr->startPoint[i] += _translate[i];
288 itr->endPoint[i] += _translate[i];
std::vector< struct Step > kTrack
unsigned char GMocrenTrack::kColor[3] |
|
protected |
std::vector<struct Step> GMocrenTrack::kTrack |
|
protected |
The documentation for this class was generated from the following files: