|
cgma
|
#include <ChollaPoint.hpp>
Public Member Functions | |
| ChollaPoint () | |
| ~ChollaPoint () | |
| void | add_facet (FacetEntity *exterior_node) |
| void | remove_facet (void) |
| void | remove_facet (FacetEntity *facet_pnt) |
| FacetEntity * | get_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 () |
| ChollaPoint * | merge_partner () |
| void | set_merge_partner (ChollaPoint *merge_partner) |
Private Attributes | |
| DLIList< ChollaCurve * > | curveList |
| FacetEntity * | myCubitPoint |
| void * | myPoint |
| int | id |
| ChollaPoint * | myMergePartner |
Definition at line 21 of file ChollaPoint.hpp.
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.
{
}
| 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;}
| DLIList<ChollaCurve*>* ChollaPoint::get_curve_list_ptr | ( | ) | [inline] |
Definition at line 68 of file ChollaPoint.hpp.
{return &curveList;}
| DLIList<ChollaCurve*>& ChollaPoint::get_curves | ( | ) | [inline] |
Definition at line 64 of file ChollaPoint.hpp.
{return curveList;}
| FacetEntity* ChollaPoint::get_facets | ( | ) | [inline] |
Definition at line 52 of file ChollaPoint.hpp.
{return myCubitPoint;}
| void* ChollaPoint::get_geometric_point | ( | ) | [inline] |
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 );
}
}
}
| CubitBoolean ChollaPoint::is_in_curve | ( | ChollaCurve * | chcurve | ) |
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;
}
| CubitBoolean ChollaPoint::is_in_surface | ( | ChollaSurface * | cholla_surf | ) |
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;
}
| CubitBoolean ChollaPoint::is_in_volume | ( | ChollaVolume * | cholla_vol | ) |
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;
}
| ChollaPoint* ChollaPoint::merge_partner | ( | ) | [inline] |
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.
| 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.
{ myMergePartner = merge_partner;}
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;
}
DLIList<ChollaCurve*> ChollaPoint::curveList [private] |
Definition at line 25 of file ChollaPoint.hpp.
int ChollaPoint::id [private] |
Definition at line 28 of file ChollaPoint.hpp.
FacetEntity* ChollaPoint::myCubitPoint [private] |
Definition at line 26 of file ChollaPoint.hpp.
ChollaPoint* ChollaPoint::myMergePartner [private] |
Definition at line 29 of file ChollaPoint.hpp.
void* ChollaPoint::myPoint [private] |
Definition at line 27 of file ChollaPoint.hpp.