Rev 25 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 25 | Rev 70 | ||
|---|---|---|---|
| Line 5... | Line 5... | ||
| 5 | #include "TCanvas.h" |
5 | #include "TCanvas.h" |
| 6 | #include "TPad.h" |
6 | #include "TPad.h" |
| 7 | #include "TPaveLabel.h" |
7 | #include "TPaveLabel.h" |
| 8 | #include "TStyle.h" |
8 | #include "TStyle.h" |
| 9 | #include "TDatime.h" |
9 | #include "TDatime.h" |
| - | 10 | ||
| - | 11 | ||
| 10 | 12 | ||
| 11 | //########################################################################################## |
13 | //########################################################################################## |
| 12 | // nastavi nastavitve izrisa, klicem z RTSetStyle(gStyle) |
14 | // nastavi nastavitve izrisa, klicem z RTSetStyle(gStyle) |
| 13 | void RTSetStyle(TStyle *style); |
15 | void RTSetStyle(TStyle *style); |
| 14 | //########################################################################################## |
16 | //########################################################################################## |
| 15 | - | ||
| 16 | // poenostavi delo s TCanvas |
17 | // poenostavi delo s TCanvas |
| 17 | class RTCanvas |
18 | class RTCanvas |
| 18 | { |
19 | { |
| 19 | protected: |
20 | |
| 20 | TCanvas *can; |
- | |
| 21 | TPad *pad; |
- | |
| 22 | TPaveLabel *title, *date; |
- | |
| 23 | public: |
21 | public: |
| 24 | RTCanvas(); |
22 | RTCanvas(); |
| 25 | RTCanvas(char *w_title, char *c_title, int x_min, int y_min, int x_size, int y_size); |
23 | RTCanvas(char *w_title, char *c_title, int x_min, int y_min, int x_size, int y_size); |
| 26 | ~RTCanvas() { |
- | |
| 27 | delete can; |
- | |
| 28 | delete pad; |
- | |
| 29 | delete title; |
- | |
| 30 | delete date; |
- | |
| 31 | } |
- | |
| 32 | 24 | ||
| 33 | void Divide(int nx, int ny); |
25 | void Divide(int nx, int ny); |
| - | 26 | void Divide(int np); |
|
| 34 | TPad* cd(int i); |
27 | TPad* cd(int i); |
| 35 | void SaveAs(const char *filename); |
28 | void SaveAs(const char *filename); |
| - | 29 | void Update(); |
|
| - | 30 | protected: |
|
| - | 31 | TCanvas *can; |
|
| - | 32 | TPad *pad; |
|
| - | 33 | TPaveLabel *title, *date; |
|
| 36 | }; |
34 | }; |
| 37 | //########################################################################################## |
35 | //########################################################################################## |
| 38 | - | ||
| 39 | 36 | ||
| 40 | #endif |
37 | #endif |
| 41 | 38 | ||
| 42 | 39 | ||
| 43 | 40 | ||