24#if !defined(AFX_WBVIEW3D_H__832D8241_87F6_11D5_8CE0_00010297BBAC__INCLUDED_)
25#define AFX_WBVIEW3D_H__832D8241_87F6_11D5_8CE0_00010297BBAC__INCLUDED_
83 virtual void OnDraw(CDC* pDC);
90 virtual void AssertValid()
const;
91 virtual void Dump(CDumpContext& dc)
const;
97 afx_msg
int OnCreate(LPCREATESTRUCT lpCreateStruct);
99 afx_msg
void OnSize(
UINT nType,
int cx,
int cy);
158 DECLARE_MESSAGE_MAP()
171 Bool m_showObjToolTrackingObj;
174 Real m_mouseWheelOffset;
177 CPoint m_actualWinSize;
182 Real m_actualHeightAboveGround;
193 Bool m_showWireframe;
195 Bool m_needToLoadRoads;
199 Real m_buildRedMultiplier;
205 Bool m_showEntireMap;
208 Bool m_showLayersList;
209 Bool m_showMapBoundaries;
210 Bool m_showAmbientSounds;
211 Bool m_showSoundCircles;
212 Bool m_showBoundingBoxes;
213 Bool m_showSightRanges;
214 Bool m_showWeaponRanges;
215 Bool m_highlightTestArt;
216 Bool m_showLetterbox;
221 Int m_partialMapSize;
Color scale(const Color &a, const Color &b)
const Int MAX_GLOBAL_LIGHTS
BitFlags< MODELCONDITION_COUNT > ModelConditionFlags
afx_msg void OnUpdateShowLetterbox(CCmdUI *pCmdUI)
afx_msg void OnViewBoundingBoxes()
afx_msg void OnUpdateViewShowwireframe(CCmdUI *pCmdUI)
Bool getShowMapBoundaryFeedback(void) const
Vector3 getCameraTarget(void)
void setViewLayersList(Bool showLayersList)
AsciiString getBestModelName(const ThingTemplate *tt, const ModelConditionFlags &c)
afx_msg void OnViewShowmacrotexture()
Real getHeightAboveGround(void)
afx_msg void OnUpdateViewPartialmapsize192x192(CCmdUI *pCmdUI)
void invalBuildListItemInView(BuildListInfo *pBuild)
Invalidates an build list object.
void setLighting(const GlobalData::TerrainLighting *tl, Int whichLighting, Int whichLight=0)
afx_msg void OnViewShowMapBoundaries()
void resetRenderObjects()
Removes all render objects. Call when swithing to a new map.
virtual BuildListInfo * pickedBuildObjectInView(CPoint viewPt)
void setShowBoundingBoxes(Bool toggle)
virtual Bool docToViewCoords(Coord3D curPt, CPoint *newPt)
afx_msg void OnUpdateViewGarrisoned(CCmdUI *pCmdUI)
afx_msg void OnUpdateViewShowclouds(CCmdUI *pCmdUI)
afx_msg void OnViewShowtopdownview()
void setObjTracking(MapObject *pMapObj, Coord3D pos, Real angle, Bool show)
afx_msg void OnUpdateViewShowmacrotexture(CCmdUI *pCmdUI)
afx_msg void OnViewShowentire3dmap()
Vector3 getCameraSource(void)
Real getCameraAngle(void)
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus)
afx_msg void OnViewPartialmapsize160x160()
afx_msg void OnImpassableAreaOptions()
virtual void rotateCamera(Real delta)
afx_msg void OnViewShowModels()
afx_msg void OnUpdateViewPartialmapsize128x128(CCmdUI *pCmdUI)
Bool getShowAmbientSoundsFeedback(void) const
DrawObject * getDrawObject(void)
void drawCircle(HDC hdc, const Coord3D ¢erPoint, Real radius, COLORREF color)
Draw a (not very good) circle into the hdc.
void setShowSightRanges(Bool toggle)
afx_msg void OnSize(UINT nType, int cx, int cy)
afx_msg void OnShowLetterbox()
afx_msg void OnUpdateViewPartialmapsize160x160(CCmdUI *pCmdUI)
afx_msg void OnEditSelectmacrotexture()
afx_msg void OnUpdateHighlightTestArt(CCmdUI *pCmdUI)
afx_msg void OnUpdateViewSightRanges(CCmdUI *pCmdUI)
AsciiString getModelNameAndScale(MapObject *pMapObj, Real *scale, BodyDamageType curDamageState)
Real getCurrentZoom(void)
afx_msg void OnViewShowSoftWater()
Bool getShowBoundingBoxes(void)
afx_msg void OnUpdateViewShowtopdownview(CCmdUI *pCmdUI)
virtual void pitchCamera(Real delta)
afx_msg void OnUpdateViewShowModels(CCmdUI *pCmdUI)
afx_msg void OnViewSightRanges()
afx_msg void OnHighlightTestArt()
virtual void ReAcquireResources(void)
Reacquire all resources after device reset.
afx_msg void OnViewExtraBlends()
afx_msg void OnViewShowAmbientSounds()
afx_msg void OnViewShowSoundCircles()
afx_msg void OnUpdateViewShowSoundCircles(CCmdUI *pCmdUI)
void updateFenceListObjects(MapObject *pObject)
afx_msg void OnUpdateViewShowimpassableareas(CCmdUI *pCmdUI)
virtual void setDefaultCamera()
void reset3dEngineDisplaySize(Int width, Int height)
Closes & reinitializes w3d.
Bool getHighlightTestArt(void)
afx_msg void OnViewShowclouds()
void togglePitchAndRotation(void)
afx_msg void OnUpdateViewLayersList(CCmdUI *pCmdUI)
afx_msg void OnUpdateViewShowSoftWater(CCmdUI *pCmdUI)
afx_msg void OnViewShowwireframe()
void setHighlightTestArt(Bool toggle)
void setShowLetterbox(Bool toggle)
void setShowWeaponRanges(Bool toggle)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct)
virtual Bool viewToDocCoords(CPoint curPt, Coord3D *newPt, Bool constrain=true)
virtual void updateHeightMapInView(WorldHeightMap *htMap, Bool partial, const IRegion2D &partialRange)
Update the height map in the 3d window.
void removeFenceListObjects(MapObject *pObject)
virtual void invalidateCellInView(int xIndex, int yIndex)
Invalidates the area of one height map cell in the 2d view.
afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt)
virtual Int getPickPixels(void)
afx_msg void OnEditShadows()
Bool getShowSightRanges(void)
virtual MapObject * picked3dObjectInView(CPoint viewPt)
virtual Bool viewToDocCoordZ(CPoint curPt, Coord3D *newPt, Real Z)
virtual Bool isDoingPitch(void)
Bool getShowWeaponRanges(void)
afx_msg void OnViewPartialmapsize128x128()
afx_msg BOOL OnEraseBkgnd(CDC *pDC)
afx_msg void OnViewShowshadows()
virtual void invalObjectInView(MapObject *pObj)
Invalidates an object. Pass NULL to inval all objects.
afx_msg void OnViewShowimpassableareas()
virtual void ReleaseResources(void)
Release all dx8 resources so the device can be reset.
Real getCameraPitch(void)
afx_msg void OnUpdateViewWeaponRanges(CCmdUI *pCmdUI)
afx_msg void OnUpdateViewShowshadows(CCmdUI *pCmdUI)
Bool getShowLetterbox(void)
afx_msg void OnViewLayersList()
afx_msg void OnViewPartialmapsize96x96()
afx_msg void OnUpdateViewPartialmapsize96x96(CCmdUI *pCmdUI)
virtual void OnDraw(CDC *pDC)
void setCameraPitch(Real absolutePitch)
virtual void setCenterInView(Real x, Real y)
Set the center for display.
afx_msg void OnViewWeaponRanges()
afx_msg void OnUpdateViewShowMapBoundaries(CCmdUI *pCmdUI)
afx_msg void OnTimer(UINT nIDEvent)
afx_msg void OnViewGarrisoned()
afx_msg void OnEditMapSettings()
afx_msg void OnViewPartialmapsize192x192()
afx_msg void OnUpdateViewShowExtraBlends(CCmdUI *pCmdUI)
afx_msg void OnUpdateViewShowentire3dmap(CCmdUI *pCmdUI)
void updateHysteresis(void)
CPoint getActualWinSize(void)
afx_msg void OnUpdateViewShowAmbientSounds(CCmdUI *pCmdUI)
virtual void scrollInView(Real x, Real y, Bool end)
Scrolls the window by this amount.
afx_msg void OnUpdateViewBoundingBoxes(CCmdUI *pCmdUI)
RefMultiListClass< RenderObjClass > RefRenderObjListClass