Cafu Engine
ToolEditSurfaceT Class Reference
Inheritance diagram for ToolEditSurfaceT:

Public Member Functions

 ToolEditSurfaceT (MapDocumentT &MapDoc, ToolManagerT &ToolMan, wxWindow *ParentOptionsBar)
 
int GetWxEventID () const
 Returns the ID of the wxWidgets event (menu selection or toolbar button click) that is associated with activating this tool. More...
 
wxWindow * GetOptionsBar ()
 Returns the options bar window associated with this tool. NULL if no options bar has been assigned. More...
 
void OnActivate (ToolT *OldTool)
 
void OnDeactivate (ToolT *NewTool)
 
bool OnLMouseDown2D (ViewWindow2DT &ViewWindow, wxMouseEvent &ME)
 Also used for LMB "double-click" events (use ME.ButtonDClick() for distinction). More...
 
bool OnKeyDown2D (ViewWindow2DT &ViewWindow, wxKeyEvent &KE)
 
bool OnKeyUp2D (ViewWindow2DT &ViewWindow, wxKeyEvent &KE)
 
bool OnKeyDown3D (ViewWindow3DT &ViewWindow, wxKeyEvent &KE)
 
bool OnKeyUp3D (ViewWindow3DT &ViewWindow, wxKeyEvent &KE)
 
bool OnLMouseDown3D (ViewWindow3DT &ViewWindow, wxMouseEvent &ME)
 Also used for LMB "double-click" events (use ME.ButtonDClick() for distinction). More...
 
bool OnRMouseClick3D (ViewWindow3DT &ViewWindow, wxMouseEvent &ME)
 For the RMB, only a "click" event is available, because the RMB is also used for mouse-looking and the context menu. More...
 
bool OnMouseMove3D (ViewWindow3DT &ViewWindow, wxMouseEvent &ME)
 
bool UpdateStatusBar (ChildFrameT *ChildFrame) const
 
virtual const
cf::TypeSys::TypeInfoT
GetType () const
 
- Public Member Functions inherited from ToolT
 ToolT (MapDocumentT &MapDoc, ToolManagerT &ToolMan)
 The constructor. More...
 
virtual ~ToolT ()
 The destructor. More...
 
void Activate (ToolT *OldTool)
 
void Deactivate (ToolT *NewTool)
 
bool IsActiveTool () const
 
virtual bool CanDeactivate ()
 
virtual bool IsHiddenByTool (const MapElementT *Elem) const
 The caller calls this method in order to learn whether it should exempt the given map element Elem from normal 2D and 3D rendering. This is usually true when Elem is currently being modified by the tool and thus rendered (in a special way) by the tool itself. Examples include brushes being morphed and terrains being edited. More...
 
virtual void RenderTool2D (Renderer2DT &Renderer) const
 
virtual void RenderTool3D (Renderer3DT &Renderer) const
 
virtual bool OnChar2D (ViewWindow2DT &ViewWindow, wxKeyEvent &KE)
 
virtual bool OnLMouseUp2D (ViewWindow2DT &ViewWindow, wxMouseEvent &ME)
 
virtual bool OnMMouseDown2D (ViewWindow2DT &ViewWindow, wxMouseEvent &ME)
 Also used for MMB "double-click" events (use ME.ButtonDClick() for distinction). More...
 
virtual bool OnMMouseUp2D (ViewWindow2DT &ViewWindow, wxMouseEvent &ME)
 
virtual bool OnRMouseClick2D (ViewWindow2DT &ViewWindow, wxMouseEvent &ME)
 For the RMB, only a "click" event is available, because the RMB is also used for mouse-looking and the context menu. More...
 
virtual bool OnMouseWheel2D (ViewWindow2DT &ViewWindow, wxMouseEvent &ME)
 
virtual bool OnMouseMove2D (ViewWindow2DT &ViewWindow, wxMouseEvent &ME)
 
virtual int OnContextMenu2D (ViewWindow2DT &ViewWindow, wxContextMenuEvent &CE, wxMenu &Menu)
 
virtual bool OnChar3D (ViewWindow3DT &ViewWindow, wxKeyEvent &KE)
 
virtual bool OnLMouseUp3D (ViewWindow3DT &ViewWindow, wxMouseEvent &ME)
 
virtual bool OnMMouseDown3D (ViewWindow3DT &ViewWindow, wxMouseEvent &ME)
 Also used for MMB "double-click" events (use ME.ButtonDClick() for distinction). More...
 
virtual bool OnMMouseUp3D (ViewWindow3DT &ViewWindow, wxMouseEvent &ME)
 
virtual bool OnMouseWheel3D (ViewWindow3DT &ViewWindow, wxMouseEvent &ME)
 
virtual int OnContextMenu3D (ViewWindow3DT &ViewWindow, wxContextMenuEvent &CE, wxMenu &Menu)
 
virtual bool OnIdle3D (ViewWindow3DT &ViewWindow, const wxPoint &Point)
 

Static Public Member Functions

static void * CreateInstance (const cf::TypeSys::CreateParamsT &Params)
 
- Static Public Member Functions inherited from ToolT
static void * CreateInstance (const cf::TypeSys::CreateParamsT &Params)
 

Static Public Attributes

static const cf::TypeSys::TypeInfoT TypeInfo
 
- Static Public Attributes inherited from ToolT
static const cf::TypeSys::TypeInfoT TypeInfo
 

Additional Inherited Members

- Protected Attributes inherited from ToolT
MapDocumentTm_MapDoc
 The document that is modified by this tool. More...
 
ToolManagerTm_ToolMan
 The tool manager that manages this tool. More...
 

Member Function Documentation

wxWindow * ToolEditSurfaceT::GetOptionsBar ( )
virtual

Returns the options bar window associated with this tool. NULL if no options bar has been assigned.

Reimplemented from ToolT.

int ToolEditSurfaceT::GetWxEventID ( ) const
inlinevirtual

Returns the ID of the wxWidgets event (menu selection or toolbar button click) that is associated with activating this tool.

Implements ToolT.

bool ToolEditSurfaceT::OnLMouseDown2D ( ViewWindow2DT ViewWindow,
wxMouseEvent &  ME 
)
virtual

Also used for LMB "double-click" events (use ME.ButtonDClick() for distinction).

Reimplemented from ToolT.

bool ToolEditSurfaceT::OnLMouseDown3D ( ViewWindow3DT ViewWindow,
wxMouseEvent &  ME 
)
virtual

Also used for LMB "double-click" events (use ME.ButtonDClick() for distinction).

Reimplemented from ToolT.

bool ToolEditSurfaceT::OnRMouseClick3D ( ViewWindow3DT ViewWindow,
wxMouseEvent &  ME 
)
virtual

For the RMB, only a "click" event is available, because the RMB is also used for mouse-looking and the context menu.

Reimplemented from ToolT.


The documentation for this class was generated from the following files: