27 #include <Inventor/SbVec2s.h> 28 #include <Inventor/SbVec2f.h> 37 SbBox2s(
short xmin,
short ymin,
short xmax,
short ymax);
44 void setBounds(
short xmin,
short ymin,
short xmax,
short ymax);
50 void getBounds(
short & xmin,
short & ymin,
short & xmax,
short & ymax)
const;
53 const SbVec2s & getMin(
void)
const;
55 const SbVec2s & getMax(
void)
const;
58 void extendBy(
const SbVec2s & point);
59 void extendBy(
const SbBox2s & box);
61 SbBool
isEmpty(
void)
const {
return (maxpt[0] < minpt[0]); }
62 SbBool hasArea(
void)
const;
64 SbBool intersect(
const SbVec2s & point)
const;
65 SbBool intersect(
const SbBox2s & box)
const;
69 void getOrigin(
short & originX,
short & originY)
const;
70 void getSize(
short & sizeX,
short & sizeY)
const;
71 float getAspectRatio(
void)
const;
72 friend COIN_DLL_API
int operator ==(
const SbBox2s & b1,
const SbBox2s & b2);
73 friend COIN_DLL_API
int operator !=(
const SbBox2s & b1,
const SbBox2s & b2);
78 short width(
void)
const;
79 short height(
void)
const;
85 #endif // !COIN_SBBOX2S_H The SbVec2f class is a 2 dimensional vector with floating point coordinates.
Definition: SbVec2f.h:36
SbVec2f getCenter(void) const
Definition: SbBox2s.h:67
The SbBox2d class is a 2 dimensional box with double precision corner coordinates....
Definition: SbBox2d.h:33
SbBox2s(const SbBox2d &box)
Definition: SbBox2s.h:41
The SbBox2s class is a 2 dimensional box with short integer coordinates.This box class is used by oth...
Definition: SbBox2s.h:34
SbBox2s(const SbBox2f &box)
Definition: SbBox2s.h:40
The SbBox2f class is a 2 dimensional box with floating point corner coordinates.This box class is use...
Definition: SbBox2f.h:33
SbBool isEmpty(void) const
Definition: SbBox2s.h:61
The SbBox2i32 class is a 2 dimensional box with int32_t coordinates.This box class is used by other c...
Definition: SbBox2i32.h:34
SbVec2s & getMin(void)
Definition: SbBox2s.h:54
SbVec2s & getMax(void)
Definition: SbBox2s.h:56
int operator !=(const SbBox2i32 &b1, const SbBox2i32 &b2)
Definition: SbBox2i32.h:91
The SbVec2s class is a 2 dimensional vector with short integer coordinates.This vector class is used ...
Definition: SbVec2s.h:37
int operator==(const SbBox2i32 &b1, const SbBox2i32 &b2)
Definition: SbBox2i32.h:87
SbBox2s(const SbBox2i32 &box)
Definition: SbBox2s.h:39