cgma
GeomSeg Class Reference

#include <GeomSeg.hpp>

List of all members.

Public Member Functions

 GeomSeg (GeomPoint *start, GeomPoint *end, RefEntity *owner)
 ~GeomSeg ()
CubitBoxbounding_box ()
void owner (RefEntity *owner)
RefEntityowner ()
GeomPointget_start ()
GeomPointget_end ()
void set_next (GeomSeg *tmp_next)
GeomSegget_next ()
void set_prev (GeomSeg *tmp_prev)
GeomSegget_prev ()

Private Attributes

RefEntitymyOwner
GeomSegprevSeg
GeomSegnextSeg
GeomPointmyStart
GeomPointmyEnd
CubitBox boundingBox

Detailed Description

Definition at line 16 of file GeomSeg.hpp.


Constructor & Destructor Documentation

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.

{}

Member Function Documentation

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;}

Member Data Documentation

Definition at line 22 of file GeomSeg.hpp.

Definition at line 21 of file GeomSeg.hpp.

Definition at line 19 of file GeomSeg.hpp.

Definition at line 21 of file GeomSeg.hpp.

Definition at line 20 of file GeomSeg.hpp.

Definition at line 20 of file GeomSeg.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines