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
orgQhull::PointCoordinates::reserveCoordinates
void reserveCoordinates(countT newCoordinates)
Definition: PointCoordinates.cpp:297
countT
int countT
Definition: user_r.h:182
obb.fmt
fmt
Definition: obb.py:145
orgQhull
QhullRidge – Qhull's ridge structure, ridgeT, as a C++ class.
Definition: Coordinates.cpp:21
orgQhull::RboxPoints::rboxMessage
std::string rboxMessage() const
Definition: RboxPoints.cpp:86
orgQhull::RboxPoints::~RboxPoints
~RboxPoints()
Definition: RboxPoints.cpp:60
qhT
Definition: libqhull.h:465
orgQhull::RboxPoints::rboxStatus
int rboxStatus() const
Definition: RboxPoints.cpp:98
orgQhull::QhullPoints::qh
QhullQh * qh() const
Definition: QhullPoints.h:117
orgQhull::RboxPoints::reservePoints
void reservePoints()
Definition: RboxPoints.h:72
orgQhull::RboxPoints::operator=
RboxPoints & operator=(const RboxPoints &)
qhull_ra.h
orgQhull::RboxPoints::newCount
countT newCount() const
Definition: RboxPoints.h:63
orgQhull::RboxPoints::rbox_new_count
countT rbox_new_count
PointCoordinates.qh() is owned by RboxPoints.
Definition: RboxPoints.h:42
orgQhull::QhullPoints::count
countT count() const
Definition: QhullPoints.h:92
orgQhull::RboxPoints::hasRboxMessage
bool hasRboxMessage() const
Definition: RboxPoints.cpp:104
orgQhull::RboxPoints
Definition: RboxPoints.h:37
QhullPoint.h
orgQhull::QhullPoints::dimension
int dimension() const
Definition: QhullPoints.h:98
PointCoordinates.h
QHULL_ASSERT
#define QHULL_ASSERT
Definition: QhullError.h:16
qh_fprintf_rbox
void qh_fprintf_rbox(FILE *fp, int msgcode, const char *fmt,...)
Definition: userprintf_rbox.c:40
orgQhull::RboxPoints::setNewCount
void setNewCount(countT pointCount)
Definition: RboxPoints.h:67
orgQhull::RboxPoints::RboxPoints
RboxPoints()
Definition: RboxPoints.cpp:35
orgQhull::RboxPoints::allocateQhullQh
void allocateQhullQh()
Definition: RboxPoints.cpp:70
orgQhull::PointCoordinates::appendPoints
void appendPoints(std::istream &in)
Definition: PointCoordinates.cpp:231


hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:44:59