Debian Codegraph @

doc/man/man3/ivm/basics/SbBox2s.ivm

raw
1 NAME SbBox2s SbBox2s "" { 2D box class }
2 INCLUDE SbBox.h
3 DESC {
4 2D box which has planes parallel to the major axes and is specified by two
5 points (specified with short integers) on a diagonal. This class is part of
6 the standard Inventor datatype classes and is used as input and output to
7 geometry operations.
8 }
9
10 METHOD "" SbBox2s() {}
11 METHOD CreateBounds SbBox2s(short xmin, short ymin, short xmax, short ymax) {}
12 METHOD CreateMinMax SbBox2s(const SbVec2s &_min, const SbVec2s &_max) {}
13 METHOD "" void ~SbBox2s() {
14 Constructors and destructor for a 2D integer box. \axmin\., \aymin\., \axmax\.,
15 and \aymax\. are the bounds of the box. \amin\. and \amax\. are the corners
16 of the diagonal that define the box.
17 }
18 METHOD "" const SbVec2s & getMin() const {}
19 METHOD "" const SbVec2s & getMax() const {
20 Returns the minimum and maximum points of the box.
21 }
22 METHOD extendByPt void extendBy(const SbVec2s &point) {}
23 METHOD extendByBox void extendBy(const SbBox2s &box) {
24 Extends this box (if necessary) to contain the specified \apoint\. or
25 other \abox\..
26 }
27 METHOD intersectPt SbBool intersect(const SbVec2s &point) const {}
28 METHOD intersectBox SbBool intersect(const SbBox2s &box) const {
29 Returns TRUE if the specified \apoint\. or \abox\. intersects this box.
30 }
31 METHOD "" void setBounds(short xmin, short ymin, short xmax, short ymax) {}
32 METHOD setBoundsMinMax void setBounds(const SbVec2s &_min,
33 const SbVec2s &_max) {
34 Sets the corners of the box.
35 }
36 METHOD "" void getBounds(short &xmin, short &ymin,
37 short &xmax, short &ymax) const {}
38 METHOD getBoundsMinMax void getBounds(SbVec2s &_min, SbVec2s &_max) const {
39 Gets the corners of the box.
40 }
41 METHOD "" void getOrigin(short &originX, short &originY) const {
42 Returns origin (minimum point) of box.
43 }
44 METHOD "" void getSize(short &sizeX, short &sizeY) const {
45 Returns box size.
46 }
47 METHOD "" float getAspectRatio() const {
48 Returns aspect ratio (ratio of width to height) of box.
49 }
50 METHOD "" void makeEmpty() {
51 Makes an empty box.
52 }
53 METHOD "" int operator ==(const SbBox2s &b1, const SbBox2s &b2) {}
54 METHOD "" int operator !=(const SbBox2s &b1, const SbBox2s &b2) {
55 Equality comparisons.
56 }
57 ALSO { SbBox3f, SbXfBox3f, SbBox2f, SbVec3f, SbVec2f, SbVec2s, SbMatrix }