#include <RampTool.h>
Inherits Tool.
|
| | RampTool () |
| |
| virtual void | activate () |
| | Become the current tool.
|
| |
| virtual void | deactivate () |
| | Become not the current tool.
|
| |
| 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 void | setCursor (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) |
| |
| Int | m_toolID |
| |
| Int | m_cursorID |
| |
| HCURSOR | m_cursor |
| |
| Int | m_prevXIndex |
| |
| Int | m_prevYIndex |
| |
Definition at line 44 of file RampTool.h.
◆ RampTool()
◆ activate()
| void RampTool::activate |
( |
| ) |
|
|
virtual |
Become the current tool.
Shows the "no options" options panel.
Reimplemented from Tool.
Definition at line 56 of file RampTool.cpp.
◆ applyRamp()
◆ deactivate()
| void RampTool::deactivate |
( |
| ) |
|
|
virtual |
Become not the current tool.
Reimplemented from Tool.
Definition at line 64 of file RampTool.cpp.
◆ drawFeedback()
| void RampTool::drawFeedback |
( |
Coord3D * | endPoint | ) |
|
|
protected |
◆ followsTerrain()
| Bool RampTool::followsTerrain |
( |
void | | ) |
|
|
virtual |
Become not the current tool.
Reimplemented from Tool.
Definition at line 70 of file RampTool.cpp.
◆ mouseDown()
◆ mouseMoved()
True if the tool tracks the terrain, generally false if it modifies the terrain heights.
Reimplemented from Tool.
Definition at line 75 of file RampTool.cpp.
◆ mouseUp()
The documentation for this class was generated from the following files: