Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
TileTool Class Reference

#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 WorldHeightMapEditgetHeightMap (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

WorldHeightMapEditm_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)
 

Detailed Description

Definition at line 33 of file TileTool.h.

Constructor & Destructor Documentation

◆ TileTool()

TileTool::TileTool ( void )

Constructor.

Definition at line 40 of file TileTool.cpp.

◆ ~TileTool()

TileTool::~TileTool ( void )

Destructor.

Definition at line 47 of file TileTool.cpp.

Member Function Documentation

◆ activate()

void TileTool::activate ( )
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.

◆ getHeightMap()

virtual WorldHeightMapEdit * TileTool::getHeightMap ( void )
inlinevirtual

Reimplemented from Tool.

Definition at line 48 of file TileTool.h.

◆ getWidth()

virtual Int TileTool::getWidth ( void )
inlinevirtual

Reimplemented in BigTileTool.

Definition at line 50 of file TileTool.h.

◆ mouseDown()

void TileTool::mouseDown ( TTrackingMode m,
CPoint viewPt,
WbView * pView,
CWorldBuilderDoc * pDoc )
virtual

Common mouse down code for left and right clicks.

Reimplemented from Tool.

Definition at line 63 of file TileTool.cpp.

◆ mouseMoved()

void TileTool::mouseMoved ( TTrackingMode m,
CPoint viewPt,
WbView * pView,
CWorldBuilderDoc * pDoc )
virtual

Common mouse moved code for left and right clicks.

Reimplemented from Tool.

Definition at line 99 of file TileTool.cpp.

◆ mouseUp()

void TileTool::mouseUp ( TTrackingMode m,
CPoint viewPt,
WbView * pView,
CWorldBuilderDoc * pDoc )
virtual

Common mouse up code for left and right clicks.

Reimplemented from Tool.

Definition at line 83 of file TileTool.cpp.

Member Data Documentation

◆ m_htMapEditCopy

WorldHeightMapEdit* TileTool::m_htMapEditCopy
protected

Definition at line 36 of file TileTool.h.

◆ m_prevViewPt

CPoint TileTool::m_prevViewPt
protected

Definition at line 38 of file TileTool.h.

◆ m_textureClassToDraw

Int TileTool::m_textureClassToDraw
protected

Definition at line 37 of file TileTool.h.


The documentation for this class was generated from the following files: