• NAME
      SbBox2f -- 2D box class
  • INHERITS FROM
      SbBox2f
  • SYNOPSIS
      (Cr#include <Inventor/SbBox.h>

      <1>Methods from class SbBox2f:

      (Pt c} (Pt c} (CbSbBox2f(Cr()
      (Pt c} (Pt c} (CbSbBox2f(Cr(float xmin, float ymin, float xmax float ymax)
      (Pt c} (Pt c} (CbSbBox2f(Cr(const SbVec2f &min, const SbVec2f &max)
      (Pt c} (Pt c} (Cb~SbBox2f(Cr()
      (Pt c} (Pt c} (CbgetMin(Cr()
      (Pt c} (Pt c} (CbgetMax(Cr()
      (Pt c} (Pt c} (CbgetCenter(Cr()
      (Pt c} (Pt c} (CbextendBy(Cr(const SbVec2f &point)
      (Pt c} (Pt c} (CbextendBy(Cr(const SbBox2f &box)
      (Pt c} (Pt c} (Cbintersect(Cr(const SbVec2f &point)
      (Pt c} (Pt c} (Cbintersect(Cr(const SbBox2f &box)
      (Pt c} (Pt c} (CbsetBounds(Cr(float xmin, float ymin, float xmax, float ymax)
      (Pt c} (Pt c} (CbsetBounds(Cr(const SbVec2f &min, const SbVec2f &max)
      (Pt c} (Pt c} (CbgetBounds(Cr(float &xmin, float &ymin, float &xmax, float &ymax)
      (Pt c} (Pt c} (CbgetBounds(Cr(SbVec2f &min, SbVec2f &max)
      (Pt c} (Pt c} (CbgetOrigin(Cr(float &x0, float &y0)
      (Pt c} (Pt c} (CbgetSize(Cr(float &x, float &y)
      (Pt c} (Pt c} (CbgetAspectRatio(Cr()
      (Pt c} (Pt c} (CbmakeEmpty(Cr()
      (Pt c} (Pt c} (CbisEmpty(Cr()
      (Pt c} (Pt c} (CbhasArea(Cr()

  • DESCRIPTION
      2D box which has planes parallel to the major axes and is specified by two points (specified as floating point) on a diagonal. This class is part of the standard Inventor datatype classes and is used as input and output to geometry operations.
  • METHODS
      (Pt c} (Pt c} (CbSbBox2f(Cr()
      (Pt c} (Pt c} (CbSbBox2f(Cr(float xmin, float ymin, float xmax float ymax)
      (Pt c} (Pt c} (CbSbBox2f(Cr(const SbVec2f &min, const SbVec2f &max)
      (Pt c} (Pt c} (Cb~SbBox2f(Cr()
      <1>Constructors and destructor for a 2D float box. (Crxmin<1>, (Crymin<1>, (Crxmax<1>, and (Crymax<1> are the bounds of the box. (Crmin<1> and (Crmax<1> are the corners of the diagonal that define the box.

      (Pt c} (Pt c} (CbgetMin(Cr()
      (Pt c} (Pt c} (CbgetMax(Cr()
      <1>Returns the minimum and maximum points of the box.

      (Pt c} (Pt c} (CbgetCenter(Cr()
      <1>Returns the center of the box.

      (Pt c} (Pt c} (CbextendBy(Cr(const SbVec2f &point)
      (Pt c} (Pt c} (CbextendBy(Cr(const SbBox2f &box)
      <1>Extends this box (if necessary) to contain the specified point or other box.

      (Pt c} (Pt c} (Cbintersect(Cr(const SbVec2f &point)
      (Pt c} (Pt c} (Cbintersect(Cr(const SbBox2f &box)
      <1>Returns (CrTRUE<1> if the specified (Crpoint<1> or (Crbox<1> intersects this box.

      (Pt c} (Pt c} (CbsetBounds(Cr(float xmin, float ymin, float xmax, float ymax)
      (Pt c} (Pt c} (CbsetBounds(Cr(const SbVec2f &min, const SbVec2f &max)
      <1>Sets the corners of the box.

      (Pt c} (Pt c} (CbgetBounds(Cr(float &xmin, float &ymin, float &xmax, float &ymax)
      (Pt c} (Pt c} (CbgetBounds(Cr(SbVec2f &min, SbVec2f &max)
      <1>Gets the corners of the box.

      (Pt c} (Pt c} (CbgetOrigin(Cr(float &x0, float &y0)
      <1>Gets box origin.

      (Pt c} (Pt c} (CbgetSize(Cr(float &x, float &y)
      <1>Gets box size.

      (Pt c} (Pt c} (CbgetAspectRatio(Cr()
      <1>Gets box aspect ratio.

      (Pt c} (Pt c} (CbmakeEmpty(Cr()
      <1>Makes an empty box.

      (Pt c} (Pt c} (CbisEmpty(Cr()
      <1>Returns (CrTRUE<1> if the box is empty, and (CrFALSE<1> otherwise.

      (Pt c} (Pt c} (CbhasArea(Cr()
      <1>Returns (CrTRUE<1> if both dimensions of the box have positive size, and (CrFALSE<1> otherwise.

  • SEE ALSO
      (CbSbBox3f, SbXfBox3f, SbBox2s, SbVec3f, SbVec2f, SbVec2s, SbMatrix
Current Users: 39 © 1999-2006 Linux.com.hk PenguinSoft
All trademarks and copyrights on this page are owned by their respective companies. Linux is a trademark of Linus Torvalds.