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

CommandMark Class Reference

#include <command.h>

Inheritance diagram for CommandMark:

Inheritance graph
Collaboration diagram for CommandMark:

Collaboration graph
List of all members.

Public Member Functions

 CommandMark (const std::string &, Color, float, Marker::Symbol)
void process (ExecutionEnvironment &)

Private Attributes

Color color
float size
Marker::Symbol symbol
std::string target

Constructor & Destructor Documentation

CommandMark::CommandMark const std::string ,
Color  ,
float  ,
Marker::Symbol 
 

Definition at line 608 of file command.cpp.

00609                                                :
00610     target(_target),
00611     color(_color),
00612     size(_size),
00613     symbol(_symbol)
00614 {
00615 }


Member Function Documentation

void CommandMark::process ExecutionEnvironment  )  [virtual]
 

Implements InstantaneousCommand.

Definition at line 617 of file command.cpp.

References color, Selection::empty(), size, symbol, and target.

00618 {
00619     Selection sel = env.getSimulation()->findObjectFromPath(target);
00620     if (sel.empty())
00621         return;
00622 
00623     if (env.getSimulation()->getUniverse() != NULL)
00624         env.getSimulation()->getUniverse()->markObject(sel, size, color, symbol, 1);
00625 }


Member Data Documentation

Color CommandMark::color [private]
 

Definition at line 477 of file command.h.

Referenced by process().

float CommandMark::size [private]
 

Definition at line 478 of file command.h.

Referenced by process().

Marker::Symbol CommandMark::symbol [private]
 

Definition at line 479 of file command.h.

Referenced by process().

std::string CommandMark::target [private]
 

Definition at line 476 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:13 2006 for Celestia by  doxygen 1.4.1