#include <WorldBuilder.h>
Inherits CWinApp.
Public Member Functions | |
| CWorldBuilderApp () | |
| ~CWorldBuilderApp () | |
| virtual BOOL | InitInstance () |
| virtual int | ExitInstance () |
| afx_msg void | OnAppAbout () |
| afx_msg void | OnResetWindows () |
| afx_msg void | OnFileOpen () |
| afx_msg void | OnTexturesizingMapclifftextures () |
| afx_msg void | OnUpdateTexturesizingMapclifftextures (CCmdUI *pCmdUI) |
| CDocTemplate * | Get3dTemplate () |
| void | selectBrushTool (void) |
| Set the brush tool as the active tool. | |
| void | selectPointerTool (void) |
| Set the pointer tool as the active tool. | |
| void | selectHandToolTemp (void) |
| Set the hand tool as the cur tool (but not active tool) | |
| void | setActiveTool (Tool *newTool) |
| Set the tool that will be active. | |
| void | setCurrentDirectory (AsciiString dir) |
| Sets the current directry for file opens. | |
| Tool * | getCurTool () |
| void | updateCurTool (Bool forceHand) |
| Check to see if any keyboard overrides are changing the current tool. | |
| void | setPolyTool (void) |
| Switch to the poly tool if we aren't already. | |
| Bool | isHandScroll (void) |
| Return true if the hand scroll tool is active. | |
| void | lockCurTool () |
| void | unlockCurTool () |
| Bool | isCurToolLocked () |
| MapObject * | getMapObjPasteList (void) |
| Note - read only data - make yourself a copy. | |
| void | setMapObjPasteList (MapObject *list) |
| Note - the app owns this, and will delete it on close. | |
| virtual BOOL | OnCmdMsg (UINT nID, int nCode, void *pExtra, AFX_CMDHANDLERINFO *pHandlerInfo) |
| Handles command messages. | |
Protected Types | |
| enum | { NUM_VIEW_TOOLS =25 } |
Protected Member Functions | |
| void | deletePasteObjList (void) |
Protected Attributes | |
| Tool * | m_tools [NUM_VIEW_TOOLS] |
| array of tool pointers. | |
| Tool * | m_curTool |
| Currently active tool. | |
| Tool * | m_selTool |
| Normal tool. If we hit alt, curTool turns to eyedropper. | |
| BrushTool | m_brushTool |
| Height brush tool. | |
| TileTool | m_tileTool |
| Single texture tile tool. | |
| BigTileTool | m_bigTileTool |
| Wide texture tile tool. | |
| FeatherTool | m_featherTool |
| Feather the height values tool. | |
| AutoEdgeOutTool | m_autoEdgeOutTool |
| Auto blend texture edges out tool. | |
| FloodFillTool | m_floodFillTool |
| Flood fill tool. | |
| MoundTool | m_moundTool |
| Add height to height values tool. | |
| DigTool | m_digTool |
| Remove height from height values tool. | |
| EyedropperTool | m_eyedropperTool |
| Eyedropper tool. | |
| ObjectTool | m_objectTool |
| Add and orient object tool. | |
| PointerTool | m_pointerTool |
| Select and move/rotate tool. | |
| BlendEdgeTool | m_blendEdgeTool |
| Blend a single edge tool. | |
| GroveTool | m_groveTool |
| Plant a grove of trees tool. | |
| HandScrollTool | m_handScrollTool |
| Scroll tool. | |
| RoadTool | m_roadTool |
| Road tool. | |
| MeshMoldTool | m_meshMoldTool |
| Mesh shaping mold tool. | |
| WaypointTool | m_waypointTool |
| Waypoint tool. | |
| PolygonTool | m_polygonTool |
| Polygon tool. | |
| WaterTool | m_waterTool |
| Water tool. | |
| BuildListTool | m_buildListTool |
| Build List tool. | |
| FenceTool | m_fenceTool |
| Fence tool. | |
| RampTool | m_rampTool |
| Ramp tool. | |
| ScorchTool | m_scorchTool |
| Scorch tool. | |
| BorderTool | m_borderTool |
| Border tool. | |
| RulerTool | m_rulerTool |
| Ruler tool. | |
| Int | m_lockCurTool |
| AsciiString | m_currentDirectory |
| Current directory for open file. | |
| CDocTemplate * | m_3dtemplate |
| MapObject * | m_pasteMapObjList |
| List of copied/cut map objects. | |
Definition at line 76 of file WorldBuilder.h.
|
protected |
| Enumerator | |
|---|---|
| NUM_VIEW_TOOLS | |
Definition at line 102 of file WorldBuilder.h.
| CWorldBuilderApp::CWorldBuilderApp | ( | ) |
Definition at line 203 of file WorldBuilder.cpp.
| CWorldBuilderApp::~CWorldBuilderApp | ( | ) |
Definition at line 256 of file WorldBuilder.cpp.
|
inlineprotected |
Definition at line 142 of file WorldBuilder.h.
|
virtual |
Definition at line 647 of file WorldBuilder.cpp.
|
inline |
Definition at line 151 of file WorldBuilder.h.
|
inline |
Definition at line 168 of file WorldBuilder.h.
|
inline |
Note - read only data - make yourself a copy.
Definition at line 184 of file WorldBuilder.h.
|
virtual |
Definition at line 273 of file WorldBuilder.cpp.
|
inline |
Definition at line 181 of file WorldBuilder.h.
|
inline |
Return true if the hand scroll tool is active.
Definition at line 177 of file WorldBuilder.h.
|
inline |
Definition at line 179 of file WorldBuilder.h.
| void CWorldBuilderApp::OnAppAbout | ( | ) |
Definition at line 638 of file WorldBuilder.cpp.
|
virtual |
Handles command messages.
Definition at line 496 of file WorldBuilder.cpp.
| void CWorldBuilderApp::OnFileOpen | ( | ) |
Definition at line 691 of file WorldBuilder.cpp.
| void CWorldBuilderApp::OnResetWindows | ( | ) |
Definition at line 683 of file WorldBuilder.cpp.
| void CWorldBuilderApp::OnTexturesizingMapclifftextures | ( | ) |
Definition at line 719 of file WorldBuilder.cpp.
| void CWorldBuilderApp::OnUpdateTexturesizingMapclifftextures | ( | CCmdUI * | pCmdUI | ) |
Definition at line 726 of file WorldBuilder.cpp.
|
inline |
Set the brush tool as the active tool.
Definition at line 154 of file WorldBuilder.h.
|
inline |
Set the hand tool as the cur tool (but not active tool)
Definition at line 160 of file WorldBuilder.h.
| void CWorldBuilderApp::selectPointerTool | ( | void | ) |
Set the pointer tool as the active tool.
Sets the active tool to the pointer, and clears the selection.
Definition at line 533 of file WorldBuilder.cpp.
| void CWorldBuilderApp::setActiveTool | ( | Tool * | pNewTool | ) |
Set the tool that will be active.
Sets the active tool, and activates it after deactivating the current tool.
Definition at line 545 of file WorldBuilder.cpp.
|
inline |
Sets the current directry for file opens.
Definition at line 166 of file WorldBuilder.h.
|
inline |
Note - the app owns this, and will delete it on close.
Definition at line 187 of file WorldBuilder.h.
|
inline |
Switch to the poly tool if we aren't already.
Definition at line 174 of file WorldBuilder.h.
|
inline |
Definition at line 180 of file WorldBuilder.h.
| void CWorldBuilderApp::updateCurTool | ( | Bool | forceHand | ) |
Check to see if any keyboard overrides are changing the current tool.
Checks to see if any key modifiers (ctrl or alt) are pressed. If so, selectes the appropriate tool, else uses the normal tool.
Definition at line 567 of file WorldBuilder.cpp.
|
protected |
Definition at line 137 of file WorldBuilder.h.
|
protected |
Auto blend texture edges out tool.
Definition at line 111 of file WorldBuilder.h.
|
protected |
Wide texture tile tool.
Definition at line 109 of file WorldBuilder.h.
|
protected |
Blend a single edge tool.
Definition at line 118 of file WorldBuilder.h.
|
protected |
Border tool.
Definition at line 130 of file WorldBuilder.h.
|
protected |
Height brush tool.
Definition at line 107 of file WorldBuilder.h.
|
protected |
Build List tool.
Definition at line 126 of file WorldBuilder.h.
|
protected |
Current directory for open file.
Definition at line 135 of file WorldBuilder.h.
|
protected |
Currently active tool.
Definition at line 105 of file WorldBuilder.h.
|
protected |
Remove height from height values tool.
Definition at line 114 of file WorldBuilder.h.
|
protected |
Eyedropper tool.
Definition at line 115 of file WorldBuilder.h.
|
protected |
Feather the height values tool.
Definition at line 110 of file WorldBuilder.h.
|
protected |
Fence tool.
Definition at line 127 of file WorldBuilder.h.
|
protected |
Flood fill tool.
Definition at line 112 of file WorldBuilder.h.
|
protected |
Plant a grove of trees tool.
Definition at line 119 of file WorldBuilder.h.
|
protected |
Scroll tool.
Definition at line 120 of file WorldBuilder.h.
|
protected |
Definition at line 133 of file WorldBuilder.h.
|
protected |
Mesh shaping mold tool.
Definition at line 122 of file WorldBuilder.h.
|
protected |
Add height to height values tool.
Definition at line 113 of file WorldBuilder.h.
|
protected |
Add and orient object tool.
Definition at line 116 of file WorldBuilder.h.
|
protected |
List of copied/cut map objects.
Definition at line 139 of file WorldBuilder.h.
|
protected |
Select and move/rotate tool.
Definition at line 117 of file WorldBuilder.h.
|
protected |
Polygon tool.
Definition at line 124 of file WorldBuilder.h.
|
protected |
Ramp tool.
Definition at line 128 of file WorldBuilder.h.
|
protected |
Road tool.
Definition at line 121 of file WorldBuilder.h.
|
protected |
Ruler tool.
Definition at line 131 of file WorldBuilder.h.
|
protected |
Scorch tool.
Definition at line 129 of file WorldBuilder.h.
|
protected |
Normal tool. If we hit alt, curTool turns to eyedropper.
Definition at line 106 of file WorldBuilder.h.
|
protected |
Single texture tile tool.
Definition at line 108 of file WorldBuilder.h.
|
protected |
array of tool pointers.
Definition at line 104 of file WorldBuilder.h.
|
protected |
Water tool.
Definition at line 125 of file WorldBuilder.h.
|
protected |
Waypoint tool.
Definition at line 123 of file WorldBuilder.h.