2D box class.  
 More...
#include <Inventor/SbBox.h>
 | 
|   | SbBox2s () | 
|   | Constructs an empty box.  
  | 
|   | 
|   | SbBox2s (short xmin, short ymin, short xmax, short ymax) | 
|   | Constructor for a 2D integer box.  
  | 
|   | 
|   | SbBox2s (const SbVec2s &min, const SbVec2s &max) | 
|   | Constructor for a 2D integer box.  
  | 
|   | 
|   | ~SbBox2s () | 
|   | Destructor.  
  | 
|   | 
| const SbVec2s &  | getMin () const | 
|   | Returns the minimum and maximum points of the box.  
  | 
|   | 
| const SbVec2s &  | getMax () const | 
|   | Returns the minimum and maximum points of the box.  
  | 
|   | 
| void  | extendBy (const SbVec2s &pt) | 
|   | Extends Box2s (if necessary) to contain given 2D point.  
  | 
|   | 
| void  | extendBy (const SbBox2s &r) | 
|   | Extends Box2s (if necessary) to contain given Box2s.  
  | 
|   | 
| bool  | intersect (const SbVec2s &pt) const | 
|   | Returns TRUE if intersection of given point and Box2s is not empty.  
  | 
|   | 
| bool  | intersect (const SbBox2s &bb) const | 
|   | Returns TRUE if intersection of given Box2s and Box2s is not empty.  
  | 
|   | 
| void  | setBounds (short xmin, short ymin, short xmax, short ymax) | 
|   | Sets the corners of the box.  
  | 
|   | 
| void  | setBounds (const SbVec2s &_min, const SbVec2s &_max) | 
|   | Sets the corners of the box.  
  | 
|   | 
| void  | getBounds (short &xmin, short &ymin, short &xmax, short &ymax) const | 
|   | 
| void  | getBounds (SbVec2s &_min, SbVec2s &_max) const | 
|   | 
| void  | getOrigin (short &originX, short &originY) const | 
|   | Returns origin (minimum point) of box.  
  | 
|   | 
| void  | getSize (short &sizeX, short &sizeY) const | 
|   | Returns box size.  
  | 
|   | 
| float  | getAspectRatio () const | 
|   | Returns aspect ratio (ratio of width to height) of box.  
  | 
|   | 
| void  | makeEmpty () | 
|   | Makes an empty box.  
  | 
|   | 
2D box which has planes parallel to the major axes and is specified by two points (specified with short integers) on a diagonal. This class is part of the standard Inventor datatype classes and is used as input and output to geometry operations.
- See Also
 
- SbBox3f, SbXfBox3f, SbBox2f, SbVec3f, SbVec2f, SbVec2s, SbMatrix 
 
Definition at line 479 of file SbBox.h.
 
◆ SbBox2s() [1/3]
◆ SbBox2s() [2/3]
  
  
      
        
          | SbBox2s::SbBox2s  | 
          ( | 
          short  | 
          xmin,  | 
         
        
           | 
           | 
          short  | 
          ymin,  | 
         
        
           | 
           | 
          short  | 
          xmax,  | 
         
        
           | 
           | 
          short  | 
          ymax  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
xmin, ymin, xmax, and ymax are the bounds of the box. 
Definition at line 487 of file SbBox.h.
 
 
◆ SbBox2s() [3/3]
min and max are the corners of the diagonal that define the box. 
Definition at line 492 of file SbBox.h.
 
 
◆ ~SbBox2s()
◆ extendBy() [1/2]
      
        
          | void SbBox2s::extendBy  | 
          ( | 
          const SbBox2s &  | 
          r | ) | 
           | 
        
      
 
 
◆ extendBy() [2/2]
      
        
          | void SbBox2s::extendBy  | 
          ( | 
          const SbVec2s &  | 
          pt | ) | 
           | 
        
      
 
 
◆ getAspectRatio()
  
  
      
        
          | float SbBox2s::getAspectRatio  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getBounds() [1/2]
◆ getBounds() [2/2]
  
  
      
        
          | void SbBox2s::getBounds  | 
          ( | 
          short &  | 
          xmin,  | 
         
        
           | 
           | 
          short &  | 
          ymin,  | 
         
        
           | 
           | 
          short &  | 
          xmax,  | 
         
        
           | 
           | 
          short &  | 
          ymax  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getMax()
  
  
      
        
          | const SbVec2s & SbBox2s::getMax  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getMin()
  
  
      
        
          | const SbVec2s & SbBox2s::getMin  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getOrigin()
  
  
      
        
          | void SbBox2s::getOrigin  | 
          ( | 
          short &  | 
          originX,  | 
         
        
           | 
           | 
          short &  | 
          originY  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getSize()
  
  
      
        
          | void SbBox2s::getSize  | 
          ( | 
          short &  | 
          sizeX,  | 
         
        
           | 
           | 
          short &  | 
          sizeY  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
inline   | 
  
 
 
◆ intersect() [1/2]
      
        
          | bool SbBox2s::intersect  | 
          ( | 
          const SbBox2s &  | 
          bb | ) | 
           const | 
        
      
 
 
◆ intersect() [2/2]
      
        
          | bool SbBox2s::intersect  | 
          ( | 
          const SbVec2s &  | 
          pt | ) | 
           const | 
        
      
 
 
◆ makeEmpty()
      
        
          | void SbBox2s::makeEmpty  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ setBounds() [1/2]
  
  
      
        
          | void SbBox2s::setBounds  | 
          ( | 
          const SbVec2s &  | 
          _min,  | 
         
        
           | 
           | 
          const SbVec2s &  | 
          _max  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
◆ setBounds() [2/2]
  
  
      
        
          | void SbBox2s::setBounds  | 
          ( | 
          short  | 
          xmin,  | 
         
        
           | 
           | 
          short  | 
          ymin,  | 
         
        
           | 
           | 
          short  | 
          xmax,  | 
         
        
           | 
           | 
          short  | 
          ymax  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator!=
◆ operator==
The documentation for this class was generated from the following file:
- /home/jenkins/workspaces/mevislab/4.2.0_1/build/MeVis/ThirdParty/Sources/Inventor/include/Inventor/SbBox.h