Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

CommandUnmark Class Reference

#include <command.h>

Inheritance diagram for CommandUnmark:

Inheritance graph
Collaboration diagram for CommandUnmark:

Collaboration graph
List of all members.

Public Member Functions

 CommandUnmark (const std::string &)
void process (ExecutionEnvironment &)

Private Attributes

std::string target

Constructor & Destructor Documentation

CommandUnmark::CommandUnmark const std::string  ) 
 

Definition at line 632 of file command.cpp.

00632                                                   :
00633     target(_target)
00634 {
00635 }


Member Function Documentation

void CommandUnmark::process ExecutionEnvironment  )  [virtual]
 

Implements InstantaneousCommand.

Definition at line 637 of file command.cpp.

References Selection::empty(), and target.

00638 {
00639     Selection sel = env.getSimulation()->findObjectFromPath(target);
00640     if (sel.empty())
00641         return;
00642 
00643     if (env.getSimulation()->getUniverse() != NULL)
00644         env.getSimulation()->getUniverse()->unmarkObject(sel, 1);
00645 }


Member Data Documentation

std::string CommandUnmark::target [private]
 

Definition at line 490 of file command.h.

Referenced by process().


The documentation for this class was generated from the following files:
Generated on Sat Jan 14 22:33:15 2006 for Celestia by  doxygen 1.4.1