19#if !defined(AFX_WBVIEW_H__875234A1_8815_11D5_8CE0_00010297BBAC__INCLUDED_)
20#define AFX_WBVIEW_H__875234A1_8815_11D5_8CE0_00010297BBAC__INCLUDED_
168 virtual void OnDraw(CDC* pDC);
175 virtual void AssertValid()
const;
176 virtual void Dump(CDumpContext& dc)
const;
248 afx_msg
int OnCreate(LPCREATESTRUCT lpcs);
252 DECLARE_MESSAGE_MAP()
afx_msg void OnUpdatePickWaypoints(CCmdUI *pCmdUI)
afx_msg void OnUpdateEditPaste(CCmdUI *pCmdUI)
afx_msg void OnViewSnaptogrid()
afx_msg void OnMouseMove(UINT nFlags, CPoint point)
afx_msg void OnRButtonDown(UINT nFlags, CPoint point)
afx_msg BOOL OnSetCursor(CWnd *pWnd, UINT nHitTest, UINT message)
afx_msg int OnCreate(LPCREATESTRUCT lpcs)
afx_msg void OnViewShowObjects()
Bool isPolygonTriggerVisible(void)
Bool m_showObjects
Flag whether object icons are drawn in the 2d and 3d view.
afx_msg void OnEditPlayerlist()
void doRulerFeedback(int doRulerFeedback)
afx_msg void OnLockHorizontal()
virtual Int getPickPixels(void)
afx_msg void OnEditGloballightoptions()
CWorldBuilderDoc * WbDoc()
afx_msg void OnUpdateViewShowpolygontriggers(CCmdUI *pCmdUI)
virtual void scrollInView(Real x, Real y, Bool end)
Scrolls the window by this amount.
afx_msg void OnPickManMade()
afx_msg void OnUpdatePickDebris(CCmdUI *pCmdUI)
WorldHeightMapEdit * getTrackingHeightMap()
afx_msg void OnEditCopy()
afx_msg void OnEditSelectdup()
void setShowGarrisoned(Bool show)
void mouseDown(TTrackingMode m, CPoint viewPt)
afx_msg void OnUpdateObjectpropertiesReflectsinmirror(CCmdUI *pCmdUI)
virtual void rotateCamera(Real delta)
afx_msg void OnUpdateViewShowObjects(CCmdUI *pCmdUI)
virtual void invalObjectInView(MapObject *pObj)
Invalidates an object. Pass NULL to inval all objects.
afx_msg void OnUpdatePickSounds(CCmdUI *pCmdUI)
afx_msg void OnEditWorldinfo()
afx_msg void OnViewShowpolygontriggers()
afx_msg void OnUpdatePickRoads(CCmdUI *pCmdUI)
virtual MapObject * picked3dObjectInView(CPoint viewPt)
afx_msg void OnValidationFixTeams()
Bool getShowGarrisoned(void)
virtual void updateHeightMapInView(WorldHeightMap *htMap, Bool partial, const IRegion2D &partialRange)
Update the height map in the 3d window.
afx_msg void OnMButtonUp(UINT nFlags, CPoint point)
Coord3D m_lightDirection[3]
virtual void setDefaultCamera()
afx_msg void OnViewShowwaypoints()
afx_msg void OnLButtonDown(UINT nFlags, CPoint point)
afx_msg void OnPickDebris()
virtual void invalidateCellInView(int xIndex, int yIndex)
Invalidates the area of one height map cell in the 2d view.
afx_msg void OnUpdatePickShrubbery(CCmdUI *pCmdUI)
afx_msg void OnMButtonDown(UINT nFlags, CPoint point)
void setShowModels(Bool show)
virtual TPickedStatus picked(MapObject *pObj, Coord3D docPt)
afx_msg void OnUpdateEditCut(CCmdUI *pCmdUI)
afx_msg void OnUpdatePickVehicles(CCmdUI *pCmdUI)
Bool m_doLockAngle
True if we are currently locking.
afx_msg void OnPickAnything()
afx_msg void OnEditPaste()
Bool isWaypointVisible(void)
Bool m_lockAngle
Reflects the ui button.
void mouseMove(TTrackingMode m, CPoint viewPt)
virtual Bool viewToDocCoords(CPoint curPt, Coord3D *newPt, Bool constrained=true)
afx_msg void OnEditSelectsimilar()
afx_msg void OnShowTerrain()
afx_msg void OnUpdateEditCopy(CCmdUI *pCmdUI)
virtual Bool isDoingPitch(void)
void doLightFeedback(Bool doFeedback, Coord3D direction, Int lightIndex)
virtual void adjustDocSize()
the doc has changed size; readjust view as necessary.
Bool isNamesVisible(void)
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
afx_msg void OnUpdatePickAnything(CCmdUI *pCmdUI)
afx_msg void OnPickRoads()
afx_msg void OnEditTeamlist()
Coord3D m_mouseDownDocPoint
afx_msg void OnUpdateLockVertical(CCmdUI *pCmdUI)
void mouseUp(TTrackingMode m, CPoint viewPt)
afx_msg void OnUpdatePickManMade(CCmdUI *pCmdUI)
Bool m_showModels
Flag whether models are drawn in the 2d and 3d view.
virtual void setCenterInView(Real x, Real y)
Set the center for display.
afx_msg void OnObjectpropertiesReflectsinmirror()
Bool m_showNames
Flag whether names are drawn in the 2d and 3d view.
afx_msg void OnUpdateViewSnaptogrid(CCmdUI *pCmdUI)
afx_msg void OnEditDelete()
EditorSortingType m_pickConstraint
virtual BuildListInfo * pickedBuildObjectInView(CPoint viewPt)
virtual Bool viewToDocCoordZ(CPoint curPt, Coord3D *newPt, Real Z)
afx_msg void OnPickNatural()
TTrackingMode m_trackingMode
afx_msg void OnPickVehicles()
afx_msg void OnPickStructures()
afx_msg void OnUpdateShowNames(CCmdUI *pCmdUI)
void doRectFeedback(Bool doFeedback, RECT &rect)
afx_msg void OnUpdateLockHorizontal(CCmdUI *pCmdUI)
Bool m_showPolygonTriggers
afx_msg void OnPickInfantry()
afx_msg void OnUpdateShowTerrain(CCmdUI *pCmdUI)
afx_msg void OnPickWaypoints()
virtual EditorSortingType GetPickConstraint(void)
afx_msg void OnPickSounds()
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags)
Bool getShowTerrain(void)
Bool m_showTerrain
Flag whether terrain is rendered or not. (Useful for debugging)
afx_msg void OnRButtonUp(UINT nFlags, CPoint point)
afx_msg void OnLButtonUp(UINT nFlags, CPoint point)
afx_msg void OnShowNames()
afx_msg void OnUpdateViewShowwaypoints(CCmdUI *pCmdUI)
afx_msg void OnUpdatePickInfantry(CCmdUI *pCmdUI)
afx_msg void OnEditReplace()
virtual void OnDraw(CDC *pDC)
afx_msg void OnEditSelectinvalidteam()
virtual Bool docToViewCoords(Coord3D curPt, CPoint *newPt)
virtual void pitchCamera(Real delta)
afx_msg void OnPickShrubbery()
afx_msg void OnUpdatePickStructures(CCmdUI *pCmdUI)
void rulerFeedbackInfo(Coord3D &point1, Coord3D &point2, Real dist)
afx_msg void OnLockVertical()
void snapPoint(Coord3D *thePt)
afx_msg void OnUpdatePickNatural(CCmdUI *pCmdUI)