1#ifndef COIN_SBBOX3I32_H
2#define COIN_SBBOX3I32_H
36#include <Inventor/SbVec3i32.h>
37#include <Inventor/SbVec3f.h>
56 { minpt.setValue(
xmin, ymin,
zmin); maxpt.setValue(
xmax, ymax,
zmax);
return *
this; }
75 void extendBy(
const SbVec3f & point);
78 SbBool
isEmpty(
void)
const {
return (maxpt[0] < minpt[0]); }
80 {
return ((maxpt[0] > minpt[0]) && (maxpt[1] > minpt[1]) && (maxpt[2] > minpt[2])); }
82 { int32_t
dx = 0,
dy = 0,
dz = 0; getSize(
dx,
dy,
dz);
return (
float(
dx) *
float(
dy) *
float(
dz)); }
84 SbBool intersect(
const SbVec3i32 & point)
const;
86 SbBool intersect(
const SbVec3f & point)
const;
96 else {
sizeX = maxpt[0] - minpt[0];
sizeY = maxpt[1] - minpt[1];
sizeZ = maxpt[2] - minpt[2]; } }
100 this->getSize(v[0], v[1], v[2]);
104 void getSpan(
const SbVec3f & direction,
float &
dmin,
float &
dmax)
const;
113 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
void getOrigin(int32_t &originX, int32_t &originY, int32_t &originZ) const
Definition SbBox3i32.h:92
void getSize(int32_t &sizeX, int32_t &sizeY, int32_t &sizeZ) const
Definition SbBox3i32.h:94
void getBounds(int32_t &xmin, int32_t &ymin, int32_t &zmin, int32_t &xmax, int32_t &ymax, int32_t &zmax) const
Definition SbBox3i32.h:63
SbBox3i32 & setBounds(int32_t xmin, int32_t ymin, int32_t zmin, int32_t xmax, int32_t ymax, int32_t zmax)
Definition SbBox3i32.h:55
SbVec3f getCenter(void) const
Definition SbBox3i32.h:91
const SbVec3i32 & getMax(void) const
Definition SbBox3i32.h:70
SbBox3i32(const SbBox3f &box)
Definition SbBox3i32.h:52
SbBox3i32(int32_t xmin, int32_t ymin, int32_t zmin, int32_t xmax, int32_t ymax, int32_t zmax)
Definition SbBox3i32.h:47
SbBool isEmpty(void) const
Definition SbBox3i32.h:78
void getBounds(SbVec3i32 &minpoint, SbVec3i32 &maxpoint) const
Definition SbBox3i32.h:65
SbVec3i32 & getMin(void)
Definition SbBox3i32.h:69
SbBox3i32(const SbBox3s &box)
Definition SbBox3i32.h:51
SbVec3i32 getSize(void) const
Definition SbBox3i32.h:98
float getVolume(void) const
Definition SbBox3i32.h:81
SbBool hasVolume(void) const
Definition SbBox3i32.h:79
SbBox3i32(const SbVec3i32 &minpoint, const SbVec3i32 &maxpoint)
Definition SbBox3i32.h:49
SbVec3i32 & getMax(void)
Definition SbBox3i32.h:71
SbBox3i32(const SbBox3d &box)
Definition SbBox3i32.h:53
SbBox3i32 & setBounds(const SbVec3i32 &minpoint, const SbVec3i32 &maxpoint)
Definition SbBox3i32.h:57
const SbVec3i32 & getMin(void) const
Definition SbBox3i32.h:68
SbBox3i32(void)
Definition SbBox3i32.h:46
The SbBox3s class is a 3 dimensional box with short integer coordinates.
Definition SbBox3s.h:43
The SbList class is a template container class for lists.
Definition SbList.h:70
SbList(const int sizehint=DEFAULTSIZE)
Definition SbList.h:78
The SbMatrix class is a 4x4 dimensional representation of a matrix.
Definition SbMatrix.h:47
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition SbVec3f.h:51
Definition SbVec3i32.h:48