27#include <Inventor/SbVec3s.h>
28#include <Inventor/SbVec3f.h>
44 void setBounds(
short xmin,
short ymin,
short zmin,
short xmax,
short ymax,
short zmax);
50 const SbVec3s & getMin(
void)
const;
52 const SbVec3s & getMax(
void)
const;
55 void extendBy(
const SbVec3s & point);
58 SbBool
isEmpty(
void)
const {
return (maxpt[0] < minpt[0]); }
60 {
return ((maxpt[0] > minpt[0]) && (maxpt[1] > minpt[1]) && (maxpt[2] > minpt[2])); }
64 SbBool intersect(
const SbVec3s & point)
const;
66 void getBounds(
short &
xmin,
short & ymin,
68 short & ymax,
short &
zmax)
const;
72 {
return SbVec3f((minpt[0]+maxpt[0])*0.5f, (minpt[1]+maxpt[1])*0.5f, (minpt[2]+maxpt[2])*0.5f); }
82 short width(
void)
const;
83 short height(
void)
const;
84 short depth(
void)
const;
85 SbBool hasArea(
void)
const;
The SbBox3d class is an abstraction for an axis aligned 3 dimensional box.
Definition SbBox3d.h:37
The SbBox3f class is an abstraction for an axis aligned 3 dimensional box.
Definition SbBox3f.h:37
Definition SbBox3i32.h:35
The SbBox3s class is a 3 dimensional box with short integer coordinates.
Definition SbBox3s.h:34
SbBox3s(const SbBox3d &box)
Definition SbBox3s.h:41
SbBool isEmpty(void) const
Definition SbBox3s.h:58
SbBox3s(const SbBox3f &box)
Definition SbBox3s.h:40
SbBox3s(const SbBox3i32 &box)
Definition SbBox3s.h:39
SbBool hasVolume(void) const
Definition SbBox3s.h:59
int getVolume(void) const
Definition SbBox3s.h:61
SbVec3s & getMin(void)
Definition SbBox3s.h:51
SbVec3f getCenter(void) const
Definition SbBox3s.h:71
SbVec3s & getMax(void)
Definition SbBox3s.h:53
The SbList class is a template container class for lists.
Definition SbList.h:47
int operator!=(const SbList< Type > &l) const
Definition SbList.h:194
int operator==(const SbList< Type > &l) const
Definition SbList.h:186
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition SbVec3f.h:37
The SbVec3s class is a 3 dimensional vector with short integer coordinates.
Definition SbVec3s.h:36