Go to the documentation of this file.Go to the SVN repository for this file.
1 #ifndef GUI_UTILS__BBOX_HPP
2 #define GUI_UTILS__BBOX_HPP
59 for (
unsigned int i = 0;
i <
N; ++
i) {
83 for (
unsigned int i = 0;
i < dim; ++
i) {
89 for (
unsigned int i = 0;
i < dim; ++
i) {
102 unsigned int dim = 3;
107 for (
unsigned int i = 0;
i < dim; ++
i) {
113 for (
unsigned int i = 0;
i < dim; ++
i) {
129 void Add(
const float vals[
N],
int num_sets = 1,
int stride = 0)
133 while (num_sets-- > 0) {
135 for (
unsigned int i = 0;
i <
N; ++
i) {
142 for (
unsigned int i = 0;
i <
N; ++
i) {
144 if (vals[idx] <
lower[
i]) {
147 else if (vals[idx] >
upper[
i]) {
168 for (
unsigned int i = 0;
i <
N; ++
i) {
Include a standard set of the NCBI C++ Toolkit most basic headers.
void Add(const CBBox< N > &bbox)
void Add(const CVect2< float > &pt)
void Add(const CVect3< float > &pt)
CNcbiOstream & operator<<(CNcbiOstream &strm, const CBBox< 3 > &bb)
void Add(const float vals[N], int num_sets=1, int stride=0)
virtual void PrintTo(CNcbiOstream &strm) const
pair< float, float > GetNthRange(unsigned int n) const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.