diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-01-18 16:37:23 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-01-18 16:37:23 +0100 |
commit | 1b9caaa5d92c0b7210bfadc708b12aa2298c2f16 (patch) | |
tree | bfc234c556d281e0078990ca49b1a0482761d77a /src | |
parent | 61988218606c52684c8121a8274245bde4d3dcf5 (diff) |
inline get/set methods
Diffstat (limited to 'src')
-rw-r--r-- | src/ImageMetaData.H | 38 | ||||
-rw-r--r-- | src/ImageMetaData.cxx | 95 |
2 files changed, 19 insertions, 114 deletions
diff --git a/src/ImageMetaData.H b/src/ImageMetaData.H index a305415..b3cc85c 100644 --- a/src/ImageMetaData.H +++ b/src/ImageMetaData.H @@ -38,27 +38,27 @@ class ImageMetaData { int load_image(char *name); int save_image(char *in_img, char *out_img); - const char *get_manufacturer(); - const char *get_model(); - double get_longitude(); - double get_latitude(); - double get_height(); - double get_direction(); - double get_nick(); - double get_tilt(); - double get_focal_length(); - double get_focal_length_35mm(); - int get_projection_type(); + const char *get_manufacturer() {return manufacturer;}; + const char *get_model() {return model;}; + double get_longitude() {return longitude;}; + double get_latitude() {return latitude;}; + double get_height() {return height;}; + double get_direction() {return direction;}; + double get_nick() {return nick;}; + double get_tilt() {return tilt;}; + double get_focal_length() {return focal_length;}; + double get_focal_length_35mm() {return focal_length_35mm;}; + int get_projection_type() {return projection_type;}; void get_distortion_params(double *_k0, double *_k1, double *_x0); - void set_longitude(double v); - void set_latitude(double v); - void set_height(double v); - void set_direction(double v); - void set_nick(double v); - void set_tilt(double v); - void set_focal_length_35mm(double v); - void set_projection_type(int v); + void set_longitude(double v) {longitude = v;}; + void set_latitude(double v) {latitude = v;}; + void set_height(double v) {height = v;}; + void set_direction(double v) {direction = v;}; + void set_nick(double v) {nick = v;}; + void set_tilt(double v) {tilt = v;}; + void set_focal_length_35mm(double v) {focal_length_35mm = v;}; + void set_projection_type(int v) {projection_type = v;}; void set_distortion_params(double _k0, double _k1, double _x0); }; #endif diff --git a/src/ImageMetaData.cxx b/src/ImageMetaData.cxx index 0fa95d4..04b344e 100644 --- a/src/ImageMetaData.cxx +++ b/src/ImageMetaData.cxx @@ -275,101 +275,6 @@ ImageMetaData::save_image_jpgcom(char *in_img, char *out_img) { return 0; } -const char* -ImageMetaData::get_manufacturer() { - return manufacturer; -} - -const char* -ImageMetaData::get_model() { - return model; -} - -double -ImageMetaData::get_longitude() { - return longitude; -} - -double -ImageMetaData::get_latitude() { - return latitude; -} - -double -ImageMetaData::get_height() { - return height; -} - -double -ImageMetaData::get_direction() { - return direction; -} - -double -ImageMetaData::get_nick() { - return nick; -} - -double -ImageMetaData::get_tilt() { - return tilt; -} - -double -ImageMetaData::get_focal_length() { - return focal_length; -} - -double -ImageMetaData::get_focal_length_35mm() { - return focal_length_35mm; -} - -int -ImageMetaData::get_projection_type() { - return projection_type; -} - -void -ImageMetaData::set_longitude(double v) { - longitude = v; -} - -void -ImageMetaData::set_latitude(double v) { - latitude = v; -} - -void -ImageMetaData::set_height(double v) { - height = v; -} - -void -ImageMetaData::set_direction(double v) { - direction = v; -} - -void -ImageMetaData::set_nick(double v) { - nick = v; -} - -void -ImageMetaData::set_tilt(double v) { - tilt = v; -} - -void -ImageMetaData::set_focal_length_35mm(double v) { - focal_length_35mm = v; -} - -void -ImageMetaData::set_projection_type(int v) { - projection_type = v; -} - void ImageMetaData::get_distortion_params(double *_k0, double *_k1, double *_x0) { *_k0 = k0; |