cgma
CubitUndo Class Reference

#include <CubitUndo.hpp>

List of all members.

Public Member Functions

 CubitUndo ()
virtual ~CubitUndo ()

Static Public Member Functions

static void start_undo_group ()
static void end_undo_group ()
static void set_undo_enabled (bool value)
static bool get_undo_enabled ()
static void clear_undo_groups ()
static int execute_undo ()
static void set_undo_by_restoring_state ()
static void set_undo_by_command (CubitString command)
static void save_state_with_cubit_file (DLIList< Body * > &bodies_to_save, DLIList< RefEntity * > *free_ents_to_save=NULL)
static void save_state_with_cubit_file (DLIList< RefVolume * > &volumes_to_save)
static void save_state_with_cubit_file (DLIList< RefFace * > &faces_to_save)
static void save_state_with_cubit_file (RefFace *face_to_save)
static void save_state_with_cubit_file (RefVolume *volume_to_save)
static void save_state_with_cubit_file (DLIList< MRefVolume * > &volumes_to_save)
static void save_state_with_cubit_file (DLIList< RefEdge * > &edges_to_save)
static void save_state_with_cubit_file (DLIList< RefVertex * > &vertices_to_save, bool save_if_free=false)
static void save_state ()
static int number_undo_groups ()
static void note_result_bodies (DLIList< Body * > &bodies_to_delete)
static void note_result_body (Body *body_to_delete)
static void note_result_entities (DLIList< RefEntity * > &entities_to_delete)
static void note_result_entities (DLIList< MRefVolume * > &vols_to_delete)
static void note_result_entity (RefEntity *entity_to_delete)
static void note_result_boundary_conditions (RefEntity *owner_entity)
static void retain_mesh_on_result_bodies (DLIList< Body * > &bodies)
static void retain_mesh_on_result_curves (DLIList< RefEdge * > &curves)
static void retain_mesh_on_result_vertices (DLIList< RefVertex * > &vertices)
static void remove_last_undo ()
static void remove_last_undo_group ()
static void create_dummy_undo_object ()
static bool inside_undo_group ()
static void save_mesh_size_data (MRefEntity *entity)
static void save_mesh_scheme_data (MRefEntity *entity)
static void save_smooth_scheme_data (MRefEntity *entity)
static void save_all_mesh_data (MRefEntity *entity)
static void save_merge_data (DLIList< RefEntity * > &ents, bool merging=true)
static void save_mesh_state_before_smoothing (MRefEntity *entity)
static void save_mesh_state_before_smoothing (DLIList< MRefEntity * > &ents)
static void save_mesh_state_before_smoothing (DLIList< MeshEntity * > &ents)

Protected Member Functions

virtual void p_start_undo_group ()=0
virtual void p_end_undo_group ()=0
virtual void p_set_undo_enabled (bool value)=0
virtual bool p_get_undo_enabled ()=0
virtual void p_clear_undo_groups ()=0
virtual int p_execute_undo ()=0
virtual void p_set_undo_by_restoring_state ()=0
virtual void p_set_undo_by_command (CubitString command)=0
virtual void p_save_state_with_cubit_file (DLIList< Body * > &bodies_to_save, DLIList< RefEntity * > *free_ref_ents=NULL)=0
virtual void p_save_state_with_cubit_file (DLIList< RefVolume * > &volumes_to_save)=0
virtual void p_save_state_with_cubit_file (DLIList< RefFace * > &faces_to_save)=0
virtual void p_save_state_with_cubit_file (RefFace *face_to_save)=0
virtual void p_save_state_with_cubit_file (RefVolume *volume_to_save)=0
virtual void p_save_state_with_cubit_file (DLIList< MRefVolume * > &volumes_to_save)=0
virtual void p_save_state_with_cubit_file (DLIList< RefEdge * > &edges_to_save)=0
virtual void p_save_state_with_cubit_file (DLIList< RefVertex * > &vertices_to_save, bool save_only_if_free=false)=0
virtual void p_save_state ()=0
virtual int p_number_undo_groups ()=0
virtual void p_note_result_bodies (DLIList< Body * > &bodies_to_delete)=0
virtual void p_note_result_body (Body *body_to_delete)=0
virtual void p_note_result_entities (DLIList< RefEntity * > &entities_to_delete)=0
virtual void p_note_result_entities (DLIList< MRefVolume * > &vols_to_delete)=0
virtual void p_note_result_entity (RefEntity *entity_to_delete)=0
virtual void p_note_result_boundary_conditions (RefEntity *owner_entity)=0
virtual void p_remove_last_undo_group ()=0
virtual void p_remove_last_undo ()=0
virtual void p_create_dummy_undo_object ()=0
virtual bool p_inside_undo_group ()=0
virtual void p_retain_mesh_on_result_bodies (DLIList< Body * > &bodies)=0
virtual void p_retain_mesh_on_result_curves (DLIList< RefEdge * > &curves)=0
virtual void p_retain_mesh_on_result_vertices (DLIList< RefVertex * > &vertices)=0
virtual void p_save_mesh_size_data (MRefEntity *entity)=0
virtual void p_save_mesh_scheme_data (MRefEntity *entity)=0
virtual void p_save_smooth_scheme_data (MRefEntity *entity)=0
virtual void p_save_all_mesh_data (MRefEntity *entity)=0
virtual void p_save_merge_data (DLIList< RefEntity * > &ents, bool merging=true)=0
virtual void p_save_mesh_state_before_smoothing (DLIList< MRefEntity * > &ents_to_smooth)=0
virtual void p_save_mesh_state_before_smoothing (DLIList< MeshEntity * > &ents_to_smooth)=0

