1SbBox2f(3IV)()                                                  SbBox2f(3IV)()
2
3
4

NAME

6       SbBox2f — 2D box class
7

INHERITS FROM

9       SbBox2f
10

SYNOPSIS

12       #include <Inventor/SbBox.h>
13
14          Methods from class SbBox2f:
15
16                         SbBox2f()
17                         SbBox2f(float  xmin,  float  ymin,  float  xmax float
18                              ymax)
19                         SbBox2f(const SbVec2f &min, const SbVec2f &max)
20     void                ~SbBox2f()
21     const SbVec2f &     getMin()
22     const SbVec2f &     getMax()
23     SbVec2f             getCenter()
24     void                extendBy(const SbVec2f &point)
25     void                extendBy(const SbBox2f &box)
26     SbBool              intersect(const SbVec2f &point)
27     SbBool              intersect(const SbBox2f &box)
28     void                setBounds(float xmin, float ymin, float  xmax,  float
29                              ymax)
30     void                setBounds(const SbVec2f &min, const SbVec2f &max)
31     void                getBounds(float  &xmin,  float  &ymin,  float  &xmax,
32                              float &ymax)
33     void                getBounds(SbVec2f &min, SbVec2f &max)
34     void                getOrigin(float &x0, float &y0)
35     void                getSize(float &x, float &y)
36     float               getAspectRatio()
37     void                makeEmpty()
38     SbBool              isEmpty()
39     SbBool              hasArea()
40
41

DESCRIPTION

43       2D box which has planes parallel to the major axes and is specified  by
44       two  points  (specified as floating point) on a diagonal. This class is
45       part of the standard Inventor datatype classes and is used as input and
46       output to geometry operations.
47

METHODS

49                         SbBox2f()
50                         SbBox2f(float  xmin,  float  ymin,  float  xmax float
51                              ymax)
52                         SbBox2f(const SbVec2f &min, const SbVec2f &max)
53     void                ~SbBox2f()
54          Constructors and destructor for a 2D float box.  xmin,  ymin,  xmax,
55          and  ymax  are the bounds of the box. min and max are the corners of
56          the diagonal that define the box.
57
58     const SbVec2f &     getMin()
59     const SbVec2f &     getMax()
60          Returns the minimum and maximum points of the box.
61
62     SbVec2f             getCenter()
63          Returns the center of the box.
64
65     void                extendBy(const SbVec2f &point)
66     void                extendBy(const SbBox2f &box)
67          Extends this box (if necessary) to contain the  specified  point  or
68          other box.
69
70     SbBool              intersect(const SbVec2f &point)
71     SbBool              intersect(const SbBox2f &box)
72          Returns TRUE if the specified point or box intersects this box.
73
74     void                setBounds(float  xmin,  float ymin, float xmax, float
75                              ymax)
76     void                setBounds(const SbVec2f &min, const SbVec2f &max)
77          Sets the corners of the box.
78
79     void                getBounds(float  &xmin,  float  &ymin,  float  &xmax,
80                              float &ymax)
81     void                getBounds(SbVec2f &min, SbVec2f &max)
82          Gets the corners of the box.
83
84     void                getOrigin(float &x0, float &y0)
85          Gets box origin.
86
87     void                getSize(float &x, float &y)
88          Gets box size.
89
90     float               getAspectRatio()
91          Gets box aspect ratio.
92
93     void                makeEmpty()
94          Makes an empty box.
95
96     SbBool              isEmpty()
97          Returns TRUE if the box is empty, and FALSE otherwise.
98
99     SbBool              hasArea()
100          Returns  TRUE  if both dimensions of the box have positive size, and
101          FALSE otherwise.
102
103

SEE ALSO

105       SbBox3f, SbXfBox3f, SbBox2s, SbVec3f, SbVec2f, SbVec2s, SbMatrix
106
107
108
109
110                                                                SbBox2f(3IV)()
Impressum