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;
The SbBox2d class is a 2 dimensional box with double precision corner coordinates.
Definition: SbBox2d.h:33
The SbBox2f class is a 2 dimensional box with floating point corner coordinates.
Definition: SbBox2f.h:33
The SbBox2i32 class is a 2 dimensional box with int32_t coordinates.
Definition: SbBox2i32.h:34
The SbBox2s class is a 2 dimensional box with short integer coordinates.
Definition: SbBox2s.h:34
int operator==(const SbBox2s &b1, const SbBox2s &b2)
Definition: SbBox2s.cpp:432
SbBox2s(const SbBox2i32 &box)
Definition: SbBox2s.h:39
SbBox2s(const SbBox2f &box)
Definition: SbBox2s.h:40
int operator!=(const SbBox2s &b1, const SbBox2s &b2)
Definition: SbBox2s.cpp:443
SbVec2s & getMax(void)
Definition: SbBox2s.h:56
SbVec2f getCenter(void) const
Definition: SbBox2s.h:67
SbBool isEmpty(void) const
Definition: SbBox2s.h:61
SbVec2s & getMin(void)
Definition: SbBox2s.h:54
SbBox2s(const SbBox2d &box)
Definition: SbBox2s.h:41
The SbVec2f class is a 2 dimensional vector with floating point coordinates.
Definition: SbVec2f.h:36
The SbVec2s class is a 2 dimensional vector with short integer coordinates.
Definition: SbVec2s.h:37