Static Private Attributes

static CubitUndomInstance = 0

Detailed Description

Definition at line 26 of file CubitUndo.hpp.


Constructor & Destructor Documentation

Definition at line 12 of file CubitUndo.cpp.

{
  if(mInstance)
  {
    assert(0);
    // if you want a new instance in place of a previous one,
    // delete the previous one first
  }
  mInstance = this;
}
CubitUndo::~CubitUndo ( ) [virtual]

Definition at line 23 of file CubitUndo.cpp.

{
  mInstance = 0;
}

Member Function Documentation

void CubitUndo::clear_undo_groups ( ) [static]

Definition at line 52 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_clear_undo_groups();
}

Definition at line 206 of file CubitUndo.cpp.

void CubitUndo::end_undo_group ( ) [static]

Definition at line 34 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_end_undo_group(); 
}
int CubitUndo::execute_undo ( ) [static]

Definition at line 58 of file CubitUndo.cpp.

{
  if(!mInstance ) 
    return 0;

  return mInstance->p_execute_undo();
}
bool CubitUndo::get_undo_enabled ( ) [static]

Definition at line 46 of file CubitUndo.cpp.

{
  if(!mInstance ) return false;
  return mInstance->p_get_undo_enabled();
}
bool CubitUndo::inside_undo_group ( ) [static]

Definition at line 212 of file CubitUndo.cpp.

{
  if(!mInstance ) return false;
  return mInstance->p_inside_undo_group();
}
void CubitUndo::note_result_bodies ( DLIList< Body * > &  bodies_to_delete) [static]

Definition at line 140 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_note_result_bodies( bodies_to_delete );
}
void CubitUndo::note_result_body ( Body body_to_delete) [static]

Definition at line 134 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_note_result_body( body_to_delete );
}
void CubitUndo::note_result_boundary_conditions ( RefEntity owner_entity) [static]

Definition at line 164 of file CubitUndo.cpp.

{
    if(!mInstance ) return;
  mInstance->p_note_result_boundary_conditions( owner_entity );
}
void CubitUndo::note_result_entities ( DLIList< RefEntity * > &  entities_to_delete) [static]

Definition at line 182 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_note_result_entities( entities_to_delete );
}
void CubitUndo::note_result_entities ( DLIList< MRefVolume * > &  vols_to_delete) [static]

Definition at line 176 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_note_result_entities( vols_to_delete );
}
void CubitUndo::note_result_entity ( RefEntity entity_to_delete) [static]

Definition at line 170 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_note_result_entity( entity_to_delete );
}

Definition at line 200 of file CubitUndo.cpp.

{
  if(!mInstance ) return 0;
  return mInstance->p_number_undo_groups();
}
virtual void CubitUndo::p_clear_undo_groups ( ) [protected, pure virtual]
virtual void CubitUndo::p_create_dummy_undo_object ( ) [protected, pure virtual]
virtual void CubitUndo::p_end_undo_group ( ) [protected, pure virtual]
virtual int CubitUndo::p_execute_undo ( ) [protected, pure virtual]
virtual bool CubitUndo::p_get_undo_enabled ( ) [protected, pure virtual]
virtual bool CubitUndo::p_inside_undo_group ( ) [protected, pure virtual]
virtual void CubitUndo::p_note_result_bodies ( DLIList< Body * > &  bodies_to_delete) [protected, pure virtual]
virtual void CubitUndo::p_note_result_body ( Body body_to_delete) [protected, pure virtual]
virtual void CubitUndo::p_note_result_boundary_conditions ( RefEntity owner_entity) [protected, pure virtual]
virtual void CubitUndo::p_note_result_entities ( DLIList< RefEntity * > &  entities_to_delete) [protected, pure virtual]
virtual void CubitUndo::p_note_result_entities ( DLIList< MRefVolume * > &  vols_to_delete) [protected, pure virtual]
virtual void CubitUndo::p_note_result_entity ( RefEntity entity_to_delete) [protected, pure virtual]
virtual int CubitUndo::p_number_undo_groups ( ) [protected, pure virtual]
virtual void CubitUndo::p_remove_last_undo ( ) [protected, pure virtual]
virtual void CubitUndo::p_remove_last_undo_group ( ) [protected, pure virtual]
virtual void CubitUndo::p_retain_mesh_on_result_bodies ( DLIList< Body * > &  bodies) [protected, pure virtual]
virtual void CubitUndo::p_retain_mesh_on_result_curves ( DLIList< RefEdge * > &  curves) [protected, pure virtual]
virtual void CubitUndo::p_retain_mesh_on_result_vertices ( DLIList< RefVertex * > &  vertices) [protected, pure virtual]
virtual void CubitUndo::p_save_all_mesh_data ( MRefEntity *  entity) [protected, pure virtual]
virtual void CubitUndo::p_save_merge_data ( DLIList< RefEntity * > &  ents,
bool  merging = true 
) [protected, pure virtual]
virtual void CubitUndo::p_save_mesh_scheme_data ( MRefEntity *  entity) [protected, pure virtual]
virtual void CubitUndo::p_save_mesh_size_data ( MRefEntity *  entity) [protected, pure virtual]
virtual void CubitUndo::p_save_mesh_state_before_smoothing ( DLIList< MRefEntity * > &  ents_to_smooth) [protected, pure virtual]
virtual void CubitUndo::p_save_mesh_state_before_smoothing ( DLIList< MeshEntity * > &  ents_to_smooth) [protected, pure virtual]
virtual void CubitUndo::p_save_smooth_scheme_data ( MRefEntity *  entity) [protected, pure virtual]
virtual void CubitUndo::p_save_state ( ) [protected, pure virtual]
virtual void CubitUndo::p_save_state_with_cubit_file ( DLIList< Body * > &  bodies_to_save,
DLIList< RefEntity * > *  free_ref_ents = NULL 
) [protected, pure virtual]
virtual void CubitUndo::p_save_state_with_cubit_file ( DLIList< RefVolume * > &  volumes_to_save) [protected, pure virtual]
virtual void CubitUndo::p_save_state_with_cubit_file ( DLIList< RefFace * > &  faces_to_save) [protected, pure virtual]
virtual void CubitUndo::p_save_state_with_cubit_file ( RefFace face_to_save) [protected, pure virtual]
virtual void CubitUndo::p_save_state_with_cubit_file ( RefVolume volume_to_save) [protected, pure virtual]
virtual void CubitUndo::p_save_state_with_cubit_file ( DLIList< MRefVolume * > &  volumes_to_save) [protected, pure virtual]
virtual void CubitUndo::p_save_state_with_cubit_file ( DLIList< RefEdge * > &  edges_to_save) [protected, pure virtual]
virtual void CubitUndo::p_save_state_with_cubit_file ( DLIList< RefVertex * > &  vertices_to_save,
bool  save_only_if_free = false 
) [protected, pure virtual]
virtual void CubitUndo::p_set_undo_by_command ( CubitString  command) [protected, pure virtual]
virtual void CubitUndo::p_set_undo_by_restoring_state ( ) [protected, pure virtual]
virtual void CubitUndo::p_set_undo_enabled ( bool  value) [protected, pure virtual]
virtual void CubitUndo::p_start_undo_group ( ) [protected, pure virtual]
void CubitUndo::remove_last_undo ( ) [static]

Definition at line 66 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_remove_last_undo();
}

Definition at line 73 of file CubitUndo.cpp.

void CubitUndo::retain_mesh_on_result_bodies ( DLIList< Body * > &  bodies) [static]

Definition at line 146 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_retain_mesh_on_result_bodies( bodies );
}
void CubitUndo::retain_mesh_on_result_curves ( DLIList< RefEdge * > &  curves) [static]

Definition at line 152 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_retain_mesh_on_result_curves( curves );
}
void CubitUndo::retain_mesh_on_result_vertices ( DLIList< RefVertex * > &  vertices) [static]

Definition at line 158 of file CubitUndo.cpp.

void CubitUndo::save_all_mesh_data ( MRefEntity *  entity) [static]

Definition at line 236 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_save_all_mesh_data( entity );
}
void CubitUndo::save_merge_data ( DLIList< RefEntity * > &  ents,
bool  merging = true 
) [static]

Definition at line 242 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_save_merge_data( ents, merging );
}
void CubitUndo::save_mesh_scheme_data ( MRefEntity *  entity) [static]

Definition at line 224 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_save_mesh_scheme_data( entity );
}
void CubitUndo::save_mesh_size_data ( MRefEntity *  entity) [static]

Definition at line 218 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_save_mesh_size_data( entity );
}
void CubitUndo::save_mesh_state_before_smoothing ( MRefEntity *  entity) [static]

Definition at line 248 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  DLIList<MRefEntity*> ents_to_smooth(1);
  ents_to_smooth.append( entity );
  mInstance->p_save_mesh_state_before_smoothing( ents_to_smooth ); 
}
void CubitUndo::save_mesh_state_before_smoothing ( DLIList< MRefEntity * > &  ents) [static]

Definition at line 256 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_save_mesh_state_before_smoothing( ents_to_smooth ); 
}
void CubitUndo::save_mesh_state_before_smoothing ( DLIList< MeshEntity * > &  ents) [static]

Definition at line 262 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_save_mesh_state_before_smoothing( ents_to_smooth ); 
}
void CubitUndo::save_smooth_scheme_data ( MRefEntity *  entity) [static]

Definition at line 230 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_save_smooth_scheme_data( entity );
}
void CubitUndo::save_state ( ) [static]

Definition at line 79 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_save_state();
}
void CubitUndo::save_state_with_cubit_file ( DLIList< Body * > &  bodies_to_save,
DLIList< RefEntity * > *  free_ents_to_save = NULL 
) [static]

Definition at line 127 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_save_state_with_cubit_file( bodies_to_save, free_ents_to_save );
}
void CubitUndo::save_state_with_cubit_file ( DLIList< RefVolume * > &  volumes_to_save) [static]

Definition at line 85 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_save_state_with_cubit_file( volumes_to_save );
}
void CubitUndo::save_state_with_cubit_file ( DLIList< RefFace * > &  faces_to_save) [static]

Definition at line 108 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_save_state_with_cubit_file( faces_to_save );
}
void CubitUndo::save_state_with_cubit_file ( RefFace face_to_save) [static]

Definition at line 91 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_save_state_with_cubit_file( face_to_save );
}
void CubitUndo::save_state_with_cubit_file ( RefVolume volume_to_save) [static]

Definition at line 97 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_save_state_with_cubit_file( volume_to_save );
}
void CubitUndo::save_state_with_cubit_file ( DLIList< MRefVolume * > &  volumes_to_save) [static]

Definition at line 103 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_save_state_with_cubit_file( volumes_to_save );
}
void CubitUndo::save_state_with_cubit_file ( DLIList< RefEdge * > &  edges_to_save) [static]

Definition at line 114 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_save_state_with_cubit_file( edges_to_save );
}
void CubitUndo::save_state_with_cubit_file ( DLIList< RefVertex * > &  vertices_to_save,
bool  save_if_free = false 
) [static]

Definition at line 120 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_save_state_with_cubit_file( verts_to_save, save_only_if_free );
}
void CubitUndo::set_undo_by_command ( CubitString  command) [static]

Definition at line 194 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_set_undo_by_command( undo_command_string );
}

Definition at line 188 of file CubitUndo.cpp.

void CubitUndo::set_undo_enabled ( bool  value) [static]

Definition at line 40 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_set_undo_enabled( value );
}
void CubitUndo::start_undo_group ( ) [static]

Definition at line 28 of file CubitUndo.cpp.

{
  if(!mInstance ) return;
  mInstance->p_start_undo_group(); 
}

Member Data Documentation

CubitUndo * CubitUndo::mInstance = 0 [static, private]

Definition at line 30 of file CubitUndo.hpp.


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