SCIRun
5.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Core
Command
Command.h
Go to the documentation of this file.
1
/*
2
For more information, please see: http://software.sci.utah.edu
3
4
The MIT License
5
6
Copyright (c) 2012 Scientific Computing and Imaging Institute,
7
University of Utah.
8
9
10
Permission is hereby granted, free of charge, to any person obtaining a
11
copy of this software and associated documentation files (the "Software"),
12
to deal in the Software without restriction, including without limitation
13
the rights to use, copy, modify, merge, publish, distribute, sublicense,
14
and/or sell copies of the Software, and to permit persons to whom the
15
Software is furnished to do so, subject to the following conditions:
16
17
The above copyright notice and this permission notice shall be included
18
in all copies or substantial portions of the Software.
19
20
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26
DEALINGS IN THE SOFTWARE.
27
*/
28
29
/// @todo Documentation Core/Command/Command.h
30
31
#ifndef CORE_COMMAND_COMMAND_H
32
#define CORE_COMMAND_COMMAND_H
33
34
#include <boost/shared_ptr.hpp>
35
#include <
Core/Command/share.h
>
36
37
namespace
SCIRun
38
{
39
namespace
Core
40
{
41
namespace
Commands
42
{
43
class
SCISHARE
Command
44
{
45
public
:
46
virtual
~
Command
();
47
virtual
bool
execute() = 0;
48
};
49
50
typedef
boost::shared_ptr<Command>
CommandHandle
;
51
52
class
SCISHARE
UndoableCommand
:
public
Command
53
{
54
public
:
55
virtual
~
UndoableCommand
();
56
virtual
void
undo() = 0;
57
};
58
59
class
SCISHARE
RedoableCommand
:
public
UndoableCommand
60
{
61
public
:
62
virtual
~
RedoableCommand
();
63
virtual
void
redo() = 0;
64
};
65
66
class
SCISHARE
GuiCommand
:
public
Command
67
{
68
};
69
70
class
SCISHARE
ConsoleCommand
:
public
Command
71
{
72
};
73
74
enum
GlobalCommands
75
{
76
ShowMainWindow
,
77
ShowSplashScreen
,
78
PrintHelp
,
79
PrintVersion
,
80
LoadNetworkFile
,
81
RunPythonScript
,
82
ExecuteCurrentNetwork
,
83
SetupQuitAfterExecute
,
84
QuitCommand
85
};
86
}
87
}
88
}
89
90
#endif
SCIRun::Core::Commands::ShowMainWindow
Definition:
Command.h:76
SCIRun::Core::Commands::CommandHandle
boost::shared_ptr< Command > CommandHandle
Definition:
Command.h:50
SCIRun::Core::Commands::SetupQuitAfterExecute
Definition:
Command.h:83
SCIRun::Core::Commands::GlobalCommands
GlobalCommands
Definition:
Command.h:74
SCIRun::Core::Commands::Command
Definition:
Command.h:43
SCISHARE
#define SCISHARE
Definition:
share.h:39
SCIRun::Core::Commands::ExecuteCurrentNetwork
Definition:
Command.h:82
SCIRun::Core::Commands::ConsoleCommand
Definition:
Command.h:70
SCIRun::Core::Commands::LoadNetworkFile
Definition:
Command.h:80
SCIRun::Core::Commands::GuiCommand
Definition:
Command.h:66
SCIRun::Core::Commands::QuitCommand
Definition:
Command.h:84
SCIRun::Core::Commands::RedoableCommand
Definition:
Command.h:59
SCIRun::Core::Commands::PrintHelp
Definition:
Command.h:78
SCIRun::Core::Commands::PrintVersion
Definition:
Command.h:79
SCIRun::Core::Commands::UndoableCommand
Definition:
Command.h:52
share.h
SCIRun::Core::Commands::ShowSplashScreen
Definition:
Command.h:77
SCIRun::Core::Commands::RunPythonScript
Definition:
Command.h:81
Generated on Wed Jul 9 2014 14:31:42 for SCIRun by
1.8.5