|
cgma
|
#include <PartitionCoEdge.hpp>
Definition at line 24 of file PartitionCoEdge.hpp.
| PartitionCoEdge::PartitionCoEdge | ( | PartitionSurface * | surf, |
| CubitSense | sense | ||
| ) |
Definition at line 8 of file PartitionCoEdge.cpp.
: mySense(sense), myLoop(0), loopPrev(0), loopNext(0), myCurve(0), curveNext(0) { surf->sub_entity_set().add_lower_order( this ); }
| PartitionCoEdge::PartitionCoEdge | ( | PartitionCoEdge * | split_from | ) |
Definition at line 31 of file PartitionCoEdge.cpp.
: myLoop(0), loopPrev(0), loopNext(0), myCurve(0), curveNext(0) { mySense = split_from->mySense; if( split_from->real_coedge() ) { split_from->sub_entity_set().add_partition( this, split_from ); } else { split_from->sub_entity_set().add_lower_order( this ); } }
| PartitionCoEdge::PartitionCoEdge | ( | CoEdgeSM * | coedge | ) |
| PartitionCoEdge::PartitionCoEdge | ( | const PartitionCoEdge & | ) | [private] |
| void PartitionCoEdge::append_simple_attribute_virt | ( | const CubitSimpleAttrib & | ) | [virtual] |
| CubitBox PartitionCoEdge::bounding_box | ( | void | ) | const [virtual] |
Implements PartitionEntity.
Definition at line 151 of file PartitionCoEdge.cpp.
| PartitionPoint * PartitionCoEdge::end_point | ( | ) | const |
Definition at line 135 of file PartitionCoEdge.cpp.
{
PartitionPoint* result = 0;
if( myCurve )
{
if( mySense == CUBIT_FORWARD )
result = myCurve->end_point();
else if( mySense == CUBIT_REVERSED )
result = myCurve->start_point();
}
return result;
}
| TopologyBridge * PartitionCoEdge::find_parent_loop | ( | ) | const |
Definition at line 66 of file PartitionCoEdge.cpp.
{
if( get_loop() )
return get_loop();
CoEdgeSM* coedge = real_coedge();
if( !coedge )
return 0;
DLIList<TopologyBridge*> list;
coedge->get_parents_virt( list );
assert( list.size() == 1 );
return list.get();
}
| void PartitionCoEdge::get_children_virt | ( | DLIList< TopologyBridge * > & | list | ) | [virtual] |
Implements TopologyBridge.
Definition at line 87 of file PartitionCoEdge.cpp.
| PartitionCurve* PartitionCoEdge::get_curve | ( | ) | const [inline] |
Definition at line 38 of file PartitionCoEdge.hpp.
{ return myCurve; }
| GeometryQueryEngine * PartitionCoEdge::get_geometry_query_engine | ( | ) | const [virtual] |
Implements TopologyBridge.
Definition at line 117 of file PartitionCoEdge.cpp.
{
return VirtualQueryEngine::instance();
}
| PartitionLoop* PartitionCoEdge::get_loop | ( | ) | const [inline] |
Definition at line 40 of file PartitionCoEdge.hpp.
{ return myLoop; }
| void PartitionCoEdge::get_parents_virt | ( | DLIList< TopologyBridge * > & | list | ) | [virtual] |
Implements TopologyBridge.
Definition at line 94 of file PartitionCoEdge.cpp.
{
TopologyBridge* result = find_parent_loop();
assert( result != NULL );
list.append( result );
}
| CubitStatus PartitionCoEdge::get_simple_attribute | ( | DLIList< CubitSimpleAttrib > & | ) | [virtual] |
Implements TopologyBridge.
Definition at line 109 of file PartitionCoEdge.cpp.
{ return CUBIT_FAILURE; }
| CubitStatus PartitionCoEdge::get_simple_attribute | ( | const CubitString & | name, |
| DLIList< CubitSimpleAttrib > & | |||
| ) | [virtual] |
Implements TopologyBridge.
Definition at line 111 of file PartitionCoEdge.cpp.
{ return CUBIT_FAILURE; }
| int PartitionCoEdge::layer | ( | ) | const [inline, virtual] |
Reimplemented from TopologyBridge.
Definition at line 72 of file PartitionCoEdge.hpp.
{ return sub_entity_set().get_owner_layer(); }
| PartitionCoEdge* PartitionCoEdge::next | ( | ) | const [inline] |
Definition at line 43 of file PartitionCoEdge.hpp.
{ return loopNext; }
| void PartitionCoEdge::notify_split | ( | FacetEntity * | , |
| FacetEntity * | |||
| ) | [virtual] |
| CoEdgeSM * PartitionCoEdge::real_coedge | ( | ) | const |
Definition at line 81 of file PartitionCoEdge.cpp.
{
return dynamic_cast<CoEdgeSM*>(partitioned_entity());
// this will be null for coedges of segmented (split) curves.
}
| void PartitionCoEdge::remove_all_simple_attribute_virt | ( | ) | [virtual] |
| void PartitionCoEdge::remove_simple_attribute_virt | ( | const CubitSimpleAttrib & | ) | [virtual] |
| void PartitionCoEdge::reverse_sense | ( | ) | [virtual] |
Implements PartitionEntity.
Definition at line 59 of file PartitionCoEdge.cpp.
{
mySense = mySense == CUBIT_FORWARD ? CUBIT_REVERSED :
mySense == CUBIT_REVERSED ? CUBIT_FORWARD :
CUBIT_UNKNOWN ;
}
| virtual CubitStatus PartitionCoEdge::save | ( | CubitSimpleAttrib & | ) | [inline, virtual] |
Implements PartitionEntity.
Definition at line 58 of file PartitionCoEdge.hpp.
{ assert(0); return CUBIT_FAILURE; }
| CubitSense PartitionCoEdge::sense | ( | ) | [inline, virtual] |
| PartitionPoint * PartitionCoEdge::start_point | ( | ) | const |
Definition at line 122 of file PartitionCoEdge.cpp.
{
PartitionPoint* result = 0;
if( myCurve )
{
if( mySense == CUBIT_FORWARD )
result = myCurve->start_point();
else if( mySense == CUBIT_REVERSED )
result = myCurve->end_point();
}
return result;
}
| virtual void PartitionCoEdge::transform | ( | const CubitTransformMatrix & | ) | [inline, virtual] |
friend class PartitionCurve [friend] |
Definition at line 28 of file PartitionCoEdge.hpp.
friend class PartitionLoop [friend] |
Definition at line 27 of file PartitionCoEdge.hpp.
PartitionCoEdge* PartitionCoEdge::curveNext [private] |
Definition at line 88 of file PartitionCoEdge.hpp.
PartitionCoEdge* PartitionCoEdge::loopNext [private] |
Definition at line 85 of file PartitionCoEdge.hpp.
PartitionCoEdge* PartitionCoEdge::loopPrev [private] |
Definition at line 84 of file PartitionCoEdge.hpp.
PartitionCurve* PartitionCoEdge::myCurve [private] |
Definition at line 87 of file PartitionCoEdge.hpp.
PartitionLoop* PartitionCoEdge::myLoop [private] |
Definition at line 83 of file PartitionCoEdge.hpp.
CubitSense PartitionCoEdge::mySense [private] |
Definition at line 81 of file PartitionCoEdge.hpp.