ClassDefinitions.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * Copyright (C) 2012-2016, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5  *
6  * ArmarX is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  * ArmarX is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  *
18  * @package MemoryX::gui-plugins::SceneEditor
19  * @date 2015
20  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
21  * GNU General Public License
22  */
23 
24 #pragma once
25 
26 #include <vector>
27 #include <memory>
28 
29 namespace controller
30 {
31  class AddOperation;
32  using AddOperationPtr = std::shared_ptr<AddOperation>;
33 
34  class AddToGroupOperation;
35  using AddToGroupOperationPtr = std::shared_ptr<AddToGroupOperation>;
36 
37  class ClassDefinitions;
38  using ClassDefinitionsPtr = std::shared_ptr<ClassDefinitions>;
39 
40  class Controller;
41  using ControllerPtr = std::shared_ptr<Controller>;
42  using ControllerWeakPtr = std::weak_ptr<Controller>;
43 
45  using CreateGroupOperationPtr = std::shared_ptr<CreateGroupOperation>;
46 
48  using DeleteGroupOperationPtr = std::shared_ptr<DeleteGroupOperation>;
49 
50  class DeselectOperation;
51  using DeselectOperationPtr = std::shared_ptr<DeselectOperation>;
52 
53  class Operation;
54  using OperationPtr = std::shared_ptr<Operation>;
55  using OperationPtrListPtr = std::shared_ptr<std::vector<OperationPtr>>;
56 
58  using RemoveFromGroupOperationPtr = std::shared_ptr<RemoveFromGroupOperation>;
59 
60  class RemoveOperation;
61  using RemoveOperationPtr = std::shared_ptr<RemoveOperation>;
62 
64  using RotateTranslateOperationPtr = std::shared_ptr<RotateTranslateOperation>;
65 
66  class SelectOperation;
67  using SelectOperationPtr = std::shared_ptr<SelectOperation>;
68 
69  class UndoAction;
70  using UndoActionPtr = std::shared_ptr<UndoAction>;
71 
72  class UndoRedoStack;
73  using UndoRedoStackPtr = std::shared_ptr<UndoRedoStack>;
74  using UndoRedoStackWeakPtr = std::weak_ptr<UndoRedoStack>;
75 }
76 
controller::DeselectOperationPtr
std::shared_ptr< DeselectOperation > DeselectOperationPtr
Definition: ClassDefinitions.h:51
controller::OperationPtrListPtr
std::shared_ptr< std::vector< OperationPtr > > OperationPtrListPtr
Definition: ClassDefinitions.h:55
controller::UndoActionPtr
std::shared_ptr< UndoAction > UndoActionPtr
Definition: ClassDefinitions.h:70
controller::SelectOperationPtr
std::shared_ptr< SelectOperation > SelectOperationPtr
Definition: ClassDefinitions.h:67
controller::ClassDefinitionsPtr
std::shared_ptr< ClassDefinitions > ClassDefinitionsPtr
Definition: ClassDefinitions.h:38
controller::RotateTranslateOperationPtr
std::shared_ptr< RotateTranslateOperation > RotateTranslateOperationPtr
Definition: ClassDefinitions.h:64
controller::DeleteGroupOperationPtr
std::shared_ptr< DeleteGroupOperation > DeleteGroupOperationPtr
Definition: ClassDefinitions.h:48
controller::ControllerWeakPtr
std::weak_ptr< Controller > ControllerWeakPtr
Definition: ClassDefinitions.h:42
controller::UndoRedoStackWeakPtr
std::weak_ptr< UndoRedoStack > UndoRedoStackWeakPtr
Definition: ClassDefinitions.h:74
controller
Definition: AddOperation.h:39
controller::ControllerPtr
std::shared_ptr< Controller > ControllerPtr
Definition: ClassDefinitions.h:41
controller::UndoRedoStack
A Stack to save a history of Actions.
Definition: UndoRedoStack.h:44
controller::RemoveFromGroupOperation
A operation to removes a object from a existing group.
Definition: RemoveFromGroupOperation.h:41
controller::Controller
A class to execute Operations, maintain the execution history and initialize Scene and MemoryXControl...
Definition: Controller.h:55
controller::RemoveFromGroupOperationPtr
std::shared_ptr< RemoveFromGroupOperation > RemoveFromGroupOperationPtr
Definition: ClassDefinitions.h:58
controller::UndoAction
A container class to store multiple Operations and undo/redo them.
Definition: UndoAction.h:42
controller::CreateGroupOperationPtr
std::shared_ptr< CreateGroupOperation > CreateGroupOperationPtr
Definition: ClassDefinitions.h:45
controller::DeselectOperation
A operation to deselect a object.
Definition: DeselectOperation.h:41
controller::SelectOperation
A operation to select a object.
Definition: SelectOperation.h:41
controller::CreateGroupOperation
A operation to create a new group.
Definition: CreateGroupOperation.h:41
controller::DeleteGroupOperation
A operation to delete a group.
Definition: DeleteGroupOperation.h:41
controller::UndoRedoStackPtr
std::shared_ptr< UndoRedoStack > UndoRedoStackPtr
Definition: ClassDefinitions.h:73
controller::AddToGroupOperation
A operation to add a object to a existing group.
Definition: AddToGroupOperation.h:41
controller::OperationPtr
std::shared_ptr< Operation > OperationPtr
Definition: ClassDefinitions.h:54
controller::RotateTranslateOperation
A operation to rotate and translate a object.
Definition: RotateTranslateOperation.h:46
controller::RemoveOperationPtr
std::shared_ptr< RemoveOperation > RemoveOperationPtr
Definition: ClassDefinitions.h:61
controller::AddOperationPtr
std::shared_ptr< AddOperation > AddOperationPtr
Definition: ClassDefinitions.h:32
controller::RemoveOperation
A Operation to remove a object in the scene and the WorkingMemory.
Definition: RemoveOperation.h:47
controller::Operation
An abstract class, which offers methods to run operations on the WorkingMemory and the Scene.
Definition: Operation.h:44
controller::AddToGroupOperationPtr
std::shared_ptr< AddToGroupOperation > AddToGroupOperationPtr
Definition: ClassDefinitions.h:35