cgma
|
#include <CubitAttrib.hpp>
Definition at line 93 of file CubitAttrib.hpp.
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); }
CubitAttrib::~CubitAttrib | ( | ) | [virtual] |
Definition at line 39 of file CubitAttrib.cpp.
{ if( !hasActuated ) CADeferredAttrib::remove_unactuated_ca( this ); }
virtual CubitStatus CubitAttrib::actuate | ( | ) | [pure virtual] |
Implemented in CATag, CADeferredAttrib, CAGroup, CAPartitionVG, CAVirtualVG, CAEntitySense, CAEntityTol, CABodies, CAEntityId, CAUniqueId, CAMergePartner, CACompositeVG, CAMergeStatus, CAEntityColor, CAEntityName, CASourceFeature, and CAAssemblyData.
CubitBoolean CubitAttrib::actuate_after_geom_changes | ( | ) | [inline] |
Definition at line 373 of file CubitAttrib.hpp.
{ return CGMApp::instance()->attrib_manager()->actuate_after_geom_changes(int_attrib_type()); }
CubitBoolean CubitAttrib::actuate_in_constructor | ( | ) | [inline] |
Definition at line 367 of file CubitAttrib.hpp.
{ return CGMApp::instance()->attrib_manager()->actuate_in_constructor(int_attrib_type()); }
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.
{ attribOwnerEntity->add_cubit_attrib(this); }
const char* CubitAttrib::att_internal_name | ( | ) | [inline] |
Definition at line 218 of file CubitAttrib.hpp.
{ return CGMApp::instance()->attrib_manager()->att_internal_name( int_attrib_type() ); }
RefEntity* CubitAttrib::attrib_owner | ( | ) | [inline] |
Definition at line 113 of file CubitAttrib.hpp.
{return attribOwnerEntity;}
void CubitAttrib::attrib_owner | ( | RefEntity * | new_attrib_owner | ) | [inline] |
Definition at line 114 of file CubitAttrib.hpp.
{attribOwnerEntity = new_attrib_owner;}
void CubitAttrib::auto_actuate_flag | ( | CubitBoolean | value | ) | [inline] |
Definition at line 357 of file CubitAttrib.hpp.
{ CGMApp::instance()->attrib_manager()->set_auto_actuate_flag(int_attrib_type(), value); }
CubitBoolean CubitAttrib::auto_actuate_flag | ( | ) | [inline] |
Definition at line 362 of file CubitAttrib.hpp.
{ return CGMApp::instance()->attrib_manager()->auto_actuate_flag(int_attrib_type()); }
void CubitAttrib::auto_read_flag | ( | CubitBoolean | value | ) |
void CubitAttrib::auto_update_flag | ( | CubitBoolean | value | ) |
void CubitAttrib::auto_write_flag | ( | CubitBoolean | value | ) |
virtual CubitSimpleAttrib CubitAttrib::cubit_simple_attrib | ( | ) | [pure virtual] |
Implemented in CATag, CADeferredAttrib, CAGroup, CAPartitionVG, CAVirtualVG, CAEntitySense, CAEntityTol, CAEntityId, CAMergePartner, CAUniqueId, CABodies, CACompositeVG, CAEntityName, CAEntityColor, CASourceFeature, CAMergeStatus, and CAAssemblyData.
void CubitAttrib::delete_attrib | ( | CubitBoolean | set_remove | ) | [inline] |
Definition at line 132 of file CubitAttrib.hpp.
{deleteAttrib = set_remove;}
CubitBoolean CubitAttrib::delete_attrib | ( | ) | [inline] |
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; }
CubitBoolean CubitAttrib::has_actuated | ( | ) | [inline] |
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;}
CubitBoolean CubitAttrib::has_updated | ( | ) | [inline] |
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;}
CubitBoolean CubitAttrib::has_written | ( | ) | const [virtual] |
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; }
virtual int CubitAttrib::int_attrib_type | ( | ) | [pure virtual] |
Implemented in CATag, CADeferredAttrib, CAGroup, CAPartitionVG, CAVirtualVG, CAEntitySense, CAEntityTol, CAEntityId, CAMergePartner, CAUniqueId, CABodies, CASourceFeature, CACompositeVG, CAEntityName, CAEntityColor, CAMergeStatus, and CAAssemblyData.
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; }
CubitAttrib* CubitAttrib::next_attrib | ( | ) | [inline] |
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.
{ if (has_written()) attribOwnerEntity->remove_attrib_geometry_entity(this); }
virtual CubitStatus CubitAttrib::reset | ( | ) | [pure virtual] |
Implemented in CATag, CADeferredAttrib, CAGroup, CAPartitionVG, CAVirtualVG, CAEntitySense, CABodies, CAEntityTol, CAEntityId, CAMergePartner, CAUniqueId, CACompositeVG, CAMergeStatus, CAEntityColor, CAEntityName, CASourceFeature, and CAAssemblyData.
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; }
CubitSimpleAttrib CubitAttrib::split_owner | ( | ) | [inline, virtual] |
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
}
virtual CubitStatus CubitAttrib::update | ( | ) | [pure virtual] |
Implemented in CATag, CADeferredAttrib, CAGroup, CAPartitionVG, CAVirtualVG, CAEntitySense, CAEntityTol, CABodies, CAEntityId, CAMergePartner, CAUniqueId, CACompositeVG, CAMergeStatus, CAEntityColor, CAEntityName, CASourceFeature, and CAAssemblyData.
RefEntity* CubitAttrib::attribOwnerEntity [protected] |
Definition at line 295 of file CubitAttrib.hpp.
CubitBoolean CubitAttrib::deleteAttrib [protected] |
Definition at line 292 of file CubitAttrib.hpp.
CubitBoolean CubitAttrib::hasActuated [protected] |
Definition at line 282 of file CubitAttrib.hpp.
CubitBoolean CubitAttrib::hasUpdated [protected] |
Definition at line 285 of file CubitAttrib.hpp.
CubitBoolean CubitAttrib::hasWritten [protected] |
Definition at line 288 of file CubitAttrib.hpp.
CubitAttrib* CubitAttrib::nextAttrib [protected] |
Definition at line 298 of file CubitAttrib.hpp.