cgma
ImprintLineSegment Class Reference

#include <ImprintLineSegment.hpp>

List of all members.

Public Member Functions

 ImprintLineSegment (ImprintPointData *start_point, ImprintPointData *end_point, RefEntity *owner_v)
 ~ImprintLineSegment ()
 SetDynamicMemoryAllocation (memoryManager) CubitBox &bounding_box()
ImprintPointDataget_start ()
ImprintPointDataget_end ()
RefEntityowner ()
CubitBoolean get_inactive ()
void set_inactive (CubitBoolean m)
ImprintLineSegmentget_next ()
ImprintLineSegmentget_prev ()
void set_next (ImprintLineSegment *v)
void set_prev (ImprintLineSegment *v)
void add_match_data (ImprintMatchData *m_d)
void get_match_data (DLIList< ImprintMatchData * > &match_data)

Private Attributes

ImprintPointDatastartPoint
ImprintPointDataendPoint
ImprintLineSegmentnextSeg
ImprintLineSegmentprevSeg
CubitBox boundingBox
RefEntitymyOwner
DLIList< ImprintMatchData * > * segMatches
CubitBoolean inactiveFlag

Static Private Attributes

static MemoryManager memoryManager

Detailed Description

Definition at line 20 of file ImprintLineSegment.hpp.


Constructor & Destructor Documentation

ImprintLineSegment::ImprintLineSegment ( ImprintPointData start_point,
ImprintPointData end_point,
RefEntity owner_v 
)

Definition at line 15 of file ImprintLineSegment.cpp.

{
  CubitVector min, max;
  CubitVector p1 = start_point->coordinates();
  CubitVector p2 = end_point->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);
  startPoint = start_point;
  endPoint = end_point;
  nextSeg = NULL;
  prevSeg = NULL;
  myOwner = owner_v;
  inactiveFlag = CUBIT_FALSE;
  segMatches = NULL;
  startPoint->set_next_seg(this);
  endPoint->set_prev_seg(this);
}

Definition at line 57 of file ImprintLineSegment.cpp.

{
  if ( segMatches != NULL )
    delete segMatches;
}

Member Function Documentation

Definition at line 48 of file ImprintLineSegment.hpp.

    {return endPoint;}

Definition at line 54 of file ImprintLineSegment.hpp.

    {return inactiveFlag;}

Definition at line 68 of file ImprintLineSegment.cpp.

{
  if ( segMatches == NULL )
    return;
  else
    match_data += (*segMatches);
}

Definition at line 59 of file ImprintLineSegment.hpp.

    {return nextSeg;}

Definition at line 61 of file ImprintLineSegment.hpp.

    {return prevSeg;}

Definition at line 46 of file ImprintLineSegment.hpp.

    {return startPoint;}

Definition at line 50 of file ImprintLineSegment.hpp.

    {return myOwner;}

Definition at line 56 of file ImprintLineSegment.hpp.

Definition at line 64 of file ImprintLineSegment.hpp.

    {nextSeg = v;}

Definition at line 66 of file ImprintLineSegment.hpp.

    {prevSeg = v;}

Member Data Documentation

Definition at line 26 of file ImprintLineSegment.hpp.

Definition at line 31 of file ImprintLineSegment.hpp.

Definition at line 27 of file ImprintLineSegment.hpp.


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