cgma
FacetPoint Class Reference

#include <FacetPoint.hpp>

Inheritance diagram for FacetPoint:
TBPoint GeometryEntity TopologyBridge

List of all members.

Public Member Functions

 FacetPoint (const CubitVector &location, DLIList< Curve * > &curves)
 FacetPoint (CubitPoint *thePoint, DLIList< Curve * > &curves)
 FacetPoint (CubitPoint *thePoint)
virtual ~FacetPoint ()
virtual void append_simple_attribute_virt (const CubitSimpleAttrib &)
virtual void remove_simple_attribute_virt (const CubitSimpleAttrib &)
virtual void remove_all_simple_attribute_virt ()
virtual CubitStatus get_simple_attribute (DLIList< CubitSimpleAttrib > &)
virtual CubitStatus get_simple_attribute (const CubitString &name, DLIList< CubitSimpleAttrib > &)
virtual CubitVector coordinates () const
virtual CubitBox bounding_box () const
virtual GeometryQueryEngineget_geometry_query_engine () const
void add_curve (Curve *curv_ptr)
CubitPointget_cubit_point () const
CubitStatus save_attribs (FILE *file_ptr)
CubitStatus restore_attribs (FILE *file_ptr, unsigned int endian)
void get_parents_virt (DLIList< TopologyBridge * > &parents)
void get_children_virt (DLIList< TopologyBridge * > &children)
void get_lumps (DLIList< FacetLump * > &lumps)
void get_shells (DLIList< FacetShell * > &shells)
void get_surfaces (DLIList< FacetSurface * > &surfaces)
void get_loops (DLIList< FacetLoop * > &loops)
void get_coedges (DLIList< FacetCoEdge * > &coedges)
void get_curves (DLIList< FacetCurve * > &curves)
CubitStatus disconnect_curve (FacetCurve *curve)
bool has_parent_curve () const

Private Attributes

DLIList< Curve * > myCurves
CubitPointmyPoint
CubitBoolean iCreated
FacetAttribSet attribSet

Detailed Description

Definition at line 46 of file FacetPoint.hpp.


Constructor & Destructor Documentation

FacetPoint::FacetPoint ( const CubitVector location,
DLIList< Curve * > &  curves 
)

Definition at line 55 of file FacetPoint.cpp.

FacetPoint::FacetPoint ( CubitPoint thePoint,
DLIList< Curve * > &  curves 
)

Definition at line 71 of file FacetPoint.cpp.

{
  myPoint = thePoint;
  myCurves += curves;
  iCreated = CUBIT_FALSE;
}

Definition at line 87 of file FacetPoint.cpp.

{
  myPoint = thePoint;
  iCreated = CUBIT_FALSE;
}
FacetPoint::~FacetPoint ( ) [virtual]

Definition at line 102 of file FacetPoint.cpp.

{
  if (iCreated && myPoint != NULL)
  {
    delete myPoint;
  }
  myPoint = NULL;
}

Member Function Documentation

void FacetPoint::add_curve ( Curve curv_ptr) [inline]

Definition at line 134 of file FacetPoint.hpp.

    { myCurves.append_unique( curv_ptr ); }

Implements TopologyBridge.

Definition at line 123 of file FacetPoint.cpp.

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

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]

Implements TopologyBridge.

Definition at line 299 of file FacetPoint.cpp.

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

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.

{
  myCurves.reset();
  for ( int i = 0; i < myCurves.size(); i++ )
    if ( FacetCurve* curve = dynamic_cast<FacetCurve*>(myCurves.next(i)) )
      result_list.append(curve);
}

Implements TopologyBridge.

Definition at line 203 of file FacetPoint.cpp.

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

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.

{ return myCurves.size() > 0; }

Implements TopologyBridge.

Definition at line 152 of file FacetPoint.cpp.

Implements TopologyBridge.

Definition at line 137 of file FacetPoint.cpp.

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

Member Data Documentation

Definition at line 54 of file FacetPoint.hpp.

Definition at line 52 of file FacetPoint.hpp.

Definition at line 50 of file FacetPoint.hpp.

Definition at line 51 of file FacetPoint.hpp.


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