diff options
author | bubnikv <bubnikv@gmail.com> | 2018-08-17 16:53:43 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-08-17 16:53:43 +0300 |
commit | 65011f93827a6e10757faef3d14ee068d9da8c94 (patch) | |
tree | 987d53bee4ebfa5d5dddbc3a14811c26953b2aa1 /xs/xsp/BoundingBox.xsp | |
parent | 1ba64da3fee97433d6b580aae8fc8e9875143a66 (diff) |
Removed the x(), y(), z() Point/Pointf/Point3/Pointf3 accessors.
Diffstat (limited to 'xs/xsp/BoundingBox.xsp')
-rw-r--r-- | xs/xsp/BoundingBox.xsp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/xs/xsp/BoundingBox.xsp b/xs/xsp/BoundingBox.xsp index cfc11b40f..d65f8a523 100644 --- a/xs/xsp/BoundingBox.xsp +++ b/xs/xsp/BoundingBox.xsp @@ -25,15 +25,15 @@ double radius(); Clone<Point> min_point() %code{% RETVAL = THIS->min; %}; Clone<Point> max_point() %code{% RETVAL = THIS->max; %}; - int x_min() %code{% RETVAL = THIS->min.x(); %}; - int x_max() %code{% RETVAL = THIS->max.x(); %}; - int y_min() %code{% RETVAL = THIS->min.y(); %}; - int y_max() %code{% RETVAL = THIS->max.y(); %}; - void set_x_min(double val) %code{% THIS->min.x() = val; %}; - void set_x_max(double val) %code{% THIS->max.x() = val; %}; - void set_y_min(double val) %code{% THIS->min.y() = val; %}; - void set_y_max(double val) %code{% THIS->max.y() = val; %}; - std::string serialize() %code{% char buf[2048]; sprintf(buf, "%ld,%ld;%ld,%ld", THIS->min.x(), THIS->min.y(), THIS->max.x(), THIS->max.y()); RETVAL = buf; %}; + int x_min() %code{% RETVAL = THIS->min(0); %}; + int x_max() %code{% RETVAL = THIS->max(0); %}; + int y_min() %code{% RETVAL = THIS->min(1); %}; + int y_max() %code{% RETVAL = THIS->max(1); %}; + void set_x_min(double val) %code{% THIS->min(0) = val; %}; + void set_x_max(double val) %code{% THIS->max(0) = val; %}; + void set_y_min(double val) %code{% THIS->min(1) = val; %}; + void set_y_max(double val) %code{% THIS->max(1) = val; %}; + std::string serialize() %code{% char buf[2048]; sprintf(buf, "%ld,%ld;%ld,%ld", THIS->min(0), THIS->min(1), THIS->max(0), THIS->max(1)); RETVAL = buf; %}; bool defined() %code{% RETVAL = THIS->defined; %}; %{ @@ -65,15 +65,15 @@ new_from_points(CLASS, points) bool empty() %code{% RETVAL = empty(*THIS); %}; Clone<Pointf> min_point() %code{% RETVAL = THIS->min; %}; Clone<Pointf> max_point() %code{% RETVAL = THIS->max; %}; - double x_min() %code{% RETVAL = THIS->min.x(); %}; - double x_max() %code{% RETVAL = THIS->max.x(); %}; - double y_min() %code{% RETVAL = THIS->min.y(); %}; - double y_max() %code{% RETVAL = THIS->max.y(); %}; - void set_x_min(double val) %code{% THIS->min.x() = val; %}; - void set_x_max(double val) %code{% THIS->max.x() = val; %}; - void set_y_min(double val) %code{% THIS->min.y() = val; %}; - void set_y_max(double val) %code{% THIS->max.y() = val; %}; - std::string serialize() %code{% char buf[2048]; sprintf(buf, "%lf,%lf;%lf,%lf", THIS->min.x(), THIS->min.y(), THIS->max.x(), THIS->max.y()); RETVAL = buf; %}; + double x_min() %code{% RETVAL = THIS->min(0); %}; + double x_max() %code{% RETVAL = THIS->max(0); %}; + double y_min() %code{% RETVAL = THIS->min(1); %}; + double y_max() %code{% RETVAL = THIS->max(1); %}; + void set_x_min(double val) %code{% THIS->min(0) = val; %}; + void set_x_max(double val) %code{% THIS->max(0) = val; %}; + void set_y_min(double val) %code{% THIS->min(1) = val; %}; + void set_y_max(double val) %code{% THIS->max(1) = val; %}; + std::string serialize() %code{% char buf[2048]; sprintf(buf, "%lf,%lf;%lf,%lf", THIS->min(0), THIS->min(1), THIS->max(0), THIS->max(1)); RETVAL = buf; %}; bool defined() %code{% RETVAL = THIS->defined; %}; %{ @@ -107,12 +107,12 @@ new_from_points(CLASS, points) bool empty() %code{% RETVAL = empty(*THIS); %}; Clone<Pointf3> min_point() %code{% RETVAL = THIS->min; %}; Clone<Pointf3> max_point() %code{% RETVAL = THIS->max; %}; - double x_min() %code{% RETVAL = THIS->min.x(); %}; - double x_max() %code{% RETVAL = THIS->max.x(); %}; - double y_min() %code{% RETVAL = THIS->min.y(); %}; - double y_max() %code{% RETVAL = THIS->max.y(); %}; - double z_min() %code{% RETVAL = THIS->min.z(); %}; - double z_max() %code{% RETVAL = THIS->max.z(); %}; - std::string serialize() %code{% char buf[2048]; sprintf(buf, "%lf,%lf,%lf;%lf,%lf,%lf", THIS->min.x(), THIS->min.y(), THIS->min.z(), THIS->max.x(), THIS->max.y(), THIS->max.z()); RETVAL = buf; %}; + double x_min() %code{% RETVAL = THIS->min(0); %}; + double x_max() %code{% RETVAL = THIS->max(0); %}; + double y_min() %code{% RETVAL = THIS->min(1); %}; + double y_max() %code{% RETVAL = THIS->max(1); %}; + double z_min() %code{% RETVAL = THIS->min(2); %}; + double z_max() %code{% RETVAL = THIS->max(2); %}; + std::string serialize() %code{% char buf[2048]; sprintf(buf, "%lf,%lf,%lf;%lf,%lf,%lf", THIS->min(0), THIS->min(1), THIS->min(2), THIS->max(0), THIS->max(1), THIS->max(2)); RETVAL = buf; %}; bool defined() %code{% RETVAL = THIS->defined; %}; }; |