cgma
|
#include <ImprintLineSegment.hpp>
Public Member Functions | |
ImprintLineSegment (ImprintPointData *start_point, ImprintPointData *end_point, RefEntity *owner_v) | |
~ImprintLineSegment () | |
SetDynamicMemoryAllocation (memoryManager) CubitBox &bounding_box() | |
ImprintPointData * | get_start () |
ImprintPointData * | get_end () |
RefEntity * | owner () |
CubitBoolean | get_inactive () |
void | set_inactive (CubitBoolean m) |
ImprintLineSegment * | get_next () |
ImprintLineSegment * | get_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 | |
ImprintPointData * | startPoint |
ImprintPointData * | endPoint |
ImprintLineSegment * | nextSeg |
ImprintLineSegment * | prevSeg |
CubitBox | boundingBox |
RefEntity * | myOwner |
DLIList< ImprintMatchData * > * | segMatches |
CubitBoolean | inactiveFlag |
Static Private Attributes | |
static MemoryManager | memoryManager |
Definition at line 20 of file ImprintLineSegment.hpp.
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; }
void ImprintLineSegment::add_match_data | ( | ImprintMatchData * | m_d | ) |
Definition at line 62 of file ImprintLineSegment.cpp.
{ if ( segMatches == NULL ) segMatches = new DLIList<ImprintMatchData*>; segMatches->append(m_d); }
ImprintPointData* ImprintLineSegment::get_end | ( | ) | [inline] |
Definition at line 48 of file ImprintLineSegment.hpp.
{return endPoint;}
CubitBoolean ImprintLineSegment::get_inactive | ( | ) | [inline] |
Definition at line 54 of file ImprintLineSegment.hpp.
{return inactiveFlag;}
void ImprintLineSegment::get_match_data | ( | DLIList< ImprintMatchData * > & | match_data | ) |
Definition at line 68 of file ImprintLineSegment.cpp.
{ if ( segMatches == NULL ) return; else match_data += (*segMatches); }
ImprintLineSegment* ImprintLineSegment::get_next | ( | ) | [inline] |
Definition at line 59 of file ImprintLineSegment.hpp.
{return nextSeg;}
ImprintLineSegment* ImprintLineSegment::get_prev | ( | ) | [inline] |
Definition at line 61 of file ImprintLineSegment.hpp.
{return prevSeg;}
ImprintPointData* ImprintLineSegment::get_start | ( | ) | [inline] |
Definition at line 46 of file ImprintLineSegment.hpp.
{return startPoint;}
RefEntity* ImprintLineSegment::owner | ( | ) | [inline] |
Definition at line 50 of file ImprintLineSegment.hpp.
{return myOwner;}
void ImprintLineSegment::set_inactive | ( | CubitBoolean | m | ) | [inline] |
Definition at line 56 of file ImprintLineSegment.hpp.
{inactiveFlag=m;}
void ImprintLineSegment::set_next | ( | ImprintLineSegment * | v | ) | [inline] |
Definition at line 64 of file ImprintLineSegment.hpp.
{nextSeg = v;}
void ImprintLineSegment::set_prev | ( | ImprintLineSegment * | v | ) | [inline] |
Definition at line 66 of file ImprintLineSegment.hpp.
{prevSeg = v;}
Definition at line 40 of file ImprintLineSegment.hpp.
{return boundingBox;}
CubitBox ImprintLineSegment::boundingBox [private] |
Definition at line 26 of file ImprintLineSegment.hpp.
ImprintPointData* ImprintLineSegment::endPoint [private] |
Definition at line 24 of file ImprintLineSegment.hpp.
CubitBoolean ImprintLineSegment::inactiveFlag [private] |
Definition at line 30 of file ImprintLineSegment.hpp.
MemoryManager ImprintLineSegment::memoryManager [static, private] |
Definition at line 31 of file ImprintLineSegment.hpp.
RefEntity* ImprintLineSegment::myOwner [private] |
Definition at line 27 of file ImprintLineSegment.hpp.
ImprintLineSegment* ImprintLineSegment::nextSeg [private] |
Definition at line 25 of file ImprintLineSegment.hpp.
ImprintLineSegment * ImprintLineSegment::prevSeg [private] |
Definition at line 25 of file ImprintLineSegment.hpp.
DLIList<ImprintMatchData*>* ImprintLineSegment::segMatches [private] |
Definition at line 28 of file ImprintLineSegment.hpp.
ImprintPointData* ImprintLineSegment::startPoint [private] |
Definition at line 23 of file ImprintLineSegment.hpp.