Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F74624674
RboxPoints.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jul 28, 19:28
Size
2 KB
Mime Type
text/x-c++
Expires
Tue, Jul 30, 19:28 (2 d)
Engine
blob
Format
Raw Data
Handle
19417925
Attached To
rCADDMESH CADD_mesher
RboxPoints.h
View Options
/****************************************************************************
**
** Copyright (C) 2008-2010 C.B. Barber. All rights reserved.
** $Id: //main/2011/qhull/src/libqhullcpp/RboxPoints.h#2 $$Change: 1341 $
** $DateTime: 2011/03/07 21:13:54 $$Author: bbarber $
**
****************************************************************************/
#ifndef RBOXPOINTS_H
#define RBOXPOINTS_H
#include "QhullPoint.h"
#include "PointCoordinates.h"
extern
"C"
{
#include "libqhull/libqhull.h"
};
#include <stdarg.h>
#include <string>
#include <vector>
#include <istream>
#include <ostream>
#include <sstream>
namespace
orgQhull
{
#
//Types
//! RboxPoints -- generate random PointCoordinates for Qhull
class
RboxPoints
;
class
RboxPoints
:
public
PointCoordinates
{
private:
#
//Fields and friends
int
rbox_new_count
;
//! Number of points for PointCoordinates
int
rbox_status
;
//! error status from rboxpoints. qh_ERRnone if none.
std
::
string
rbox_message
;
//! stderr from rboxpoints
friend
void
::
qh_fprintf_rbox
(
FILE
*
fp
,
int
msgcode
,
const
char
*
fmt
,
...
);
public:
#
//Construct
RboxPoints
();
explicit
RboxPoints
(
const
char
*
rboxCommand
);
RboxPoints
(
const
RboxPoints
&
other
);
RboxPoints
&
operator
=
(
const
RboxPoints
&
other
);
~
RboxPoints
();
public:
#
//GetSet
void
clearRboxMessage
();
int
newCount
()
const
{
return
rbox_new_count
;
}
std
::
string
rboxMessage
()
const
;
int
rboxStatus
()
const
;
bool
hasRboxMessage
()
const
;
void
setNewCount
(
int
pointCount
)
{
QHULL_ASSERT
(
pointCount
>=
0
);
rbox_new_count
=
pointCount
;
}
#
//Modify
void
appendPoints
(
const
char
*
rboxCommand
);
using
PointCoordinates
::
appendPoints
;
void
reservePoints
()
{
reserveCoordinates
((
count
()
+
newCount
())
*
dimension
());
}
};
//class RboxPoints
}
//namespace orgQhull
#endif
// RBOXPOINTS_H
Event Timeline
Log In to Comment