#include <TileTool.h>
Inherits Tool.
Inherited by BigTileTool.
Public Member Functions | |
| TileTool (void) | |
| Constructor. | |
| ~TileTool (void) | |
| Destructor. | |
| virtual void | mouseDown (TTrackingMode m, CPoint viewPt, WbView *pView, CWorldBuilderDoc *pDoc) |
| Common mouse down code for left and right clicks. | |
| virtual void | mouseUp (TTrackingMode m, CPoint viewPt, WbView *pView, CWorldBuilderDoc *pDoc) |
| Common mouse up code for left and right clicks. | |
| virtual void | mouseMoved (TTrackingMode m, CPoint viewPt, WbView *pView, CWorldBuilderDoc *pDoc) |
| Common mouse moved code for left and right clicks. | |
| virtual WorldHeightMapEdit * | getHeightMap (void) |
| virtual void | activate () |
| Become the current tool. | |
| virtual Int | getWidth (void) |
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. | |
Protected Attributes | |
| WorldHeightMapEdit * | m_htMapEditCopy |
| Int | m_textureClassToDraw |
| CPoint | m_prevViewPt |
Protected Attributes inherited from Tool | |
| Int | m_toolID |
| Int | m_cursorID |
| HCURSOR | m_cursor |
| Int | m_prevXIndex |
| Int | m_prevYIndex |
Additional Inherited Members | |
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) |
Definition at line 33 of file TileTool.h.
| TileTool::TileTool | ( | void | ) |
Constructor.
Definition at line 40 of file TileTool.cpp.
| TileTool::~TileTool | ( | void | ) |
Destructor.
Definition at line 47 of file TileTool.cpp.
|
virtual |
Become the current tool.
Shows the terrain materials options panel.
Reimplemented from Tool.
Reimplemented in BigTileTool.
Definition at line 53 of file TileTool.cpp.
|
inlinevirtual |
Reimplemented from Tool.
Definition at line 48 of file TileTool.h.
|
inlinevirtual |
Reimplemented in BigTileTool.
Definition at line 50 of file TileTool.h.
|
virtual |
Common mouse down code for left and right clicks.
Reimplemented from Tool.
Definition at line 63 of file TileTool.cpp.
|
virtual |
Common mouse moved code for left and right clicks.
Reimplemented from Tool.
Definition at line 99 of file TileTool.cpp.
|
virtual |
Common mouse up code for left and right clicks.
Reimplemented from Tool.
Definition at line 83 of file TileTool.cpp.
|
protected |
Definition at line 36 of file TileTool.h.
|
protected |
Definition at line 38 of file TileTool.h.
|
protected |
Definition at line 37 of file TileTool.h.