|
cgma
|
#include <FacetPoint.hpp>
Definition at line 46 of file FacetPoint.hpp.
| FacetPoint::FacetPoint | ( | const CubitVector & | location, |
| DLIList< Curve * > & | curves | ||
| ) |
Definition at line 55 of file FacetPoint.cpp.
{
myPoint = (CubitPoint *) new CubitPointData( location );
myCurves += curves;
iCreated = CUBIT_TRUE;
}
| FacetPoint::FacetPoint | ( | CubitPoint * | thePoint, |
| DLIList< Curve * > & | curves | ||
| ) |
Definition at line 71 of file FacetPoint.cpp.
{
myPoint = thePoint;
myCurves += curves;
iCreated = CUBIT_FALSE;
}
| FacetPoint::FacetPoint | ( | CubitPoint * | thePoint | ) |
Definition at line 87 of file FacetPoint.cpp.
{
myPoint = thePoint;
iCreated = CUBIT_FALSE;
}
| FacetPoint::~FacetPoint | ( | ) | [virtual] |
| void FacetPoint::add_curve | ( | Curve * | curv_ptr | ) | [inline] |
Definition at line 134 of file FacetPoint.hpp.
{ myCurves.append_unique( curv_ptr ); }
| void FacetPoint::append_simple_attribute_virt | ( | const CubitSimpleAttrib & | csa | ) | [virtual] |
Implements TopologyBridge.
Definition at line 123 of file FacetPoint.cpp.
{ attribSet.append_attribute(csa); }
| CubitBox FacetPoint::bounding_box | ( | void | ) | const [virtual] |
Reimplemented from TBPoint.
Definition at line 217 of file FacetPoint.cpp.
{
CubitVector temp_vector = this->coordinates();
CubitBox temp_box(temp_vector);
return temp_box;
}
| CubitVector FacetPoint::coordinates | ( | ) | const [virtual] |
Implements TBPoint.
Definition at line 189 of file FacetPoint.cpp.
{
return myPoint->coordinates();
}
| CubitStatus FacetPoint::disconnect_curve | ( | FacetCurve * | curve | ) |
Definition at line 387 of file FacetPoint.cpp.
{
if (!myCurves.move_to(curve))
return CUBIT_FAILURE;
myCurves.remove();
if (curve->start_point() == this)
curve->remove_start_point();
if (curve->end_point() == this)
curve->remove_end_point();
return CUBIT_SUCCESS;
}
| void FacetPoint::get_children_virt | ( | DLIList< TopologyBridge * > & | children | ) | [virtual] |
| void FacetPoint::get_coedges | ( | DLIList< FacetCoEdge * > & | coedges | ) |
Definition at line 361 of file FacetPoint.cpp.
{
DLIList<FacetCurve*> curve_list;
get_curves( curve_list );
curve_list.reset();
for ( int i = curve_list.size(); i--; )
curve_list.get_and_step()->get_coedges( result_list );
}
| CubitPoint* FacetPoint::get_cubit_point | ( | ) | const [inline] |
Definition at line 138 of file FacetPoint.hpp.
{ return myPoint; }
| void FacetPoint::get_curves | ( | DLIList< FacetCurve * > & | curves | ) |
Definition at line 370 of file FacetPoint.cpp.
| GeometryQueryEngine * FacetPoint::get_geometry_query_engine | ( | ) | const [virtual] |
Implements TopologyBridge.
Definition at line 203 of file FacetPoint.cpp.
{
return FacetQueryEngine::instance();
}
| void FacetPoint::get_loops | ( | DLIList< FacetLoop * > & | loops | ) |
Definition at line 347 of file FacetPoint.cpp.
{
DLIList<FacetCoEdge*> coedge_list;
get_coedges( coedge_list );
coedge_list.reset();
for ( int i = coedge_list.size(); i--; )
{
FacetCoEdge* coedge = coedge_list.get_and_step();
FacetLoop* loop = dynamic_cast<FacetLoop*>(coedge->get_loop());
if (loop)
result_list.append_unique(loop);
}
}
| void FacetPoint::get_lumps | ( | DLIList< FacetLump * > & | lumps | ) |
Definition at line 303 of file FacetPoint.cpp.
{
DLIList<FacetShell*> shell_list;
get_shells( shell_list );
shell_list.reset();
for ( int i = shell_list.size(); i--; )
{
FacetShell* shell = shell_list.get_and_step();
shell->get_lumps( result_list );
FacetLump* lump = dynamic_cast<FacetLump*>(shell->get_lump());
if (lump)
result_list.append_unique(lump);
}
}
| void FacetPoint::get_parents_virt | ( | DLIList< TopologyBridge * > & | parents | ) | [virtual] |
Implements TopologyBridge.
Definition at line 297 of file FacetPoint.cpp.
{ CAST_LIST_TO_PARENT( myCurves, parents ); }
| void FacetPoint::get_shells | ( | DLIList< FacetShell * > & | shells | ) |
Definition at line 318 of file FacetPoint.cpp.
{
DLIList<FacetSurface*> surface_list;
DLIList<FacetShell*> temp_list;
get_surfaces( surface_list );
surface_list.reset();
for ( int i = surface_list.size(); i--; )
{
FacetSurface* surface = surface_list.get_and_step();
temp_list.clean_out();
surface->get_shells( temp_list );
result_list.merge_unique( temp_list );
}
}
| CubitStatus FacetPoint::get_simple_attribute | ( | DLIList< CubitSimpleAttrib > & | csa_list | ) | [virtual] |
Implements TopologyBridge.
Definition at line 166 of file FacetPoint.cpp.
{ return attribSet.get_attributes(csa_list); }
| CubitStatus FacetPoint::get_simple_attribute | ( | const CubitString & | name, |
| DLIList< CubitSimpleAttrib > & | csa_list | ||
| ) | [virtual] |
Implements TopologyBridge.
Definition at line 169 of file FacetPoint.cpp.
{ return attribSet.get_attributes( name, csa_list ); }
| void FacetPoint::get_surfaces | ( | DLIList< FacetSurface * > & | surfaces | ) |
Definition at line 333 of file FacetPoint.cpp.
{
DLIList<FacetLoop*> loop_list;
get_loops( loop_list );
loop_list.reset();
for ( int i = loop_list.size(); i--; )
{
FacetLoop* loop = loop_list.get_and_step();
FacetSurface* surface = dynamic_cast<FacetSurface*>(loop->get_surface());
if (surface)
result_list.append_unique(surface);
}
}
| bool FacetPoint::has_parent_curve | ( | ) | const [inline] |
Definition at line 160 of file FacetPoint.hpp.
| void FacetPoint::remove_all_simple_attribute_virt | ( | ) | [virtual] |
Implements TopologyBridge.
Definition at line 152 of file FacetPoint.cpp.
{ attribSet.remove_all_attributes(); }
| void FacetPoint::remove_simple_attribute_virt | ( | const CubitSimpleAttrib & | csa | ) | [virtual] |
Implements TopologyBridge.
Definition at line 137 of file FacetPoint.cpp.
{ attribSet.remove_attribute(csa); }
| CubitStatus FacetPoint::restore_attribs | ( | FILE * | file_ptr, |
| unsigned int | endian | ||
| ) |
Definition at line 176 of file FacetPoint.cpp.
{ return attribSet.restore_attributes(file_ptr, endian); }
| CubitStatus FacetPoint::save_attribs | ( | FILE * | file_ptr | ) |
Definition at line 173 of file FacetPoint.cpp.
{ return attribSet.save_attributes(file_ptr); }
FacetAttribSet FacetPoint::attribSet [private] |
Definition at line 54 of file FacetPoint.hpp.
CubitBoolean FacetPoint::iCreated [private] |
Definition at line 52 of file FacetPoint.hpp.
DLIList<Curve*> FacetPoint::myCurves [private] |
Definition at line 50 of file FacetPoint.hpp.
CubitPoint* FacetPoint::myPoint [private] |
Definition at line 51 of file FacetPoint.hpp.