Cafu Engine
TerrainEditorDialogT Class Reference
Inheritance diagram for TerrainEditorDialogT:

Public Member Functions

 TerrainEditorDialogT (wxWindow *Parent, const GameConfigT &GameConfig, ToolTerrainEditorT *ParentTool)
 Constructor. More...
 
void UpdateResolution (unsigned long Resolution)
 Updates the dialogs resolution combobox. More...
 
int GetActiveTool () const
 Returns the the currently active tool. More...
 
int GetRadius () const
 Gets the current radius value. More...
 
int GetHardness () const
 Gets the current hardness value. More...
 
int GetToolEffect () const
 Gets the current tool effect value. More...
 
bool OnMMouseUp ()
 React on middle mouse clicks from terrain editor tool. More...
 
- Public Member Functions inherited from TerrainEditorDialogFB
 TerrainEditorDialogFB (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL)
 

Protected Member Functions

void OnToolClicked (wxCommandEvent &event)
 
void OnSpinCtrlRadius (wxSpinEvent &event)
 
void OnSliderScrollRadius (wxScrollEvent &event)
 
void OnSpinCtrlHardness (wxSpinEvent &event)
 
void OnSliderScrollHardness (wxScrollEvent &event)
 
void OnSpinCtrlToolEffect (wxSpinEvent &event)
 
void OnSliderScrollToolEffect (wxScrollEvent &event)
 
void OnChoiceResolution (wxCommandEvent &event)
 
void OnButtonImport (wxCommandEvent &event)
 
void OnButtonExport (wxCommandEvent &event)
 
void OnButtonGenerate (wxCommandEvent &event)
 

Friends

class ToolTerrainEditorT
 

Additional Inherited Members

- Protected Types inherited from TerrainEditorDialogFB
enum  {
  ID_TOOL_RAISE = 1000, ID_TOOL_LOWER, ID_TOOL_FLATTEN, ID_TOOL_FILL,
  ID_TOOL_ABLATE, ID_TOOL_BLUR, ID_TOOL_SHARPEN, ID_TOOL_NOISE,
  ID_TOOL_ROAD, ID_SPIN_CTRL_RADIUS, ID_SLIDER_RADIUS, ID_SPIN_CTRL_HARDNESS,
  ID_SLIDER_HARDNESS, ID_BUTTON_IMPORT, ID_BUTTON_EXPORT
}
 
- Protected Attributes inherited from TerrainEditorDialogFB
wxToolBar * m_ToolBar
 
wxSpinCtrl * m_SpinCtrlRadius
 
wxSlider * m_SliderRadius
 
wxSpinCtrl * m_SpinCtrlHardness
 
wxSlider * m_SliderHardness
 
wxSpinCtrl * m_SpinCtrlToolEffect
 
wxSlider * m_SliderToolEffect
 
wxChoice * m_ChoiceResolution
 
wxButton * m_ButtonImport
 
wxButton * m_ButtonExport
 
wxButton * m_ButtonGenerate
 

Constructor & Destructor Documentation

TerrainEditorDialogT::TerrainEditorDialogT ( wxWindow *  Parent,
const GameConfigT GameConfig,
ToolTerrainEditorT ParentTool 
)

Constructor.

Member Function Documentation

int TerrainEditorDialogT::GetActiveTool ( ) const

Returns the the currently active tool.

Returns
ID of the currently active tool.
int TerrainEditorDialogT::GetHardness ( ) const
inline

Gets the current hardness value.

int TerrainEditorDialogT::GetRadius ( ) const
inline

Gets the current radius value.

int TerrainEditorDialogT::GetToolEffect ( ) const
inline

Gets the current tool effect value.

bool TerrainEditorDialogT::OnMMouseUp ( )

React on middle mouse clicks from terrain editor tool.

Returns
Whether the middle mouse click has been handled by the dialog or not.
void TerrainEditorDialogT::UpdateResolution ( unsigned long  Resolution)

Updates the dialogs resolution combobox.

Parameters
ResolutionNew resolution value.

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