Class for a 2D rectangle. More...
#include <MeshViz/graph/PoRectangle.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
PoRectangle () | |
PoRectangle (const SbVec2f &p1, const SbVec2f &p2) | |
virtual void | rebuild () |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Public Attributes | |
SoSFVec2f | p |
SoSFVec2f | q |
Class to build a rectangle in the plane XY. A rectangle is defined by two points, p and q, representing one of its diagonals.
p | 0 0 |
q | 1 1 |
PoRectangle::PoRectangle | ( | ) |
Default constructor.
static const SoNodekitCatalog* PoRectangle::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoGraphMaster.
static SoType PoRectangle::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoGraphMaster.
virtual const SoNodekitCatalog* PoRectangle::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoGraphMaster.
virtual SoType PoRectangle::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoGraphMaster.
virtual void PoRectangle::rebuild | ( | ) | [virtual] |
First point of one of the diagonals of the rectangle.
Second point of the same diagonal.