cgma
PartitionEntity Class Reference

#include <PartitionEntity.hpp>

Inheritance diagram for PartitionEntity:
PartitionBody PartitionCoEdge PartitionCurve PartitionLump PartitionPoint PartitionSurface PartPTCurve SegmentedCurve SubCurve SubSurface

List of all members.

Public Member Functions

virtual ~PartitionEntity ()
TopologyBridgepartitioned_entity () const
SubEntitySetsub_entity_set () const
virtual CubitStatus move_to_geometry (CubitVector &position)
CubitStatus relax_to_geometry (CubitPoint *facet_point, const CubitVector *input_position=0)
virtual void print_debug_info (const char *prefix=0, bool print_subentity_set=true) const
void print_partitioned_entity (const char *prefix=0) const
virtual void transform (const CubitTransformMatrix &xform)=0
virtual void reverse_sense ()=0
virtual void notify_split (FacetEntity *old_entity, FacetEntity *new_entity)=0
virtual CubitStatus save (CubitSimpleAttrib &attrib)=0
virtual CubitBox bounding_box () const =0

Public Attributes

int mark

Protected Member Functions

 PartitionEntity ()

Private Member Functions

 PartitionEntity (const PartitionEntity &)
void operator= (const PartitionEntity &)

Private Attributes

SubEntitySetentitySet
PartitionEntityentitySetNext
int entitySetId

Friends

class SubEntitySet

Detailed Description

Definition at line 22 of file PartitionEntity.hpp.


Constructor & Destructor Documentation

Definition at line 20 of file PartitionEntity.cpp.

{
  entitySet->remove(this);
}

Definition at line 25 of file PartitionEntity.cpp.

  : mark(0), entitySet(0), entitySetNext(0), entitySetId(0)
{
}

Member Function Documentation

Reimplemented in PartitionSurface, PartitionCurve, and PartitionPoint.

Definition at line 51 of file PartitionEntity.cpp.

  { return CUBIT_SUCCESS; }
virtual void PartitionEntity::notify_split ( FacetEntity old_entity,
FacetEntity new_entity 
) [pure virtual]
void PartitionEntity::operator= ( const PartitionEntity ) [private]

Definition at line 76 of file PartitionEntity.hpp.

{
  return entitySet->get_entity();
}
void PartitionEntity::print_debug_info ( const char *  prefix = 0,
bool  print_subentity_set = true 
) const [virtual]

Reimplemented in PartitionSurface, SegmentedCurve, PartitionCurve, and PartitionPoint.

Definition at line 30 of file PartitionEntity.cpp.

{
  if( !prefix ) prefix = "";
  PRINT_INFO("%sPartitionEntity %p\n", prefix, (void*)this );
  if( print_subent_set )
    sub_entity_set().print_debug_info(prefix);
  else
    print_partitioned_entity( prefix );
}
void PartitionEntity::print_partitioned_entity ( const char *  prefix = 0) const

Definition at line 41 of file PartitionEntity.cpp.

{
  if(!prefix) prefix = "";
  PRINT_INFO("%sPartitioned Entity: %s %p\n",
    prefix, 
    partitioned_entity() ? 
    fix_type_name(typeid(*partitioned_entity()).name()) : "TopologyBridge",
    (void*)partitioned_entity() );
}
CubitStatus PartitionEntity::relax_to_geometry ( CubitPoint facet_point,
const CubitVector input_position = 0 
)

Definition at line 54 of file PartitionEntity.cpp.

{
  if (input_pos)
  {
    CubitVector closest(*input_pos);
    if (move_to_geometry(closest) && 
        facet_point->check_inverted_facets(closest))
    {
      facet_point->set(closest);
      return CUBIT_SUCCESS;
    }
  }
  
  CubitVector facet_pos(facet_point->coordinates());
  if (move_to_geometry(facet_pos) &&
      facet_point->check_inverted_facets(facet_pos))
  {
    facet_point->set(facet_pos);
    return CUBIT_SUCCESS;
  }
  
  return CUBIT_FAILURE;
}

Definition at line 81 of file PartitionEntity.hpp.

{
  return *entitySet;
}

Friends And Related Function Documentation

friend class SubEntitySet [friend]

Definition at line 65 of file PartitionEntity.hpp.


Member Data Documentation

Definition at line 67 of file PartitionEntity.hpp.

Definition at line 72 of file PartitionEntity.hpp.

Definition at line 68 of file PartitionEntity.hpp.

Definition at line 38 of file PartitionEntity.hpp.


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