Data structure for size of TCanvas.
More...
#include <JCanvas.hh>
Data structure for size of TCanvas.
Definition at line 26 of file JCanvas.hh.
JROOT::JCanvas::JCanvas |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 31 of file JCanvas.hh.
int y
number of pixels in Y
int x
number of pixels in X
JROOT::JCanvas::JCanvas |
( |
const int |
__x, |
|
|
const int |
__y |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
Definition at line 43 of file JCanvas.hh.
int y
number of pixels in Y
int x
number of pixels in X
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
JCanvas & |
cv |
|
) |
| |
|
friend |
Read canvas from input stream.
- Parameters
-
- Returns
- input stream
Definition at line 57 of file JCanvas.hh.
67 if (pos != string::npos) {
69 if (!(istringstream(buffer.substr(0,pos)) >> cv.
x)) {
in.setstate(ios::badbit); }
70 if (!(istringstream(buffer.substr(pos+1)) >> cv.
y)) {
in.setstate(ios::badbit); }
74 THROW(JParseError,
"JCanvas error parsing " << buffer);
int y
number of pixels in Y
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line.
static const char SEPARATOR
then fatal The output file must have the wildcard in the e g root fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
int x
number of pixels in X
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const JCanvas & |
cv |
|
) |
| |
|
friend |
Write canvas to output stream.
- Parameters
-
out | output stream |
cv | canvas |
- Returns
- output stream
Definition at line 88 of file JCanvas.hh.
int y
number of pixels in Y
static const char SEPARATOR
int x
number of pixels in X
const char JROOT::JCanvas::SEPARATOR = 'x' |
|
static |
number of pixels in X
Definition at line 98 of file JCanvas.hh.
number of pixels in Y
Definition at line 99 of file JCanvas.hh.
The documentation for this class was generated from the following file: