cgma
CubitAttrib Class Reference

#include <CubitAttrib.hpp>

Inheritance diagram for CubitAttrib:
CAAssemblyData CABodies CACompositeVG CADeferredAttrib CAEntityColor CAEntityId CAEntityName CAEntitySense CAEntityTol CAGroup CAMergePartner CAMergeStatus CAPartitionVG CASourceFeature CATag CAUniqueId CAVirtualVG

List of all members.

Public Member Functions

 CubitAttrib (RefEntity *attrib_owner)
virtual ~CubitAttrib ()
RefEntityattrib_owner ()
void attrib_owner (RefEntity *new_attrib_owner)
CubitBoolean has_actuated ()
void has_actuated (CubitBoolean set_has_actuated)
CubitBoolean has_updated ()
void has_updated (CubitBoolean set_has_updated)
virtual CubitBoolean has_written () const
virtual void has_written (CubitBoolean set_has_written)
void delete_attrib (CubitBoolean set_remove)
CubitBoolean delete_attrib ()
CubitAttribnext_attrib ()
CubitStatus set_next_attrib (CubitAttrib *next_attrib_ptr)
void auto_actuate_flag (CubitBoolean value)
CubitBoolean auto_actuate_flag ()
void auto_update_flag (CubitBoolean value)
CubitBoolean auto_update_flag ()
void auto_write_flag (CubitBoolean value)
CubitBoolean auto_write_flag ()
void auto_read_flag (CubitBoolean value)
CubitBoolean auto_read_flag ()
CubitBoolean actuate_in_constructor ()
CubitBoolean actuate_after_geom_changes ()
virtual CubitSimpleAttrib cubit_simple_attrib ()=0
virtual CubitStatus actuate ()=0
virtual CubitStatus actuate_list (DLIList< RefEntity * >)
virtual CubitStatus update ()=0
virtual CubitStatus reset ()=0
virtual CubitSimpleAttrib split_owner ()
virtual void merge_owner (CubitAttrib *deletable_ca_ptr)
virtual void transf_owner (const CubitVector &matrow1, const CubitVector &matrow2, const CubitVector &matrow3, const CubitVector &translate_vec, const double scale_factor)
virtual int int_attrib_type ()=0
const char * att_internal_name ()
int equivalent (const CubitSimpleAttrib &csa_ptr)
virtual void print ()

Protected Member Functions

virtual void remove_attribute ()
virtual void add_attribute ()

Protected Attributes

CubitBoolean hasActuated
CubitBoolean hasUpdated
CubitBoolean hasWritten
CubitBoolean deleteAttrib
RefEntityattribOwnerEntity
CubitAttribnextAttrib

Detailed Description

Definition at line 93 of file CubitAttrib.hpp.


Constructor & Destructor Documentation

CubitAttrib::CubitAttrib ( RefEntity attrib_owner)

Definition at line 26 of file CubitAttrib.cpp.

{
  attribOwnerEntity = attrib_owner;
  hasActuated = CUBIT_FALSE;
  hasUpdated = CUBIT_FALSE;
  hasWritten = CUBIT_FALSE;
  deleteAttrib = CUBIT_FALSE;
  nextAttrib = NULL;

    // add this to the owner
  if (attrib_owner) attrib_owner->add_cubit_attrib(this);
}

Definition at line 39 of file CubitAttrib.cpp.


Member Function Documentation

CubitStatus CubitAttrib::actuate_list ( DLIList< RefEntity * >  entity_list) [virtual]

Reimplemented in CAMergePartner.

Definition at line 45 of file CubitAttrib.cpp.

{
  RefEntity * ref_ent;
  for(int i = entity_list.size(); i > 0; i--)
  {
    ref_ent = entity_list.get_and_step();
    ref_ent->actuate_cubit_attrib(CA_ENTITY_NAME);
    ref_ent->actuate_cubit_attrib ( CA_UNIQUE_ID );
    ref_ent->actuate_cubit_attrib(CA_SIZING_FUNCTION_SKELETON);
    ref_ent->actuate_cubit_attrib(CA_MESH_INTERVAL);
    ref_ent->actuate_cubit_attrib(CA_GROUP);
    ref_ent->actuate_cubit_attrib(CA_GENESIS_ENTITY);
//    ref_ent->actuate_cubit_attrib ( CA_ENTITY_ID );
    ref_ent->actuate_cubit_attrib ( CA_MESH_SCHEME );
    ref_ent->actuate_cubit_attrib ( CA_SMOOTH_SCHEME );
    ref_ent->actuate_cubit_attrib ( CA_PARTITION_VG );
    ref_ent->actuate_cubit_attrib ( CA_COMPOSITE_VG );
    ref_ent->actuate_cubit_attrib ( CA_VIRTUAL_VG );
    ref_ent->actuate_cubit_attrib(CA_MERGE_PARTNER);
    ref_ent->actuate_cubit_attrib(CA_DEFERRED_ATTRIB);
    ref_ent->actuate_cubit_attrib(CA_MESH_CONTAINER);
    ref_ent->actuate_cubit_attrib(CA_BODIES);
    ref_ent->actuate_cubit_attrib ( CA_ENTITY_ID );
    ref_ent->actuate_cubit_attrib(CA_ENTITY_COLOR);
    ref_ent->actuate_cubit_attrib(CA_ENTITY_TOL);
//#ifdef CAT
    ref_ent->actuate_cubit_attrib(CA_VERTEX_FORCE);
    ref_ent->actuate_cubit_attrib(CA_SURFACE_FORCE);
    ref_ent->actuate_cubit_attrib(CA_CURVE_FORCE);
    ref_ent->actuate_cubit_attrib(CA_VERTEX_DISPLACEMENT);
    ref_ent->actuate_cubit_attrib(CA_SURFACE_DISPLACEMENT);
    ref_ent->actuate_cubit_attrib(CA_CURVE_DISPLACEMENT);
    ref_ent->actuate_cubit_attrib(CA_VOLUME_DISPLACEMENT);
    ref_ent->actuate_cubit_attrib(CA_SURFACE_PRESSURE);
    ref_ent->actuate_cubit_attrib(CA_CURVE_PRESSURE);
    ref_ent->actuate_cubit_attrib(CA_SURFACE_TEMPERATURE);
    ref_ent->actuate_cubit_attrib(CA_CURVE_TEMPERATURE);
    ref_ent->actuate_cubit_attrib(CA_VERTEX_TEMPERATURE);
    ref_ent->actuate_cubit_attrib(CA_SURFACE_HEATFLUX);
    ref_ent->actuate_cubit_attrib(CA_CURVE_HEATFLUX);
    ref_ent->actuate_cubit_attrib(CA_SURFACE_CONVECTION);
    ref_ent->actuate_cubit_attrib(CA_CURVE_CONVECTION);
    ref_ent->actuate_cubit_attrib(CA_SURFACE_CONTACT);
    ref_ent->actuate_cubit_attrib(CA_CURVE_CONTACT);
    ref_ent->actuate_cubit_attrib(CA_COORD_SYS);
    ref_ent->actuate_cubit_attrib(CA_PROPERTY_BLOCK);
    ref_ent->actuate_cubit_attrib(CA_MATERIAL_BLOCK);
//#endif
    ref_ent->actuate_cubit_attrib(CA_MERGE_STATUS);
  }
  return CUBIT_SUCCESS;
}
void CubitAttrib::add_attribute ( ) [protected, virtual]

Definition at line 116 of file CubitAttrib.cpp.

const char* CubitAttrib::att_internal_name ( ) [inline]

Definition at line 218 of file CubitAttrib.hpp.

Definition at line 113 of file CubitAttrib.hpp.

void CubitAttrib::attrib_owner ( RefEntity new_attrib_owner) [inline]

Definition at line 114 of file CubitAttrib.hpp.

    {attribOwnerEntity = new_attrib_owner;}
void CubitAttrib::delete_attrib ( CubitBoolean  set_remove) [inline]

Definition at line 132 of file CubitAttrib.hpp.

{deleteAttrib = set_remove;}

Definition at line 133 of file CubitAttrib.hpp.

