cgma
ChollaPoint Class Reference

#include <ChollaPoint.hpp>

Inheritance diagram for ChollaPoint:
ChollaEntity

List of all members.

Public Member Functions

 ChollaPoint ()
 ~ChollaPoint ()
void add_facet (FacetEntity *exterior_node)
void remove_facet (void)
void remove_facet (FacetEntity *facet_pnt)
FacetEntityget_facets ()
void add_curve (ChollaCurve *fcm_ptr)
void remove_curve (ChollaCurve *fcm_ptr)
DLIList< ChollaCurve * > & get_curves ()
DLIList< ChollaCurve * > * get_curve_list_ptr ()
void assign_geometric_point (void *point)
void * get_geometric_point ()
int get_id ()
void get_surfaces (DLIList< ChollaSurface * > &surf_list)
CubitBoolean is_in_curve (ChollaCurve *chcurve)
CubitBoolean is_in_surface (ChollaSurface *cholla_surf)
CubitBoolean is_in_volume (ChollaVolume *cholla_vol)
CubitStatus verify_curves ()
ChollaPointmerge_partner ()
void set_merge_partner (ChollaPoint *merge_partner)

Private Attributes

DLIList< ChollaCurve * > curveList
FacetEntitymyCubitPoint
void * myPoint
int id
ChollaPointmyMergePartner

Detailed Description

Definition at line 21 of file ChollaPoint.hpp.


Constructor & Destructor Documentation

Definition at line 15 of file ChollaPoint.cpp.

{
  static int count = 1; 
  id = count++; 
  myCubitPoint = NULL; 
  myPoint = NULL; 
  myMergePartner = NULL;
}

Definition at line 26 of file ChollaPoint.cpp.

{
}

Member Function Documentation

void ChollaPoint::add_curve ( ChollaCurve fcm_ptr) [inline]

Definition at line 56 of file ChollaPoint.hpp.

    {curveList.append_unique( fcm_ptr );}
void ChollaPoint::add_facet ( FacetEntity exterior_node) [inline]

Definition at line 39 of file ChollaPoint.hpp.

  { myCubitPoint = exterior_node; }
void ChollaPoint::assign_geometric_point ( void *  point) [inline]

Definition at line 72 of file ChollaPoint.hpp.

    {myPoint = point;}

Definition at line 68 of file ChollaPoint.hpp.

    {return &curveList;}

Definition at line 64 of file ChollaPoint.hpp.

    {return curveList;}

Definition at line 52 of file ChollaPoint.hpp.

    {return myCubitPoint;}

Definition at line 76 of file ChollaPoint.hpp.

    {return myPoint;}
int ChollaPoint::get_id ( ) [inline]

Definition at line 80 of file ChollaPoint.hpp.

{return id;}
void ChollaPoint::get_surfaces ( DLIList< ChollaSurface * > &  surf_list)

Definition at line 33 of file ChollaPoint.cpp.

{
  int ii, jj;
  ChollaCurve *curv_ptr;
  DLIList<ChollaSurface*> *surf_list_ptr;
  ChollaSurface *surf_ptr;

  curveList.reset();
  for(ii=0; ii<curveList.size(); ii++)
  {
    curv_ptr = curveList.get_and_step();
    surf_list_ptr = curv_ptr->get_surface_list_ptr();
    for(jj=0; jj<surf_list_ptr->size(); jj++)
    {
      surf_ptr = surf_list_ptr->get_and_step();
      surf_list.append_unique( surf_ptr );
    }
  }
}

Definition at line 98 of file ChollaPoint.cpp.

{
  for (int ii=0; ii<curveList.size(); ii++)
  {
    ChollaCurve *curv = curveList.get_and_step();
    if (curv == chcurve)
      return CUBIT_TRUE;
  }
  return CUBIT_FALSE;
}

Definition at line 56 of file ChollaPoint.cpp.

{
  int ii;
  ChollaCurve *curv_ptr;
  DLIList<ChollaSurface*> *surf_list_ptr;

  curveList.reset();
  for(ii=0; ii<curveList.size(); ii++) 
  {
    curv_ptr = curveList.get_and_step();
    surf_list_ptr = curv_ptr->get_surface_list_ptr(); 

    if( surf_list_ptr->is_in_list( cholla_surf ) )
      return CUBIT_TRUE;
  }

  return CUBIT_FALSE;
}

Definition at line 78 of file ChollaPoint.cpp.

{
  int ii;
  ChollaCurve *curv_ptr;  

  curveList.reset();
  for(ii=0; ii<curveList.size(); ii++) 
  {
    curv_ptr = curveList.get_and_step();

    if( curv_ptr->is_in_volume( cholla_vol ) )
      return CUBIT_TRUE;
  }

  return CUBIT_FALSE;
}

Definition at line 97 of file ChollaPoint.hpp.

{ return myMergePartner; }
void ChollaPoint::remove_curve ( ChollaCurve fcm_ptr) [inline]

Definition at line 60 of file ChollaPoint.hpp.

  { curveList.remove( fcm_ptr ); }
void ChollaPoint::remove_facet ( void  ) [inline]

Definition at line 43 of file ChollaPoint.hpp.

  {myCubitPoint = NULL;}
void ChollaPoint::remove_facet ( FacetEntity facet_pnt) [inline]

Definition at line 47 of file ChollaPoint.hpp.

  {if( myCubitPoint == facet_pnt ) myCubitPoint = NULL;}
void ChollaPoint::set_merge_partner ( ChollaPoint merge_partner) [inline]

Definition at line 99 of file ChollaPoint.hpp.

Definition at line 114 of file ChollaPoint.cpp.

{
  for(int ii=0; ii<curveList.size(); ii++)
  {
    ChollaCurve *crv = curveList.get_and_step();
    if (!crv->has_point(this))
      return CUBIT_FAILURE;
  }
  return CUBIT_SUCCESS;
}

Member Data Documentation

Definition at line 25 of file ChollaPoint.hpp.

int ChollaPoint::id [private]

Definition at line 28 of file ChollaPoint.hpp.

Definition at line 26 of file ChollaPoint.hpp.

Definition at line 29 of file ChollaPoint.hpp.

void* ChollaPoint::myPoint [private]

Definition at line 27 of file ChollaPoint.hpp.


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