Select tile tool. More...
#include <EyedropperTool.h>
Inherits Tool.
Public Member Functions | |
| EyedropperTool (void) | |
| Constructor. | |
| ~EyedropperTool (void) | |
| Destructor. | |
| virtual void | mouseDown (TTrackingMode m, CPoint viewPt, WbView *pView, CWorldBuilderDoc *pDoc) |
| Perform tool on mouse down. | |
| 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. | |
| 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 | mouseUp (TTrackingMode m, CPoint viewPt, WbView *pView, CWorldBuilderDoc *pDoc) |
| virtual WorldHeightMapEdit * | getHeightMap (void) |
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) |
Protected Attributes inherited from Tool | |
| Int | m_toolID |
| Int | m_cursorID |
| HCURSOR | m_cursor |
| Int | m_prevXIndex |
| Int | m_prevYIndex |
Select tile tool.
EyedropperTool Does the select tile from drawing window tool operation.
Definition at line 35 of file EyedropperTool.h.
| EyedropperTool::EyedropperTool | ( | void | ) |
Constructor.
Definition at line 38 of file EyedropperTool.cpp.
| EyedropperTool::~EyedropperTool | ( | void | ) |
Destructor.
Definition at line 44 of file EyedropperTool.cpp.
|
virtual |
Become the current tool.
Shows the terrain materials options panel.
Reimplemented from Tool.
Definition at line 50 of file EyedropperTool.cpp.
|
virtual |
Perform tool on mouse down.
Perform the tool behavior on mouse down.
Finds the current texture class, and tells the terrain material panel to use it as fg.
Reimplemented from Tool.
Definition at line 59 of file EyedropperTool.cpp.