27#include <Inventor/SbVec2s.h>
28#include <Inventor/SbVec2f.h>
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);
61 SbBool
isEmpty(
void)
const {
return (maxpt[0] < minpt[0]); }
62 SbBool hasArea(
void)
const;
64 SbBool intersect(
const SbVec2s & point)
const;
70 void getSize(
short &
sizeX,
short &
sizeY)
const;
71 float getAspectRatio(
void)
const;
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
SbBox2s(const SbBox2i32 &box)
Definition SbBox2s.h:39
SbBox2s(const SbBox2f &box)
Definition SbBox2s.h:40
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 SbList class is a template container class for lists.
Definition SbList.h:47
int operator!=(const SbList< Type > &l) const
Definition SbList.h:194
int operator==(const SbList< Type > &l) const
Definition SbList.h:186
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