cgma
|
#include <ImprintPointData.hpp>
Definition at line 48 of file ImprintPointData.hpp.
ImprintPointData::ImprintPointData | ( | double | x_val, |
double | y_val, | ||
double | z_val | ||
) |
Definition at line 20 of file ImprintPointData.cpp.
: coords( x_val, y_val, z_val ) { initialize_imprint_data(); }
ImprintPointData::ImprintPointData | ( | const CubitVector & | new_point | ) |
Definition at line 60 of file ImprintPointData.cpp.
: coords( new_point ) { initialize_imprint_data(); }
ImprintPointData::ImprintPointData | ( | ImprintPointData * | copy, |
CubitVector & | new_coords | ||
) |
Definition at line 74 of file ImprintPointData.cpp.
{ coords = new_coords; initialize_imprint_data(); myPointType=copy->myPointType; owner(copy->myOwner); set_matching_point(copy); copy->set_matching_point(this); }
Definition at line 93 of file ImprintPointData.cpp.
{ if ( attachedFacets ) delete attachedFacets; if ( pointMatches ) delete pointMatches; }
void ImprintPointData::add_facet | ( | CubitFacet * | facet | ) | [virtual] |
Implements CubitPoint.
Definition at line 124 of file ImprintPointData.cpp.
{ if ( attachedFacets == NULL ) attachedFacets = new DLIList<CubitFacet*>(8); attachedFacets->append(facet); return; }
void ImprintPointData::add_match_data | ( | ImprintMatchData * | match_data | ) |
Definition at line 207 of file ImprintPointData.cpp.
{ if ( !pointMatches ) pointMatches = new DLIList<ImprintMatchData*>; pointMatches->append(match_data); }
void ImprintPointData::compute_avg_normal | ( | ) |
Reimplemented from CubitPoint.
CubitVector ImprintPointData::coordinates | ( | void | ) | const [inline, virtual] |
void ImprintPointData::coordinates | ( | double | point_array[3] | ) | [virtual] |
Implements CubitPoint.
Definition at line 109 of file ImprintPointData.cpp.
void ImprintPointData::edges | ( | DLIList< CubitFacetEdge * > & | edge_list | ) | [virtual] |
Implements CubitPoint.
Definition at line 156 of file ImprintPointData.cpp.
{ int ii, jj, kk; CubitFacet *facet_ptr; CubitFacetEdge *edge_ptr, *check_edge_ptr; for (ii=0; ii<attachedFacets->size(); ii++) { facet_ptr = attachedFacets->get_and_step(); for (jj=0; jj<3; jj++) { edge_ptr = facet_ptr->edge( jj ); if (edge_ptr) { if (edge_ptr->point(0) == this || edge_ptr->point(1) == this) { int found = 0; for (kk=0; kk<edge_list.size() && !found; kk++) { check_edge_ptr = edge_list.get_and_step(); if (check_edge_ptr == edge_ptr) found = 1; } if (!found) { edge_list.append( edge_ptr ); } } } } } return; }
void ImprintPointData::facets | ( | DLIList< CubitFacet * > & | facet_list | ) | [inline, virtual] |
Implements CubitPoint.
Definition at line 104 of file ImprintPointData.hpp.
{ if (attachedFacets) facet_list += *attachedFacets; }
CubitBoolean ImprintPointData::get_end_partition | ( | ) | [inline] |
Definition at line 141 of file ImprintPointData.hpp.
{return endPartition;}
int ImprintPointData::get_list_loop_pos | ( | ) | [inline] |
Definition at line 149 of file ImprintPointData.hpp.
{return listLoopPos;}
int ImprintPointData::get_loop_pos | ( | ) | [inline] |
Definition at line 151 of file ImprintPointData.hpp.
{return loopPos;}
int ImprintPointData::get_loop_size | ( | ) | [inline] |
Definition at line 153 of file ImprintPointData.hpp.
{return loopSize;}
void ImprintPointData::get_match_list | ( | DLIList< ImprintMatchData * > & | match_data_list | ) |
Definition at line 213 of file ImprintPointData.cpp.
{ if ( pointMatches != NULL ) { match_data_list += *pointMatches; } }
ImprintPointData* ImprintPointData::get_matching_point | ( | ) | [inline] |
Definition at line 133 of file ImprintPointData.hpp.
{return matchingPoint;}
ImprintLineSegment* ImprintPointData::get_next_seg | ( | ) | [inline] |
Definition at line 167 of file ImprintPointData.hpp.
{return nextSeg;}
PointType ImprintPointData::get_point_type | ( | ) | [inline] |
Definition at line 130 of file ImprintPointData.hpp.
{return myPointType;}
ImprintLineSegment* ImprintPointData::get_prev_seg | ( | ) | [inline] |
Definition at line 162 of file ImprintPointData.hpp.
{return prevSeg;}
CubitBoolean ImprintPointData::get_start_partition | ( | ) | [inline] |
Definition at line 139 of file ImprintPointData.hpp.
{return startPartition;}
void ImprintPointData::initialize_imprint_data | ( | ) | [private] |
Definition at line 25 of file ImprintPointData.cpp.
{ attachedFacets = NULL; point_counter++; entityId = point_counter; myOwner = NULL; myPointType = UNSET_POINT; ownerRefVertex = CUBIT_FALSE; matchingPoint = NULL; startPartition = CUBIT_FALSE; endPartition = CUBIT_FALSE; listLoopPos = 0; loopPos = 0; pointMatches = NULL; isMatched = CUBIT_FALSE; prevSeg = NULL; nextSeg = NULL; }
CubitBoolean ImprintPointData::is_matched | ( | ) | [inline] |
Definition at line 160 of file ImprintPointData.hpp.
{return isMatched;}
CubitBoolean ImprintPointData::is_owner_vertex | ( | ) | [inline] |
Definition at line 119 of file ImprintPointData.hpp.
{if (myPointType == CREATE_NEW_VERTEX || myPointType == VERTEX_ON_BOUNDARY_1 || myPointType == VERTEX_ON_BOUNDARY_2 || myPointType == VERTEX_ON_BOTH_BOUNDARIES ) return CUBIT_TRUE; else return CUBIT_FALSE; }
void ImprintPointData::marked | ( | int | marked | ) | [inline, virtual] |
Reimplemented from CubitPoint.
Definition at line 94 of file ImprintPointData.hpp.
{ markedFlag = marked;}
int ImprintPointData::marked | ( | ) | [inline, virtual] |
Reimplemented from CubitPoint.
Definition at line 95 of file ImprintPointData.hpp.
{return markedFlag;}
int ImprintPointData::num_adj_facets | ( | ) | [virtual] |
Implements CubitPoint.
Definition at line 199 of file ImprintPointData.cpp.
{ if (attachedFacets == NULL) return 0; else return attachedFacets->size(); }
void ImprintPointData::owner | ( | RefEntity * | my_owner | ) | [inline] |
Definition at line 113 of file ImprintPointData.hpp.
{ myOwner = my_owner; }
RefEntity* ImprintPointData::owner | ( | ) | [inline] |
Definition at line 117 of file ImprintPointData.hpp.
{return myOwner;}
void ImprintPointData::points | ( | DLIList< CubitPoint * > & | point_list | ) | [inline, virtual] |
Implements CubitPoint.
Definition at line 107 of file ImprintPointData.hpp.
{ point_list.append( this ); }
void ImprintPointData::remove_facet | ( | CubitFacet * | facet | ) | [virtual] |
Implements CubitPoint.
Definition at line 140 of file ImprintPointData.cpp.
{ if ( attachedFacets == NULL ) return; attachedFacets->remove(facet); return; }
void ImprintPointData::set | ( | const CubitVector & | pos | ) | [inline, virtual] |
void ImprintPointData::set_end_partition | ( | ) | [inline] |
Definition at line 137 of file ImprintPointData.hpp.
{endPartition = CUBIT_TRUE;}
void ImprintPointData::set_loop_pos | ( | int | ii, |
int | jj, | ||
int | loop_size | ||
) | [inline] |
Definition at line 143 of file ImprintPointData.hpp.
{ listLoopPos = ii; loopPos = jj; loopSize = loop_size; }
void ImprintPointData::set_matched | ( | ImprintMatchData * | match_data | ) |
Definition at line 228 of file ImprintPointData.cpp.
{ if ( !pointMatches ) pointMatches = new DLIList<ImprintMatchData*>; else { pointMatches->clean_out(); } pointMatches->append(match_data); isMatched = CUBIT_TRUE; }
Definition at line 46 of file ImprintPointData.cpp.
{ // assert(matchingPoint == NULL|| other == matchingPoint); matchingPoint = other; return CUBIT_SUCCESS; }
void ImprintPointData::set_next_seg | ( | ImprintLineSegment * | next_seg | ) | [inline] |
Definition at line 169 of file ImprintPointData.hpp.
{nextSeg = next_seg;}
void ImprintPointData::set_point_type | ( | PointType | type | ) | [inline] |
Definition at line 128 of file ImprintPointData.hpp.
{myPointType = type;}
void ImprintPointData::set_prev_seg | ( | ImprintLineSegment * | prev_seg | ) | [inline] |
Definition at line 164 of file ImprintPointData.hpp.
{prevSeg = prev_seg;}
void ImprintPointData::set_start_partition | ( | ) | [inline] |
Definition at line 135 of file ImprintPointData.hpp.
{startPartition = CUBIT_TRUE;}
void ImprintPointData::set_unmatched | ( | ) |
Definition at line 220 of file ImprintPointData.cpp.
{ if ( pointMatches != NULL) { pointMatches->clean_out(); } isMatched = CUBIT_FALSE; }
Definition at line 84 of file ImprintPointData.hpp.
{ return entityId;}
double ImprintPointData::x | ( | void | ) | [inline, virtual] |
double ImprintPointData::y | ( | void | ) | [inline, virtual] |
double ImprintPointData::z | ( | void | ) | [inline, virtual] |
DLIList<CubitFacet*>* ImprintPointData::attachedFacets [private] |
Definition at line 53 of file ImprintPointData.hpp.
CubitVector ImprintPointData::coords [private] |
Definition at line 52 of file ImprintPointData.hpp.
CubitBoolean ImprintPointData::endPartition [private] |
Definition at line 59 of file ImprintPointData.hpp.
int ImprintPointData::entityId [private] |
Definition at line 69 of file ImprintPointData.hpp.
CubitBoolean ImprintPointData::isMatched [private] |
Definition at line 61 of file ImprintPointData.hpp.
int ImprintPointData::listLoopPos [private] |
Definition at line 65 of file ImprintPointData.hpp.
int ImprintPointData::loopPos [private] |
Definition at line 66 of file ImprintPointData.hpp.
int ImprintPointData::loopSize [private] |
Definition at line 67 of file ImprintPointData.hpp.
ImprintPointData* ImprintPointData::matchingPoint [private] |
Definition at line 57 of file ImprintPointData.hpp.
MemoryManager ImprintPointData::memoryManager [static, private] |
Definition at line 73 of file ImprintPointData.hpp.
RefEntity* ImprintPointData::myOwner [private] |
Definition at line 54 of file ImprintPointData.hpp.
PointType ImprintPointData::myPointType [private] |
Definition at line 55 of file ImprintPointData.hpp.
ImprintLineSegment* ImprintPointData::nextSeg [private] |
Definition at line 63 of file ImprintPointData.hpp.
CubitBoolean ImprintPointData::ownerRefVertex [private] |
Definition at line 56 of file ImprintPointData.hpp.
DLIList<ImprintMatchData*>* ImprintPointData::pointMatches [private] |
Definition at line 60 of file ImprintPointData.hpp.
ImprintLineSegment* ImprintPointData::prevSeg [private] |
Definition at line 62 of file ImprintPointData.hpp.
CubitBoolean ImprintPointData::startPartition [private] |
Definition at line 58 of file ImprintPointData.hpp.