File indexing completed on 2025-01-18 10:01:57
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef RBOXPOINTS_H
0010 #define RBOXPOINTS_H
0011
0012 #include "libqhull_r/qhull_ra.h"
0013 #include "libqhullcpp/QhullPoint.h"
0014 #include "libqhullcpp/PointCoordinates.h"
0015
0016 #include <stdarg.h>
0017 #include <string>
0018 #include <vector>
0019 #include <istream>
0020 #include <ostream>
0021 #include <sstream>
0022
0023 namespace orgQhull {
0024
0025 #
0026
0027 class RboxPoints;
0028
0029 class RboxPoints : public PointCoordinates {
0030
0031 private:
0032 #
0033
0034 countT rbox_new_count;
0035 int rbox_status;
0036 std::string rbox_message;
0037
0038
0039 friend void ::qh_fprintf_rbox(qhT *qh, FILE *fp, int msgcode, const char *fmt, ... );
0040
0041 public:
0042 #
0043 RboxPoints();
0044 explicit RboxPoints(const char *rboxCommand);
0045 ~RboxPoints();
0046 private:
0047 RboxPoints(const RboxPoints &);
0048 RboxPoints &operator=(const RboxPoints &);
0049 private:
0050 void allocateQhullQh();
0051
0052 public:
0053 #
0054 void clearRboxMessage();
0055 countT newCount() const { return rbox_new_count; }
0056 std::string rboxMessage() const;
0057 int rboxStatus() const;
0058 bool hasRboxMessage() const;
0059 void setNewCount(countT pointCount) { QHULL_ASSERT(pointCount>=0); rbox_new_count= pointCount; }
0060
0061 #
0062 void appendPoints(const char* rboxCommand);
0063 using PointCoordinates::appendPoints;
0064 void reservePoints() { reserveCoordinates((count()+newCount())*dimension()); }
0065 };
0066
0067 }
0068
0069 #endif