#include <BorderTool.h>
Inherits Tool.
|
| | BorderTool () |
| |
| | ~BorderTool () |
| |
| Int | getToolID (void) |
| |
| virtual void | setCursor (void) |
| |
| virtual void | activate () |
| | Become the current tool.
|
| |
| virtual void | deactivate () |
| |
| virtual Bool | followsTerrain (void) |
| | Become not the current tool.
|
| |
| 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 void | mouseDown (TTrackingMode m, CPoint viewPt, WbView *pView, CWorldBuilderDoc *pDoc) |
| |
| virtual void | mouseUp (TTrackingMode m, CPoint viewPt, WbView *pView, CWorldBuilderDoc *pDoc) |
| |
| | Tool (Int toolID, Int cursorID) |
| | Tool class.
|
| |
| virtual | ~Tool (void) |
| | Destructor.
|
| |
| Int | getToolID (void) |
| |
| virtual WorldHeightMapEdit * | getHeightMap (void) |
| |
|
| 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 22 of file BorderTool.h.
◆ ModificationType
| Enumerator |
|---|
| MOD_TYPE_INVALID | |
| MOD_TYPE_UP | |
| MOD_TYPE_FREE | |
| MOD_TYPE_RIGHT | |
Definition at line 25 of file BorderTool.h.
◆ BorderTool()
| BorderTool::BorderTool |
( |
| ) |
|
◆ ~BorderTool()
| BorderTool::~BorderTool |
( |
| ) |
|
◆ activate()
| void BorderTool::activate |
( |
| ) |
|
|
virtual |
Become the current tool.
Shows the "no options" options panel.
Reimplemented from Tool.
Definition at line 47 of file BorderTool.cpp.
◆ deactivate()
| void BorderTool::deactivate |
( |
| ) |
|
|
virtual |
◆ followsTerrain()
| virtual Bool BorderTool::followsTerrain |
( |
void | | ) |
|
|
inlinevirtual |
Become not the current tool.
Reimplemented from Tool.
Definition at line 42 of file BorderTool.h.
◆ getToolID()
| Int BorderTool::getToolID |
( |
void | | ) |
|
|
inline |
◆ mouseDown()
◆ mouseMoved()
True if the tool tracks the terrain, generally false if it modifies the terrain heights.
Reimplemented from Tool.
Definition at line 59 of file BorderTool.cpp.
◆ mouseUp()
◆ setCursor()
| void BorderTool::setCursor |
( |
void | | ) |
|
|
virtual |
◆ m_addingNewBorder
| Bool BorderTool::m_addingNewBorder |
|
protected |
◆ m_modificationType
◆ m_modifyBorderNdx
| Int BorderTool::m_modifyBorderNdx |
|
protected |
◆ m_mouseDown
| Bool BorderTool::m_mouseDown |
|
protected |
The documentation for this class was generated from the following files: