#include <MoundTool.h>
Inherits MoundTool.
Public Member Functions | |
| DigTool (void) | |
| Constructor. | |
Public Member Functions inherited from MoundTool | |
| 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. | |
Public Member Functions inherited from 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. | |
Additional Inherited Members | |
Static Public Member Functions inherited from MoundTool | |
| 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 Public Member Functions inherited from Tool | |
| 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) |
Protected Attributes inherited from MoundTool | |
| WorldHeightMapEdit * | m_htMapEditCopy |
| WorldHeightMapEdit * | m_htMapSaveCopy |
| Bool | m_raising |
| True if mounding, false if digging. | |
| Int | m_lastMoveTime |
| Last system clock time. | |
Protected Attributes inherited from Tool | |
| Int | m_toolID |
| Int | m_cursorID |
| HCURSOR | m_cursor |
| Int | m_prevXIndex |
| Int | m_prevYIndex |
Static Protected Attributes inherited from MoundTool | |
| static Int | m_moundHeight =0 |
| static Int | m_brushWidth |
| static Int | m_brushFeather |
Definition at line 69 of file MoundTool.h.
| DigTool::DigTool | ( | void | ) |
Constructor.
Definition at line 242 of file MoundTool.cpp.