RboxPoints.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (c) 2008-2015 C.B. Barber. All rights reserved.
4 ** $Id: //main/2015/qhull/src/libqhullcpp/RboxPoints.h#3 $$Change: 2066 $
5 ** $DateTime: 2016/01/18 19:29:17 $$Author: bbarber $
6 **
7 ****************************************************************************/
8 
9 #ifndef RBOXPOINTS_H
10 #define RBOXPOINTS_H
11 
12 extern "C" {
13  #include "libqhull_r/qhull_ra.h"
14 }
15 #include "libqhullcpp/QhullPoint.h"
17 
18 #include <stdarg.h>
19 #include <string>
20 #include <vector>
21 #include <istream>
22 #include <ostream>
23 #include <sstream>
24 
25 namespace orgQhull {
26 
27 #
28  class RboxPoints;
30 
31 class RboxPoints : public PointCoordinates {
32 
33 private:
34 #
35  countT rbox_new_count;
37  int rbox_status;
38  std::string rbox_message;
39 
40  // '::' is required for friend references
41  friend void ::qh_fprintf_rbox(qhT *qh, FILE *fp, int msgcode, const char *fmt, ... );
42 
43 public:
44 #
45  RboxPoints();
46  explicit RboxPoints(const char *rboxCommand);
47  ~RboxPoints();
48 private: // Disable copy constructor and assignment. RboxPoints owns QhullQh.
49  RboxPoints(const RboxPoints &);
51 private:
52  void allocateQhullQh();
53 
54 public:
55 #
56  void clearRboxMessage();
57  countT newCount() const { return rbox_new_count; }
58  std::string rboxMessage() const;
59  int rboxStatus() const;
60  bool hasRboxMessage() const;
61  void setNewCount(countT pointCount) { QHULL_ASSERT(pointCount>=0); rbox_new_count= pointCount; }
62 
63 #
64  void appendPoints(const char* rboxCommand);
67 };//class RboxPoints
68 
69 }//namespace orgQhull
70 
71 #endif // RBOXPOINTS_H
Definition: libqhull.h:465
QhullRidge – Qhull&#39;s ridge structure, ridgeT, as a C++ class.
Definition: Coordinates.cpp:21
countT count() const
Definition: QhullPoints.h:86
QhullQh * qh() const
Definition: QhullPoints.h:111
countT rbox_new_count
PointCoordinates.qh() is owned by RboxPoints.
Definition: RboxPoints.h:36
int dimension() const
Definition: QhullPoints.h:92
void appendPoints(std::istream &in)
void reserveCoordinates(countT newCoordinates)
#define QHULL_ASSERT
Definition: QhullError.h:16
countT newCount() const
Definition: RboxPoints.h:57
int rboxStatus() const
Definition: RboxPoints.cpp:98
void setNewCount(countT pointCount)
Definition: RboxPoints.h:61
fmt
Definition: obb.py:126
std::string rboxMessage() const
Definition: RboxPoints.cpp:86
RboxPoints & operator=(const RboxPoints &)
void qh_fprintf_rbox(FILE *fp, int msgcode, const char *fmt,...)
int countT
Definition: user_r.h:182
bool hasRboxMessage() const
Definition: RboxPoints.cpp:104


hpp-fcl
Author(s):
autogenerated on Fri Jun 2 2023 02:39:02