#include <BuildListTool.h>
Inherits Tool.
|
| | BuildListTool (void) |
| | Constructor.
|
| |
| | ~BuildListTool (void) |
| | Destructor.
|
| |
| virtual void | mouseDown (TTrackingMode m, CPoint viewPt, WbView *pView, CWorldBuilderDoc *pDoc) |
| | Perform tool on mouse down.
|
| |
| virtual void | mouseUp (TTrackingMode m, CPoint viewPt, WbView *pView, CWorldBuilderDoc *pDoc) |
| |
| 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 | setCursor (void) |
| |
| virtual void | activate () |
| | Become the current tool.
|
| |
| virtual void | deactivate () |
| | Become not the current tool.
|
| |
| | Tool (Int toolID, Int cursorID) |
| | Tool class.
|
| |
| virtual | ~Tool (void) |
| | Destructor.
|
| |
| Int | getToolID (void) |
| |
| virtual Bool | followsTerrain (void) |
| | Become not the current tool.
|
| |
| virtual WorldHeightMapEdit * | getHeightMap (void) |
| |
|
| static void | addBuilding (void) |
| | Shows the object options panel.
|
| |
| static Bool | isActive (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) |
| |
BuildListTool Does the add item to build list tool operation.
Definition at line 38 of file BuildListTool.h.
◆ BuildListTool()
| BuildListTool::BuildListTool |
( |
void | | ) |
|
◆ ~BuildListTool()
| BuildListTool::~BuildListTool |
( |
void | | ) |
|
◆ activate()
| void BuildListTool::activate |
( |
| ) |
|
|
virtual |
Become the current tool.
Shows the object options panel.
Reimplemented from Tool.
Definition at line 103 of file BuildListTool.cpp.
◆ addBuilding()
| void BuildListTool::addBuilding |
( |
void | | ) |
|
|
static |
◆ deactivate()
| void BuildListTool::deactivate |
( |
| ) |
|
|
virtual |
Become not the current tool.
Clears the isActive flag.
Reimplemented from Tool.
Definition at line 123 of file BuildListTool.cpp.
◆ isActive()
| static Bool BuildListTool::isActive |
( |
void | | ) |
|
|
inlinestatic |
◆ mouseDown()
Perform tool on mouse down.
Execute the tool on mouse down - Place an object.
Reimplemented from Tool.
Definition at line 159 of file BuildListTool.cpp.
◆ mouseMoved()
True if the tool tracks the terrain, generally false if it modifies the terrain heights.
Reimplemented from Tool.
Definition at line 190 of file BuildListTool.cpp.
◆ mouseUp()
Execute the tool on mouse up - Place an object.
Reimplemented from Tool.
Definition at line 255 of file BuildListTool.cpp.
◆ setCursor()
| void BuildListTool::setCursor |
( |
void | | ) |
|
|
virtual |
◆ m_created
| Bool BuildListTool::m_created |
|
protected |
◆ m_curObject
◆ m_downPt2d
| CPoint BuildListTool::m_downPt2d |
|
protected |
◆ m_downPt3d
◆ m_isActive
◆ m_mouseUpMove
| Bool BuildListTool::m_mouseUpMove |
|
protected |
True if we are over the "move" hotspot.
Definition at line 51 of file BuildListTool.h.
◆ m_mouseUpRotate
| Bool BuildListTool::m_mouseUpRotate |
|
protected |
True if we are over the "rotate" hotspot.
Definition at line 49 of file BuildListTool.h.
◆ m_moveCursor
| HCURSOR BuildListTool::m_moveCursor |
|
protected |
◆ m_moving
| Bool BuildListTool::m_moving |
|
protected |
◆ m_pickBuildingDlg
◆ m_pointerCursor
| HCURSOR BuildListTool::m_pointerCursor |
|
protected |
◆ m_prevPt3d
◆ m_rotateCursor
| HCURSOR BuildListTool::m_rotateCursor |
|
protected |
◆ m_rotating
| Bool BuildListTool::m_rotating |
|
protected |
◆ m_static_pickBuildingDlg
The documentation for this class was generated from the following files: