Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MESH_SELECT_CMD Class Reference

A COMMAND class for selecting faces, edges and vertices on a mesh. More...

#include <mesh_select_cmd.H>

Inheritance diagram for MESH_SELECT_CMD:

Inheritance graph
[legend]
Collaboration diagram for MESH_SELECT_CMD:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void Own () const
void Free () const
int Lock ()
void Unlock ()
int Unique () const
Diagnostic
virtual void print () const
Command Virtual Methods
virtual bool clear ()
 After doit() and undoit() were called, restore things to the way they were before (may be a no-op for most derived classes).
Constructors
 MESH_SELECT_CMD (Bvert *v)
 MESH_SELECT_CMD (Bedge *e)
 MESH_SELECT_CMD (Bface *f)
 MESH_SELECT_CMD (const Bvert_list &vl)
 MESH_SELECT_CMD (const Bedge_list &el)
 MESH_SELECT_CMD (const Bface_list &fl)
 MESH_SELECT_CMD (const Bvert_list &vl, const Bedge_list &el)
 MESH_SELECT_CMD (const Bvert_list &vl, const Bface_list &fl)
 MESH_SELECT_CMD (const Bedge_list &el, const Bface_list &fl)
 MESH_SELECT_CMD (const Bvert_list &vl, const Bedge_list &el, const Bface_list &fl)
Run-Time Type Id
 DEFINE_RTTI_METHODS3 ("MESH_SELECT_CMD", MESH_SELECT_CMD *, COMMAND, CCOMMAND *)
Command Virtual Methods
virtual bool doit ()
 Execute the command.
virtual bool undoit ()
 Undo the command.
Command Virtual Methods
virtual bool clear ()
 After doit() and undoit() were called, restore things to the way they were before (may be a no-op for most derived classes).
Diagnostic
virtual void print () const

Protected Attributes

bool _is_done
 true if doit() was executed most recently.
bool _is_undone
 true if undoit() was executed most recently.

Private Attributes

Bvert_list vlist
Bedge_list elist
Bface_list flist

Detailed Description

A COMMAND class for selecting faces, edges and vertices on a mesh.

Definition at line 24 of file mesh_select_cmd.H.


Constructor & Destructor Documentation

MESH_SELECT_CMD::MESH_SELECT_CMD Bvert v  ) 
 

Definition at line 17 of file mesh_select_cmd.C.

References vlist.

MESH_SELECT_CMD::MESH_SELECT_CMD Bedge e  ) 
 

Definition at line 24 of file mesh_select_cmd.C.

References elist.

MESH_SELECT_CMD::MESH_SELECT_CMD Bface f  ) 
 

Definition at line 31 of file mesh_select_cmd.C.

References flist.

MESH_SELECT_CMD::MESH_SELECT_CMD const Bvert_list vl  ) 
 

Definition at line 38 of file mesh_select_cmd.C.

MESH_SELECT_CMD::MESH_SELECT_CMD const Bedge_list el  ) 
 

Definition at line 44 of file mesh_select_cmd.C.

MESH_SELECT_CMD::MESH_SELECT_CMD const Bface_list fl  ) 
 

Definition at line 50 of file mesh_select_cmd.C.

MESH_SELECT_CMD::MESH_SELECT_CMD const Bvert_list vl,
const Bedge_list el
 

Definition at line 56 of file mesh_select_cmd.C.

MESH_SELECT_CMD::MESH_SELECT_CMD const Bvert_list vl,
const Bface_list fl
 

Definition at line 62 of file mesh_select_cmd.C.

MESH_SELECT_CMD::MESH_SELECT_CMD const Bedge_list el,
const Bface_list fl
 

Definition at line 68 of file mesh_select_cmd.C.

MESH_SELECT_CMD::MESH_SELECT_CMD const Bvert_list vl,
const Bedge_list el,
const Bface_list fl
 

Definition at line 74 of file mesh_select_cmd.C.


Member Function Documentation

bool COMMAND::clear  )  [virtual, inherited]
 

After doit() and undoit() were called, restore things to the way they were before (may be a no-op for most derived classes).

Reimplemented in UNDO_CMD, and MULTI_CMD.

Definition at line 24 of file command.C.

References COMMAND::_is_done, COMMAND::_is_undone, and COMMAND::is_done().

