7 #ifndef CAFU_TOOL_MORPH_HPP_INCLUDED
8 #define CAFU_TOOL_MORPH_HPP_INCLUDED
47 int GetWxEventID()
const {
return ChildFrameT::ID_MENU_TOOLS_TOOL_EDITVERTICES; }
49 void OnActivate(
ToolT* OldTool);
50 void OnDeactivate(
ToolT* NewTool);
55 bool OnMouseMove2D (
ViewWindow2DT& ViewWindow, wxMouseEvent& ME);
56 bool OnLMouseUp2D (
ViewWindow2DT& ViewWindow, wxMouseEvent& ME);
60 bool OnMouseMove3D (
ViewWindow3DT& ViewWindow, wxMouseEvent& ME);
61 bool OnLMouseUp3D (
ViewWindow3DT& ViewWindow, wxMouseEvent& ME);
82 enum DragStateT { DragNothing, DragBoxSelection, DragMorphHandles };
103 int MorphPrims_Find(
const MapElementT* Elem)
const;
105 void MoveSelectedHandles(
const Vector3fT& Delta);
106 void NudgeSelectedHandles(
const AxesInfoT& AxesInfo,
const wxKeyEvent& KE);
107 void FinishDragMorphHandles();
121 DragStateT m_DragState;
124 bool m_IsRecursiveSelfNotify;
This class provides auxiliary means for rendering a 3D view.
Definition: Renderer3D.hpp:30
This class implements the rendering into a 2D view.
Definition: Renderer2D.hpp:22
MapElemModDetailE
Definition: ObserverPattern.hpp:37
This class represents a CaWE "map" document.
Definition: MapDocument.hpp:45
Definition: ObserverPattern.hpp:64
This is a helper class for the ToolMorphT ("edit vertices") tool.
Definition: MorphPrim.hpp:85
This class represents a (superclass of a) 2D or 3D map view window.
Definition: ChildFrameViewWin.hpp:21
Definition: ObserverPattern.hpp:158
This class describes how the three world-space axes are mapped to the two screen- or window-space axe...
Definition: AxesInfo.hpp:15
Definition: ChildFrameViewWin2D.hpp:24
Definition: ChildFrameViewWin3D.hpp:21
This file provides the classes for the Observer pattern as described in the book by the GoF...
Definition: TypeSys.hpp:52
This class keeps type information (about an entity class that occurs in the game).
Definition: TypeSys.hpp:79
Definition: MorphPrim.hpp:23
This is the base class for all elements ("objects") that can exist in a map.
Definition: MapElement.hpp:57
MorphHandleT()
The default constructor.
Definition: ToolMorph.hpp:25
Definition: ToolMorph.hpp:22