|
cgma
|
#include <GSaveOpen.hpp>
Public Member Functions | |
| GSaveOpen () | |
| ~GSaveOpen () | |
Static Public Member Functions | |
| static int | gso_sets_ids () |
| static int | get_id_inc (RefEntity *entity) |
| static void | set_error () |
| static void | add_error_id (int id) |
Static Public Attributes | |
| static int | performingUndo = 0 |
Static Protected Attributes | |
| static int | gsoSetsIds = 0 |
| static int | gsoIncBodyId = 0 |
| static int | gsoIncRefVolumeId = 0 |
| static int | gsoIncRefFaceId = 0 |
| static int | gsoIncRefEdgeId = 0 |
| static int | gsoIncRefVertexId = 0 |
| static int | gsoErrorCount = 0 |
| static DLIList< int > | gsoErrorIdList |
Definition at line 18 of file GSaveOpen.hpp.
Definition at line 21 of file GSaveOpen.cpp.
{
RefEntityFactory *ref = RefEntityFactory::instance();
if( performingUndo == 1 )
{
gsoSetsIds = 0;
gsoIncBodyId = 0;
gsoIncRefVolumeId = 0;
gsoIncRefFaceId = 0;
gsoIncRefEdgeId = 0;
gsoIncRefVertexId = 0;
}
else
{
gsoSetsIds = 1;
gsoIncBodyId = ref->current_body_id();
gsoIncRefVolumeId = ref->current_volume_id();
gsoIncRefFaceId = ref->current_face_id();
gsoIncRefEdgeId = ref->current_edge_id();
gsoIncRefVertexId = ref->current_vertex_id();
}
gsoErrorCount = 0;
}
Definition at line 46 of file GSaveOpen.cpp.
{
// Reset globals
gsoSetsIds = 0;
gsoIncBodyId = 0;
gsoIncRefVolumeId = 0;
gsoIncRefFaceId = 0;
gsoIncRefEdgeId = 0;
gsoIncRefVertexId = 0;
gsoErrorCount = 0;
gsoErrorIdList.clean_out();
}
| static void GSaveOpen::add_error_id | ( | int | id | ) | [static] |
| int GSaveOpen::get_id_inc | ( | RefEntity * | entity | ) | [static] |
Definition at line 60 of file GSaveOpen.cpp.
{
const std::type_info* my_type = &entity->entity_type_info();
if( *my_type == typeid(Body) )
return gsoIncBodyId;
else if( *my_type == typeid(RefVolume) )
return gsoIncRefVolumeId;
else if( *my_type == typeid(RefFace) )
return gsoIncRefFaceId;
else if( *my_type == typeid(RefEdge) )
return gsoIncRefEdgeId;
else if( *my_type == typeid(RefVertex) )
return gsoIncRefVertexId;
return -1; // This function doesn't understand the type
}
| int GSaveOpen::gso_sets_ids | ( | ) | [inline, static] |
Definition at line 43 of file GSaveOpen.hpp.
{return gsoSetsIds;}
| static void GSaveOpen::set_error | ( | ) | [static] |
int GSaveOpen::gsoErrorCount = 0 [static, protected] |
Definition at line 38 of file GSaveOpen.hpp.
DLIList< int > GSaveOpen::gsoErrorIdList [static, protected] |
Definition at line 39 of file GSaveOpen.hpp.
int GSaveOpen::gsoIncBodyId = 0 [static, protected] |
Definition at line 32 of file GSaveOpen.hpp.
int GSaveOpen::gsoIncRefEdgeId = 0 [static, protected] |
Definition at line 35 of file GSaveOpen.hpp.
int GSaveOpen::gsoIncRefFaceId = 0 [static, protected] |
Definition at line 34 of file GSaveOpen.hpp.
int GSaveOpen::gsoIncRefVertexId = 0 [static, protected] |
Definition at line 36 of file GSaveOpen.hpp.
int GSaveOpen::gsoIncRefVolumeId = 0 [static, protected] |
Definition at line 33 of file GSaveOpen.hpp.
int GSaveOpen::gsoSetsIds = 0 [static, protected] |
Definition at line 31 of file GSaveOpen.hpp.
int GSaveOpen::performingUndo = 0 [static] |
Definition at line 28 of file GSaveOpen.hpp.