Referenced by MULTI_CMD::clear(), and UNDO_CMD::clear().

MESH_SELECT_CMD::DEFINE_RTTI_METHODS3 "MESH_SELECT_CMD"  ,
MESH_SELECT_CMD ,
COMMAND  ,
CCOMMAND
 

COMMAND::DEFINE_RTTI_METHODS_BASE "COMMAND"  ,
CCOMMAND
[inherited]
 

bool MESH_SELECT_CMD::doit  )  [virtual]
 

Execute the command.

Returns:
true on success. If the command is already done, this is a no-op and still returns true.

Reimplemented from COMMAND.

Definition at line 83 of file mesh_select_cmd.C.

References COMMAND::doit(), elist, ARRAY< T >::empty(), flist, MeshGlobal::select(), and vlist.

void REFcounter::Free  )  const [inline, inherited]
 

Definition at line 76 of file ref.H.

References REFcounter::_mutex, REFcounter::_u, and REF_ME.

bool COMMAND::is_clear  )  const [inline, inherited]
 

Neither doit() nor undoit() have been called.

Definition at line 91 of file command.H.

References COMMAND::_is_done, and COMMAND::_is_undone.

bool COMMAND::is_done  )  const [inline, inherited]
 

doit() was called most recently.

Definition at line 94 of file command.H.

References COMMAND::_is_done.

Referenced by COMMAND::clear().

bool COMMAND::is_undone  )  const [inline, inherited]
 

undoit() was called most recently, after doit().

Definition at line 97 of file command.H.

References COMMAND::_is_undone.

int REFcounter::Lock  )  [inline, inherited]
 

Definition at line 105 of file ref.H.

References REFcounter::_mutex, and REFcounter::_u.

Referenced by REFlock::REFlock().

void REFcounter::Own  )  const [inline, inherited]
 

Definition at line 59 of file ref.H.

References REFcounter::_mutex, REFcounter::_u, and REF_ME.

virtual void COMMAND::print  )  const [inline, virtual, inherited]
 

Reimplemented in UNDO_CMD, DISPLAY_CMD, and MULTI_CMD.

Definition at line 123 of file command.H.

bool MESH_SELECT_CMD::undoit  )  [virtual]
 

Undo the command.

Returns:
true on success. If the command is already undone, this is a no-op and still returns true.

Reimplemented from COMMAND.

Definition at line 100 of file mesh_select_cmd.C.

References MeshGlobal::deselect(), elist, ARRAY< T >::empty(), flist, COMMAND::undoit(), and vlist.

int REFcounter::Unique  )  const [inline, inherited]
 

Definition at line 115 of file ref.H.

References REFcounter::_mutex, and REFcounter::_u.

void REFcounter::Unlock  )  [inline, inherited]
 

Definition at line 111 of file ref.H.

References REFcounter::_mutex, and REFcounter::_u.

Referenced by REFlock::~REFlock().


Member Data Documentation

bool COMMAND::_is_done [protected, inherited]
 

true if doit() was executed most recently.

Definition at line 129 of file command.H.

Referenced by COMMAND::clear(), COMMAND::doit(), COMMAND::is_clear(), COMMAND::is_done(), and COMMAND::undoit().

bool COMMAND::_is_undone [protected, inherited]
 

true if undoit() was executed most recently.

Definition at line 130 of file command.H.

Referenced by COMMAND::clear(), COMMAND::doit(), COMMAND::is_clear(), COMMAND::is_undone(), and COMMAND::undoit().

Bedge_list MESH_SELECT_CMD::elist [private]
 

Definition at line 67 of file mesh_select_cmd.H.

Referenced by doit(), MESH_SELECT_CMD(), and undoit().

Bface_list MESH_SELECT_CMD::flist [private]
 

Definition at line 68 of file mesh_select_cmd.H.

Referenced by doit(), MESH_SELECT_CMD(), and undoit().

Bvert_list MESH_SELECT_CMD::vlist [private]
 

Definition at line 66 of file mesh_select_cmd.H.

Referenced by doit(), MESH_SELECT_CMD(), and undoit().


The documentation for this class was generated from the following files:
Generated on Mon Sep 18 11:46:38 2006 for jot by  doxygen 1.4.4