{return deleteAttrib;}
int CubitAttrib::equivalent ( const CubitSimpleAttrib csa_ptr)

Definition at line 121 of file CubitAttrib.cpp.

{
    //- return true if the csa and this are equivalent
   CubitSimpleAttrib this_csa_ptr = cubit_simple_attrib();

   return this_csa_ptr == csa_ptr;
}

Definition at line 118 of file CubitAttrib.hpp.

{return hasActuated;}
void CubitAttrib::has_actuated ( CubitBoolean  set_has_actuated) [inline]

Definition at line 119 of file CubitAttrib.hpp.

    { hasActuated = set_has_actuated;}

Definition at line 123 of file CubitAttrib.hpp.

{return hasUpdated;}
void CubitAttrib::has_updated ( CubitBoolean  set_has_updated) [inline]

Definition at line 124 of file CubitAttrib.hpp.

    { hasUpdated = set_has_updated;}

Reimplemented in CAGroup.

Definition at line 107 of file CubitAttrib.cpp.

{return hasWritten;}
void CubitAttrib::has_written ( CubitBoolean  set_has_written) [virtual]

Reimplemented in CAGroup.

Definition at line 98 of file CubitAttrib.cpp.

{
  hasWritten = set_has_written;

    // if the written flag is being set to true, reset the hasUpdated flag
  if (CUBIT_TRUE == hasWritten)
    hasUpdated = CUBIT_FALSE;
}
void CubitAttrib::merge_owner ( CubitAttrib deletable_ca_ptr) [inline, virtual]

Reimplemented in CATag, CAEntityTol, CAEntityId, CAEntityName, and CAEntityColor.

Definition at line 394 of file CubitAttrib.hpp.

{
    //- merge this attrib with deletable_ca_ptr (keep this)

    // by default, get rid of this attribute
  deleteAttrib = CUBIT_TRUE;
  return;
}

Definition at line 136 of file CubitAttrib.hpp.

{return nextAttrib;}
void CubitAttrib::print ( ) [virtual]

Reimplemented in CATag, CAMergePartner, CAUniqueId, CAEntitySense, CAEntityTol, CAEntityId, CASourceFeature, CAEntityColor, and CAEntityName.

Definition at line 129 of file CubitAttrib.cpp.

{
    // print some details about this attrib
  PRINT_INFO("Attrib type %s, Owner = %s %d, Actuated=%d, Updated=%d, "
             "Written=%d, Delete=%d\n",
             att_internal_name(),
             (attribOwnerEntity ? attribOwnerEntity->class_name() : "(none)"),
             (attribOwnerEntity ? attribOwnerEntity->id() : 0),
             hasActuated, hasUpdated,
             hasWritten, deleteAttrib);

}
void CubitAttrib::remove_attribute ( ) [protected, virtual]

Definition at line 110 of file CubitAttrib.cpp.

CubitStatus CubitAttrib::set_next_attrib ( CubitAttrib next_attrib_ptr) [inline]

Definition at line 379 of file CubitAttrib.hpp.

{
  nextAttrib = next_attrib_ptr;
  return CUBIT_SUCCESS;
}

Reimplemented in CATag, CAEntityTol, and CAEntityName.

Definition at line 385 of file CubitAttrib.hpp.

{
    //- split this attrib; pass back a new simple attrib if desired

    // by default, get rid of this attribute and don't copy to new entity
  deleteAttrib = CUBIT_TRUE;
  return CubitSimpleAttrib();
}
void CubitAttrib::transf_owner ( const CubitVector matrow1,
const CubitVector matrow2,
const CubitVector matrow3,
const CubitVector translate_vec,
const double  scale_factor 
) [inline, virtual]

Definition at line 403 of file CubitAttrib.hpp.

{
    //- by default, do nothing
}

Member Data Documentation

Definition at line 295 of file CubitAttrib.hpp.

Definition at line 292 of file CubitAttrib.hpp.

Definition at line 282 of file CubitAttrib.hpp.

Definition at line 285 of file CubitAttrib.hpp.

Definition at line 288 of file CubitAttrib.hpp.

Definition at line 298 of file CubitAttrib.hpp.


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