7 #ifndef CAFU_TOOL_SELECTION_HPP_INCLUDED
8 #define CAFU_TOOL_SELECTION_HPP_INCLUDED
11 #include "TrafoBox.hpp"
12 #include "Templates/Array.hpp"
44 int GetWxEventID()
const {
return ChildFrameT::ID_MENU_TOOLS_TOOL_SELECTION; }
46 void OnActivate(
ToolT* OldTool);
47 void OnDeactivate(
ToolT* NewTool);
52 bool OnLMouseUp2D (
ViewWindow2DT& ViewWindow, wxMouseEvent& ME);
53 bool OnMouseMove2D (
ViewWindow2DT& ViewWindow, wxMouseEvent& ME);
54 int OnContextMenu2D(
ViewWindow2DT& ViewWindow, wxContextMenuEvent& CE, wxMenu& Menu);
58 bool OnLMouseUp3D (
ViewWindow3DT& ViewWindow, wxMouseEvent& ME);
59 bool OnMouseMove3D (
ViewWindow3DT& ViewWindow, wxMouseEvent& ME);
60 int OnContextMenu3D(
ViewWindow3DT& ViewWindow, wxContextMenuEvent& CE, wxMenu& Menu);
64 bool UpdateStatusBar(
ChildFrameT* ChildFrame)
const;
110 ID_CREATE_MODEL=wxID_HIGHEST+1000,
117 void UpdateTrafoBox();
118 void CreateModel(
const Vector3fT& WorldPos);
119 void CreatePlant(
const Vector3fT& WorldPos);
120 void NudgeSelection(
const AxesInfoT& AxesInfo,
const wxKeyEvent& KE);
122 void StepCurHitNr(
int Step);
123 void ToggleCurHitNr();
127 ToolStateT m_ToolState;
130 wxPoint m_LDownPosWin;
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
This class implements a spatial box that can be used to define a transformation (translation, rotation, scale or shear).
Definition: TrafoBox.hpp:29
EntityModDetailE
Definition: ObserverPattern.hpp:47
This class represents a child frame.
Definition: ChildFrame.hpp:55
Definition: ObserverPattern.hpp:64
Definition: ToolSelection.hpp:21
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
This is the common base class for the VarT classes.
Definition: Variables.hpp:113
Definition: ChildFrameViewWin2D.hpp:24
Definition: ChildFrameViewWin3D.hpp:21
This class represents a general command for implementing modifications to the applications document...
Definition: CommandPattern.hpp:30
Definition: TypeSys.hpp:52
This class keeps type information (about an entity class that occurs in the game).
Definition: TypeSys.hpp:79