#include <MoundTool.h>
Inherits Tool.
Inherited by DigTool.
|
| | MoundTool (void) |
| | Constructor.
|
| |
| | ~MoundTool (void) |
| | Destructor.
|
| |
| virtual void | mouseDown (TTrackingMode m, CPoint viewPt, WbView *pView, CWorldBuilderDoc *pDoc) |
| |
| virtual void | mouseUp (TTrackingMode m, CPoint viewPt, WbView *pView, CWorldBuilderDoc *pDoc) |
| |
| virtual void | mouseMoved (TTrackingMode m, CPoint viewPt, WbView *pView, CWorldBuilderDoc *pDoc) |
| | True if the tool tracks the terrain, generally false if it modifies the terrain heights.
|
| |
| virtual WorldHeightMapEdit * | getHeightMap (void) |
| |
| virtual void | activate () |
| | Become the current tool.
|
| |
| | Tool (Int toolID, Int cursorID) |
| | Tool class.
|
| |
| virtual | ~Tool (void) |
| | Destructor.
|
| |
| Int | getToolID (void) |
| |
| virtual void | setCursor (void) |
| |
| virtual void | deactivate () |
| |
| virtual Bool | followsTerrain (void) |
| | Become not the current tool.
|
| |
|
| static Int | getMoundHeight (void) |
| |
| static void | setMoundHeight (Int height) |
| |
| static Int | getWidth (void) |
| |
| static Int | getFeather (void) |
| | Returns width.
|
| |
| static void | setWidth (Int width) |
| | Returns feather.
|
| |
| static void | setFeather (Int feather) |
| | Set the brush feather and notify the height options panel of the change.
|
| |
| static Real | calcRoundBlendFactor (CPoint center, Int x, Int y, Int brushWidth, Int featherWidth) |
| | Calculate the round blend factor.
|
| |
| static Real | calcSquareBlendFactor (CPoint center, Int x, Int y, Int brushWidth, Int featherWidth) |
| | Calculate the square blend factor.
|
| |
| static void | getCenterIndex (Coord3D *docLocP, Int brushWidth, CPoint *center, CWorldBuilderDoc *pDoc) |
| | Gets the cell index for the center of the brush.
|
| |
| static void | getAllIndexesIn (const Coord3D *bl, const Coord3D *br, const Coord3D *tl, const Coord3D *tr, Int widthOutside, CWorldBuilderDoc *pDoc, VecHeightMapIndexes *allIndices) |
| |
Definition at line 33 of file MoundTool.h.
◆ MoundTool()
| MoundTool::MoundTool |
( |
void | | ) |
|
◆ ~MoundTool()
| MoundTool::~MoundTool |
( |
void | | ) |
|
◆ activate()
| void MoundTool::activate |
( |
| ) |
|
|
virtual |
Become the current tool.
Shows the brush options panel.
Reimplemented from Tool.
Definition at line 94 of file MoundTool.cpp.
◆ getFeather()
| static Int MoundTool::getFeather |
( |
void | | ) |
|
|
inlinestatic |
◆ getHeightMap()
◆ getMoundHeight()
| static Int MoundTool::getMoundHeight |
( |
void | | ) |
|
|
inlinestatic |
◆ getWidth()
| static Int MoundTool::getWidth |
( |
void | | ) |
|
|
inlinestatic |
◆ mouseDown()
◆ mouseMoved()
True if the tool tracks the terrain, generally false if it modifies the terrain heights.
Reimplemented from Tool.
Definition at line 129 of file MoundTool.cpp.
◆ mouseUp()
◆ setFeather()
| void MoundTool::setFeather |
( |
Int | feather | ) |
|
|
static |
Set the brush feather and notify the height options panel of the change.
Definition at line 82 of file MoundTool.cpp.
◆ setMoundHeight()
| void MoundTool::setMoundHeight |
( |
Int | height | ) |
|
|
static |
◆ setWidth()
| void MoundTool::setWidth |
( |
Int | width | ) |
|
|
static |
Returns feather.
Set the brush width and notify the height options panel of the change.
Definition at line 71 of file MoundTool.cpp.
◆ m_brushFeather
| Int MoundTool::m_brushFeather |
|
staticprotected |
◆ m_brushWidth
| Int MoundTool::m_brushWidth |
|
staticprotected |
◆ m_htMapEditCopy
◆ m_htMapSaveCopy
◆ m_lastMoveTime
| Int MoundTool::m_lastMoveTime |
|
protected |
Last system clock time.
Definition at line 40 of file MoundTool.h.
◆ m_moundHeight
| Int MoundTool::m_moundHeight =0 |
|
staticprotected |
◆ m_raising
| Bool MoundTool::m_raising |
|
protected |
True if mounding, false if digging.
Definition at line 39 of file MoundTool.h.
The documentation for this class was generated from the following files: