36#include <Inventor/SbVec3s.h>
37#include <Inventor/SbVec3f.h>
55 { minpt.setValue(
xmin, ymin,
zmin); maxpt.setValue(
xmax, ymax,
zmax);
return *
this; }
63 short &
xmax,
short & ymax,
short &
zmax)
const
76 SbBool
isEmpty(
void)
const {
return (maxpt[0] < minpt[0]); }
78 {
return ((maxpt[0] > minpt[0]) && (maxpt[1] > minpt[1]) && (maxpt[2] > minpt[2])); }
82 SbBool intersect(
const SbVec3s &
pt)
const;
87 {
return SbVec3f((minpt[0]+maxpt[0])*0.5f, (minpt[1]+maxpt[1])*0.5f, (minpt[2]+maxpt[2])*0.5f); }
92 else {
sizeX = maxpt[0] - minpt[0];
sizeY = maxpt[1] - minpt[1];
sizeZ = maxpt[2] - minpt[2]; } }
95 this->getSize(v[0], v[1],v[2]);
105 return ((
b1.getMin() ==
b2.getMin()) && (
b1.getMax() ==
b2.getMax()));
The SbBox3d class is an abstraction for an axis aligned 3 dimensional box.
Definition SbBox3d.h:46
The SbBox3f class is an abstraction for an axis aligned 3 dimensional box.
Definition SbBox3f.h:46
The SbBox3i32 class is a 3 dimensional box with 32-bit integer coordinates.
Definition SbBox3i32.h:44
The SbBox3s class is a 3 dimensional box with short integer coordinates.
Definition SbBox3s.h:43
SbBox3s(const SbVec3s &minpoint, const SbVec3s &maxpoint)
Definition SbBox3s.h:48
SbBox3s(const SbBox3d &box)
Definition SbBox3s.h:52
const SbVec3s & getMax(void) const
Definition SbBox3s.h:70
SbBool isEmpty(void) const
Definition SbBox3s.h:76
void getBounds(SbVec3s &minpoint, SbVec3s &maxpoint) const
Definition SbBox3s.h:65
SbBox3s(const SbBox3f &box)
Definition SbBox3s.h:51
SbBox3s & setBounds(short xmin, short ymin, short zmin, short xmax, short ymax, short zmax)
Definition SbBox3s.h:54
void getBounds(short &xmin, short &ymin, short &zmin, short &xmax, short &ymax, short &zmax) const
Definition SbBox3s.h:62
SbBox3s & setBounds(const SbVec3s &minpoint, const SbVec3s &maxpoint)
Definition SbBox3s.h:56
SbBox3s(const SbBox3i32 &box)
Definition SbBox3s.h:50
SbVec3s getSize(void) const
Definition SbBox3s.h:93
SbBool hasVolume(void) const
Definition SbBox3s.h:77
int getVolume(void) const
Definition SbBox3s.h:79
SbVec3s & getMin(void)
Definition SbBox3s.h:69
SbVec3f getCenter(void) const
Definition SbBox3s.h:86
const SbVec3s & getMin(void) const
Definition SbBox3s.h:68
void getOrigin(short &originX, short &originY, short &originZ) const
Definition SbBox3s.h:88
SbBox3s(short xmin, short ymin, short zmin, short xmax, short ymax, short zmax)
Definition SbBox3s.h:46
void getSize(short &sizeX, short &sizeY, short &sizeZ) const
Definition SbBox3s.h:90
SbBox3s(void)
Definition SbBox3s.h:45
SbVec3s & getMax(void)
Definition SbBox3s.h:71
The SbList class is a template container class for lists.
Definition SbList.h:70
SbList(const int sizehint=DEFAULTSIZE)
Definition SbList.h:78
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition SbVec3f.h:51
The SbVec3s class is a 3 dimensional vector with short integer coordinates.
Definition SbVec3s.h:51