27 #include <Inventor/SbVec2f.h> 36 SbBox2f(
float xmin,
float ymin,
float xmax,
float ymax);
43 void setBounds(
float xmin,
float ymin,
float xmax,
float ymax);
49 void getBounds(
float & xmin,
float & ymin,
float & xmax,
float & ymax)
const;
52 const SbVec2f & getMin(
void)
const;
54 const SbVec2f & getMax(
void)
const;
57 void extendBy(
const SbVec2f & point);
58 void extendBy(
const SbBox2f & box);
60 SbBool isEmpty(
void)
const;
61 SbBool hasArea(
void)
const;
63 SbBool intersect(
const SbVec2f & point)
const;
64 SbBool intersect(
const SbBox2f & box)
const;
68 void getOrigin(
float & x0,
float & y0)
const;
69 void getSize(
float & w,
float & h)
const;
70 float getAspectRatio(
void)
const;
72 friend COIN_DLL_API
int operator ==(
const SbBox2f & b1,
const SbBox2f & b2);
73 friend COIN_DLL_API
int operator !=(
const SbBox2f & b1,
const SbBox2f & b2);
78 float width(
void)
const;
79 float height(
void)
const;
82 COIN_DLL_API
int operator ==(
const SbBox2f & b1,
const SbBox2f & b2);
83 COIN_DLL_API
int operator !=(
const SbBox2f & b1,
const SbBox2f & b2);
85 #endif // !COIN_SBBOX2F_H The SbVec2f class is a 2 dimensional vector with floating point coordinates.
Definition: SbVec2f.h:36
SbBox2f(const SbBox2d &box)
Definition: SbBox2f.h:38
SbVec2f & getMax(void)
Definition: SbBox2f.h:55
The SbBox2d class is a 2 dimensional box with double precision corner coordinates.This box class is used by many other classes in Coin for data exchange and storage. It provides two box corners with double precision coordinates, which is among other things useful for representing screen or canvas dimensions in normalized coordinates.
Definition: SbBox2d.h:33
SbBox2f(const SbBox2s &box)
Definition: SbBox2f.h:39
The SbBox2s class is a 2 dimensional box with short integer coordinates.This box class is used by oth...
Definition: SbBox2s.h:34
SbBox2f(const SbBox2i32 &box)
Definition: SbBox2f.h:40
The SbBox2f class is a 2 dimensional box with floating point corner coordinates.This box class is use...
Definition: SbBox2f.h:33
The SbBox2i32 class is a 2 dimensional box with int32_t coordinates.This box class is used by other c...
Definition: SbBox2i32.h:34
SbVec2f & getMin(void)
Definition: SbBox2f.h:53