cgma
FacetLoop Class Reference

#include <FacetLoop.hpp>

Inheritance diagram for FacetLoop:
LoopSM TopologyBridge

List of all members.

Public Member Functions

 FacetLoop (Surface *surf_ptr, DLIList< CoEdgeSM * > &coedge_list)
 FacetLoop (DLIList< CoEdgeSM * > &coedge_list)
virtual ~FacetLoop ()
virtual CubitBoolean is_external ()
virtual LoopType loop_type ()
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 CubitBox bounding_box () const
virtual GeometryQueryEngineget_geometry_query_engine () const
void get_lumps (DLIList< FacetLump * > &lumps)
void get_shells (DLIList< FacetShell * > &shells)
void get_coedges (DLIList< FacetCoEdge * > &coedges)
void get_curves (DLIList< FacetCurve * > &curves)
void get_parents_virt (DLIList< TopologyBridge * > &parents)
void get_children_virt (DLIList< TopologyBridge * > &children)
void add_surface (Surface *new_surface_ptr)
void reverse ()
Surfaceget_surface () const
void remove_surface ()
void disconnect_all_coedges ()

Private Attributes

SurfacemySurface
DLIList< CoEdgeSM * > myCoEdges

Detailed Description

Definition at line 33 of file FacetLoop.hpp.


Constructor & Destructor Documentation

FacetLoop::FacetLoop ( Surface surf_ptr,
DLIList< CoEdgeSM * > &  coedge_list 
)

Definition at line 40 of file FacetLoop.cpp.

{
  mySurface = surf_ptr;
  myCoEdges += coedge_list;
}
FacetLoop::FacetLoop ( DLIList< CoEdgeSM * > &  coedge_list)

Definition at line 53 of file FacetLoop.cpp.

{
  myCoEdges += coedge_list;
}
FacetLoop::~FacetLoop ( ) [virtual]

Definition at line 64 of file FacetLoop.cpp.

{
}

Member Function Documentation

void FacetLoop::add_surface ( Surface new_surface_ptr) [inline]

Definition at line 115 of file FacetLoop.hpp.

    { mySurface = new_surface_ptr; }

Implements TopologyBridge.

Definition at line 98 of file FacetLoop.cpp.

{
  //PRINT_ERROR("FacetLoop::append_simple_attribute_virt not defined\n");
  return;

}
CubitBox FacetLoop::bounding_box ( void  ) const [virtual]

Definition at line 158 of file FacetLoop.cpp.

{
   CubitBox box;
   //PRINT_ERROR("FacetLoop::bounding_box not implemented\n");
   return box;
}

Definition at line 288 of file FacetLoop.cpp.

{
  myCoEdges.reset();
  for (int i = myCoEdges.size(); i--; )
  {
    CoEdgeSM* sm_ptr = myCoEdges.get_and_step();
    FacetCoEdge* coedge = dynamic_cast<FacetCoEdge*>(sm_ptr);
    if (coedge)
    {
      assert(coedge->get_loop() == this);
      coedge->remove_loop();
    }
  }
  myCoEdges.clean_out();
}
void FacetLoop::get_children_virt ( DLIList< TopologyBridge * > &  children) [virtual]

Implements TopologyBridge.

Definition at line 231 of file FacetLoop.cpp.

  { CAST_LIST_TO_PARENT( myCoEdges, children ); }
void FacetLoop::get_coedges ( DLIList< FacetCoEdge * > &  coedges)

Definition at line 256 of file FacetLoop.cpp.

{
  myCoEdges.reset();
  for ( int i = 0; i < myCoEdges.size(); i++ )
    if (FacetCoEdge* coedge = dynamic_cast<FacetCoEdge*>(myCoEdges.next(i)))
      result_list.append( coedge );
}
void FacetLoop::get_curves ( DLIList< FacetCurve * > &  curves)

Definition at line 264 of file FacetLoop.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();
    FacetCurve* curve = dynamic_cast<FacetCurve*>(coedge->curve());
    if (curve)
      result_list.append_unique(curve);
  }
}

Implements TopologyBridge.

Definition at line 171 of file FacetLoop.cpp.

void FacetLoop::get_lumps ( DLIList< FacetLump * > &  lumps)

Definition at line 235 of file FacetLoop.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 FacetLoop::get_parents_virt ( DLIList< TopologyBridge * > &  parents) [virtual]

Implements TopologyBridge.

Definition at line 229 of file FacetLoop.cpp.

  { parents.append( mySurface ); }
void FacetLoop::get_shells ( DLIList< FacetShell * > &  shells)

Definition at line 250 of file FacetLoop.cpp.

{
  if ( FacetSurface* surf = dynamic_cast<FacetSurface*>(mySurface) )
    surf->get_shells( result_list );
}

Implements TopologyBridge.

Definition at line 142 of file FacetLoop.cpp.

{
  //PRINT_ERROR("FacetLoop::get_simple_attribute not defined\n");
  return CUBIT_FAILURE;
}

Implements TopologyBridge.

Definition at line 148 of file FacetLoop.cpp.

  { return CUBIT_FAILURE; }
Surface* FacetLoop::get_surface ( ) const [inline]

Definition at line 121 of file FacetLoop.hpp.

{ return mySurface; }

Definition at line 78 of file FacetLoop.cpp.

{
          PRINT_ERROR( "This command is not supported with this engine.\n");
          return CUBIT_FAILURE;
}

Implements LoopSM.

Definition at line 84 of file FacetLoop.cpp.

{
  return LOOP_TYPE_UNKNOWN;
}

Implements TopologyBridge.

Definition at line 128 of file FacetLoop.cpp.

{
  //PRINT_ERROR(" FacetLoop::remove_all_simple_attribute_virt not defined\n");
  return;
}

Implements TopologyBridge.

Definition at line 113 of file FacetLoop.cpp.

{
  //PRINT_ERROR("FacetLoop::remove_simple_attribute_virt not defined\n");
  return;
}
void FacetLoop::remove_surface ( ) [inline]

Definition at line 123 of file FacetLoop.hpp.

{ mySurface = 0; }
void FacetLoop::reverse ( ) [inline]

Definition at line 118 of file FacetLoop.hpp.


Member Data Documentation

Definition at line 131 of file FacetLoop.hpp.

Definition at line 130 of file FacetLoop.hpp.


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