#include <RulerTool.h>
Inherits Tool.
|
| | RulerTool (void) |
| | Constructor.
|
| |
| | ~RulerTool (void) |
| | Destructor.
|
| |
| virtual void | activate () |
| | Clear the selection on activate or deactivate.
|
| |
| virtual void | deactivate () |
| |
| virtual void | setCursor (void) |
| |
| virtual void | mouseDown (TTrackingMode m, CPoint viewPt, WbView *pView, CWorldBuilderDoc *pDoc) |
| |
| virtual void | mouseMoved (TTrackingMode m, CPoint viewPt, WbView *pView, CWorldBuilderDoc *pDoc) |
| | Left button move code.
|
| |
| virtual Bool | followsTerrain (void) |
| | Become not the current tool.
|
| |
| | Tool (Int toolID, Int cursorID) |
| | Tool class.
|
| |
| virtual | ~Tool (void) |
| | Destructor.
|
| |
| Int | getToolID (void) |
| |
| virtual void | mouseUp (TTrackingMode m, CPoint viewPt, WbView *pView, CWorldBuilderDoc *pDoc) |
| |
| virtual WorldHeightMapEdit * | getHeightMap (void) |
| |
|
| static void | setLength (Real length) |
| |
| static Bool | switchType () |
| |
| static int | getType () |
| |
| static Real | getLength (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 29 of file RulerTool.h.
◆ RulerTool()
| RulerTool::RulerTool |
( |
void | | ) |
|
◆ ~RulerTool()
| RulerTool::~RulerTool |
( |
void | | ) |
|
◆ activate()
| void RulerTool::activate |
( |
| ) |
|
|
virtual |
Clear the selection on activate or deactivate.
Reimplemented from Tool.
Definition at line 52 of file RulerTool.cpp.
◆ deactivate()
| void RulerTool::deactivate |
( |
| ) |
|
|
virtual |
◆ followsTerrain()
| virtual Bool RulerTool::followsTerrain |
( |
void | | ) |
|
|
inlinevirtual |
Become not the current tool.
Reimplemented from Tool.
Definition at line 51 of file RulerTool.h.
◆ getLength()
| Real RulerTool::getLength |
( |
void | | ) |
|
|
static |
◆ getType()
| int RulerTool::getType |
( |
| ) |
|
|
static |
◆ mouseDown()
Execute the tool on mouse down
Reimplemented from Tool.
Definition at line 81 of file RulerTool.cpp.
◆ mouseMoved()
◆ setCursor()
| void RulerTool::setCursor |
( |
void | | ) |
|
|
virtual |
◆ setLength()
| void RulerTool::setLength |
( |
Real | length | ) |
|
|
static |
◆ switchType()
| Bool RulerTool::switchType |
( |
| ) |
|
|
static |
◆ m_downPt3d
◆ m_rulerType
| int RulerTool::m_rulerType |
|
protected |
◆ m_savedLength
| Real RulerTool::m_savedLength |
|
protected |
◆ m_staticThis
◆ m_View
The documentation for this class was generated from the following files: