cgma
ImprintPointData Class Reference

#include <ImprintPointData.hpp>

Inheritance diagram for ImprintPointData:
CubitPoint FacetEntity ToolDataUser

List of all members.

Public Member Functions

 ImprintPointData (double x_val, double y_val, double z_val)
 ImprintPointData (const CubitVector &new_point)
 ImprintPointData (ImprintPointData *copy, CubitVector &new_coords)
 ~ImprintPointData ()
 SetDynamicMemoryAllocation (memoryManager) int id()
double x ()
double y ()
double z ()
void set (const CubitVector &pos)
void marked (int marked)
int marked ()
CubitVector coordinates () const
void coordinates (double point_array[3])
void add_facet (CubitFacet *facet)
void remove_facet (CubitFacet *facet)
int num_adj_facets ()
void facets (DLIList< CubitFacet * > &facet_list)
void edges (DLIList< CubitFacetEdge * > &edge_list)
void points (DLIList< CubitPoint * > &point_list)
void compute_avg_normal ()
void owner (RefEntity *my_owner)
RefEntityowner ()
CubitBoolean is_owner_vertex ()
void set_point_type (PointType type)
PointType get_point_type ()
CubitStatus set_matching_point (ImprintPointData *other)
ImprintPointDataget_matching_point ()
void set_start_partition ()
void set_end_partition ()
CubitBoolean get_start_partition ()
CubitBoolean get_end_partition ()
void set_loop_pos (int ii, int jj, int loop_size)
int get_list_loop_pos ()
int get_loop_pos ()
int get_loop_size ()
void add_match_data (ImprintMatchData *match_data)
void get_match_list (DLIList< ImprintMatchData * > &match_data_list)
void set_matched (ImprintMatchData *match_data)
void set_unmatched ()
CubitBoolean is_matched ()
ImprintLineSegmentget_prev_seg ()
void set_prev_seg (ImprintLineSegment *prev_seg)
ImprintLineSegmentget_next_seg ()
void set_next_seg (ImprintLineSegment *next_seg)

Private Member Functions

void initialize_imprint_data ()

Private Attributes

CubitVector coords
DLIList< CubitFacet * > * attachedFacets
RefEntitymyOwner
PointType myPointType
CubitBoolean ownerRefVertex
ImprintPointDatamatchingPoint
CubitBoolean startPartition
CubitBoolean endPartition
DLIList< ImprintMatchData * > * pointMatches
CubitBoolean isMatched
ImprintLineSegmentprevSeg
ImprintLineSegmentnextSeg
int listLoopPos
int loopPos
int loopSize
int entityId

Static Private Attributes

static MemoryManager memoryManager

Detailed Description

Definition at line 48 of file ImprintPointData.hpp.


Constructor & Destructor Documentation

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

Definition at line 60 of file ImprintPointData.cpp.

  : coords( new_point )
{
  initialize_imprint_data();
}

Definition at line 74 of file ImprintPointData.cpp.

Definition at line 93 of file ImprintPointData.cpp.

{
  if ( attachedFacets )
    delete attachedFacets;
  if ( pointMatches )
    delete pointMatches;
}

Member Function Documentation

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

Definition at line 207 of file ImprintPointData.cpp.

Reimplemented from CubitPoint.

CubitVector ImprintPointData::coordinates ( void  ) const [inline, virtual]

Implements CubitPoint.

Definition at line 98 of file ImprintPointData.hpp.

{ return coords; }
void ImprintPointData::coordinates ( double  point_array[3]) [virtual]

Implements CubitPoint.

Definition at line 109 of file ImprintPointData.cpp.

{
  point_array[0] = coords.x();
  point_array[1] = coords.y();
  point_array[2] = coords.z();
}
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; }

Definition at line 141 of file ImprintPointData.hpp.

    {return endPartition;}

Definition at line 149 of file ImprintPointData.hpp.

    {return listLoopPos;}

Definition at line 151 of file ImprintPointData.hpp.

    {return loopPos;}

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

Definition at line 167 of file ImprintPointData.hpp.

    {return nextSeg;}

Definition at line 130 of file ImprintPointData.hpp.

    {return myPointType;}

Definition at line 162 of file ImprintPointData.hpp.

    {return prevSeg;}

Definition at line 160 of file ImprintPointData.hpp.

    {return isMatched;}
void ImprintPointData::marked ( int  marked) [inline, virtual]

Reimplemented from CubitPoint.

Definition at line 94 of file ImprintPointData.hpp.

int ImprintPointData::marked ( ) [inline, virtual]

Reimplemented from CubitPoint.

Definition at line 95 of file ImprintPointData.hpp.

{return markedFlag;}

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

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]

Implements CubitPoint.

Definition at line 92 of file ImprintPointData.hpp.

{ coords = pos; }

Definition at line 137 of file ImprintPointData.hpp.

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

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

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

Definition at line 135 of file ImprintPointData.hpp.

Definition at line 220 of file ImprintPointData.cpp.

Definition at line 84 of file ImprintPointData.hpp.

          { return entityId;}
double ImprintPointData::x ( void  ) [inline, virtual]

Implements CubitPoint.

Definition at line 89 of file ImprintPointData.hpp.

{return coords.x();}
double ImprintPointData::y ( void  ) [inline, virtual]

Implements CubitPoint.

Definition at line 90 of file ImprintPointData.hpp.

{return coords.y();}
double ImprintPointData::z ( void  ) [inline, virtual]

Implements CubitPoint.

Definition at line 91 of file ImprintPointData.hpp.

{return coords.z();}

Member Data Documentation

Definition at line 52 of file ImprintPointData.hpp.

Definition at line 59 of file ImprintPointData.hpp.

Definition at line 69 of file ImprintPointData.hpp.

Definition at line 61 of file ImprintPointData.hpp.

Definition at line 65 of file ImprintPointData.hpp.

Definition at line 66 of file ImprintPointData.hpp.

Definition at line 67 of file ImprintPointData.hpp.

Definition at line 73 of file ImprintPointData.hpp.

Definition at line 54 of file ImprintPointData.hpp.

Definition at line 55 of file ImprintPointData.hpp.

Definition at line 63 of file ImprintPointData.hpp.

Definition at line 62 of file ImprintPointData.hpp.


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