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