|
cgma
|
#include <GeomSeg.hpp>
Public Member Functions | |
| GeomSeg (GeomPoint *start, GeomPoint *end, RefEntity *owner) | |
| ~GeomSeg () | |
| CubitBox & | bounding_box () |
| void | owner (RefEntity *owner) |
| RefEntity * | owner () |
| GeomPoint * | get_start () |
| GeomPoint * | get_end () |
| void | set_next (GeomSeg *tmp_next) |
| GeomSeg * | get_next () |
| void | set_prev (GeomSeg *tmp_prev) |
| GeomSeg * | get_prev () |
Private Attributes | |
| RefEntity * | myOwner |
| GeomSeg * | prevSeg |
| GeomSeg * | nextSeg |
| GeomPoint * | myStart |
| GeomPoint * | myEnd |
| CubitBox | boundingBox |
Definition at line 16 of file GeomSeg.hpp.
| GeomSeg::GeomSeg | ( | GeomPoint * | start, |
| GeomPoint * | end, | ||
| RefEntity * | owner | ||
| ) | [inline] |
Definition at line 37 of file GeomSeg.hpp.
{
myOwner = owner;
myStart = start;
myEnd = end;
prevSeg = NULL;
nextSeg = NULL;
CubitVector min, max;
CubitVector p1 = start->coordinates();
CubitVector p2 = end->coordinates();
if ( p1.x() < p2.x() ) {
min.x(p1.x());
max.x(p2.x());
} else {
min.x(p2.x());
max.x(p1.x());
}
if ( p1.y() < p2.y() ) {
min.y(p1.y());
max.y(p2.y());
} else {
min.y(p2.y());
max.y(p1.y());
}
if ( p1.z() < p2.z() ) {
min.z(p1.z());
max.z(p2.z());
} else {
min.z(p2.z());
max.z(p1.z());
}
boundingBox = CubitBox(min, max);
}
| GeomSeg::~GeomSeg | ( | ) | [inline] |
Definition at line 72 of file GeomSeg.hpp.
{}
| CubitBox & GeomSeg::bounding_box | ( | void | ) | [inline] |
Definition at line 74 of file GeomSeg.hpp.
{return boundingBox;}
| GeomPoint * GeomSeg::get_end | ( | ) | [inline] |
Definition at line 82 of file GeomSeg.hpp.
{return myEnd;}
| GeomSeg * GeomSeg::get_next | ( | ) | [inline] |
Definition at line 86 of file GeomSeg.hpp.
{return nextSeg;}
| GeomSeg * GeomSeg::get_prev | ( | ) | [inline] |
Definition at line 90 of file GeomSeg.hpp.
{return prevSeg;}
| GeomPoint * GeomSeg::get_start | ( | ) | [inline] |
Definition at line 80 of file GeomSeg.hpp.
{return myStart;}
| void GeomSeg::owner | ( | RefEntity * | owner | ) | [inline] |
Definition at line 76 of file GeomSeg.hpp.
| RefEntity * GeomSeg::owner | ( | ) | [inline] |
Definition at line 78 of file GeomSeg.hpp.
{return myOwner;}
| void GeomSeg::set_next | ( | GeomSeg * | tmp_next | ) | [inline] |
Definition at line 84 of file GeomSeg.hpp.
{nextSeg = tmp_next;}
| void GeomSeg::set_prev | ( | GeomSeg * | tmp_prev | ) | [inline] |
Definition at line 88 of file GeomSeg.hpp.
{prevSeg = tmp_prev;}
CubitBox GeomSeg::boundingBox [private] |
Definition at line 22 of file GeomSeg.hpp.
GeomPoint * GeomSeg::myEnd [private] |
Definition at line 21 of file GeomSeg.hpp.
RefEntity* GeomSeg::myOwner [private] |
Definition at line 19 of file GeomSeg.hpp.
GeomPoint* GeomSeg::myStart [private] |
Definition at line 21 of file GeomSeg.hpp.
GeomSeg * GeomSeg::nextSeg [private] |
Definition at line 20 of file GeomSeg.hpp.
GeomSeg* GeomSeg::prevSeg [private] |
Definition at line 20 of file GeomSeg.hpp.