cgma
FacetCoEdge Class Reference

#include <FacetCoEdge.hpp>

Inheritance diagram for FacetCoEdge:
CoEdgeSM TopologyBridge

List of all members.

Public Member Functions

 FacetCoEdge (Curve *curv_ptr, LoopSM *loop_ptr, CubitSense sense)
 FacetCoEdge (Curve *curv_ptr, CubitSense sense)
virtual ~FacetCoEdge ()
virtual GeometryQueryEngineget_geometry_query_engine () const
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 > &)
CubitSense sense ()
void get_lumps (DLIList< FacetLump * > &lumps)
void get_shells (DLIList< FacetShell * > &shells)
void get_curves (DLIList< FacetCurve * > &curves)
void get_parents_virt (DLIList< TopologyBridge * > &parents)
void get_children_virt (DLIList< TopologyBridge * > &children)
void add_loop (LoopSM *loop_ptr)
CubitSense get_sense ()
void reverse_sense ()
Curvecurve ()
LoopSMget_loop () const
void remove_loop ()
void remove_curve ()

Private Attributes

LoopSMmyLoop
CurvemyCurve
CubitSense edgeSense

Detailed Description

Definition at line 41 of file FacetCoEdge.hpp.


Constructor & Destructor Documentation

FacetCoEdge::FacetCoEdge ( Curve curv_ptr,
LoopSM loop_ptr,
CubitSense  sense 
)

Definition at line 50 of file FacetCoEdge.cpp.

{
  myCurve = curv_ptr;
  myLoop = loop_ptr;
  edgeSense = sense; 
}
FacetCoEdge::FacetCoEdge ( Curve curv_ptr,
CubitSense  sense 
)

Definition at line 66 of file FacetCoEdge.cpp.

{
  myCurve = curv_ptr;
  myLoop = NULL; 
  edgeSense = sense; 
}

Definition at line 82 of file FacetCoEdge.cpp.

{
}

Member Function Documentation

void FacetCoEdge::add_loop ( LoopSM loop_ptr) [inline]

Definition at line 112 of file FacetCoEdge.hpp.

    { myLoop = loop_ptr; }

Implements TopologyBridge.

Definition at line 112 of file FacetCoEdge.cpp.

{
  //PRINT_ERROR("FacetCoEdge::append_simple_attribute_virt not implemented\n");
  return;
}
Curve* FacetCoEdge::curve ( ) [inline]

Definition at line 121 of file FacetCoEdge.hpp.

    {return myCurve;}
void FacetCoEdge::get_children_virt ( DLIList< TopologyBridge * > &  children) [virtual]

Implements TopologyBridge.

Definition at line 225 of file FacetCoEdge.cpp.

  { children.append( myCurve ); }
void FacetCoEdge::get_curves ( DLIList< FacetCurve * > &  curves)

Definition at line 256 of file FacetCoEdge.cpp.

{
  if (FacetCurve* curve = dynamic_cast<FacetCurve*>(myCurve))
    result_list.append(curve);
}

Implements TopologyBridge.

Definition at line 95 of file FacetCoEdge.cpp.

LoopSM* FacetCoEdge::get_loop ( ) const [inline]

Definition at line 125 of file FacetCoEdge.hpp.

{ return myLoop; }
void FacetCoEdge::get_lumps ( DLIList< FacetLump * > &  lumps)

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

Implements TopologyBridge.

Definition at line 222 of file FacetCoEdge.cpp.

  { parents.append( myLoop ); }

Definition at line 116 of file FacetCoEdge.hpp.

    {return edgeSense;}
void FacetCoEdge::get_shells ( DLIList< FacetShell * > &  shells)

Definition at line 249 of file FacetCoEdge.cpp.

{
  if ( FacetLoop* loop = dynamic_cast<FacetLoop*>(myLoop) )
    if ( FacetSurface* surf = dynamic_cast<FacetSurface*>(loop->get_surface()) )
      surf->get_shells( result_list );
}

Implements TopologyBridge.

Definition at line 165 of file FacetCoEdge.cpp.

{
  //PRINT_ERROR("FacetCoEdge::get_simple_attribute not implemented\n");
  return CUBIT_FAILURE;
}

Implements TopologyBridge.

Definition at line 171 of file FacetCoEdge.cpp.

  { return CUBIT_FAILURE; }

Implements TopologyBridge.

Definition at line 148 of file FacetCoEdge.cpp.

{
  //PRINT_ERROR("FacetCoEdge::remove_all_simple_attribute_virt not implemented\n");
  return;
}
void FacetCoEdge::remove_curve ( ) [inline]

Definition at line 128 of file FacetCoEdge.hpp.

{ myCurve = 0; }
void FacetCoEdge::remove_loop ( ) [inline]

Definition at line 127 of file FacetCoEdge.hpp.

{ myLoop = 0; }

Implements TopologyBridge.

Definition at line 130 of file FacetCoEdge.cpp.

{
  //PRINT_ERROR("FacetCoEdge::remove_simple_attribute_virt not implemented\n");
  return;
}

Implements CoEdgeSM.

Definition at line 176 of file FacetCoEdge.cpp.

{
  return edgeSense;
}

Member Data Documentation

Definition at line 135 of file FacetCoEdge.hpp.

Definition at line 134 of file FacetCoEdge.hpp.

Definition at line 133 of file FacetCoEdge.hpp.


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