27 #include <Inventor/SbVec2d.h> 36 SbBox2d(
double xmin,
double ymin,
double xmax,
double ymax);
43 void setBounds(
double xmin,
double ymin,
double xmax,
double ymax);
49 void getBounds(
double & xmin,
double & ymin,
double & xmax,
double & ymax)
const;
52 const SbVec2d & getMin(
void)
const;
54 const SbVec2d & getMax(
void)
const;
57 void extendBy(
const SbVec2d & point);
58 void extendBy(
const SbBox2d & box);
60 SbBool isEmpty(
void)
const;
61 SbBool hasArea(
void)
const;
63 SbBool intersect(
const SbVec2d & point)
const;
64 SbBool intersect(
const SbBox2d & box)
const;
69 void getOrigin(
double & x0,
double & y0)
const;
70 void getSize(
double & w,
double & h)
const;
71 double getAspectRatio(
void)
const;
73 friend COIN_DLL_API
int operator ==(
const SbBox2d & b1,
const SbBox2d & b2);
74 friend COIN_DLL_API
int operator !=(
const SbBox2d & b1,
const SbBox2d & b2);
79 double width(
void)
const;
80 double height(
void)
const;
86 #endif // !COIN_SBBOX2D_H SbBox2d(const SbBox2i32 &box)
Definition: SbBox2d.h:40
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
SbBox2d(const SbBox2f &box)
Definition: SbBox2d.h:38
SbVec2d & getMin(void)
Definition: SbBox2d.h:53
int operator!=(const SbBox2i32 &b1, const SbBox2i32 &b2)
Definition: SbBox2i32.h:91
The SbBox2s class is a 2 dimensional box with short integer coordinates.This box class is used by oth...
Definition: SbBox2s.h:34
The SbVec2d class is a 2 dimensional vector with double precision floating point coordinates.
Definition: SbVec2d.h:36
The SbBox2f class is a 2 dimensional box with floating point corner coordinates.This box class is use...
Definition: SbBox2f.h:33
SbBox2d(const SbBox2s &box)
Definition: SbBox2d.h:39
The SbBox2i32 class is a 2 dimensional box with int32_t coordinates.This box class is used by other c...
Definition: SbBox2i32.h:34
SbVec2d & getMax(void)
Definition: SbBox2d.h:55
int operator==(const SbBox2i32 &b1, const SbBox2i32 &b2)
Definition: SbBox2i32.h:87