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

#include <wbview3d.h>

Inherits WbView, and DX8_CleanupHook.

Public Member Functions

virtual void ReleaseResources (void)
 Release all dx8 resources so the device can be reset.
 
virtual void ReAcquireResources (void)
 Reacquire all resources after device reset.
 
virtual Bool viewToDocCoords (CPoint curPt, Coord3D *newPt, Bool constrain=true)
 
virtual Bool docToViewCoords (Coord3D curPt, CPoint *newPt)
 
virtual void updateHeightMapInView (WorldHeightMap *htMap, Bool partial, const IRegion2D &partialRange)
 Update the height map in the 3d window.
 
virtual void invalObjectInView (MapObject *pObj)
 Invalidates an object. Pass NULL to inval all objects.
 
AsciiString getBestModelName (const ThingTemplate *tt, const ModelConditionFlags &c)
 
void invalBuildListItemInView (BuildListInfo *pBuild)
 Invalidates an build list object.
 
virtual void invalidateCellInView (int xIndex, int yIndex)
 Invalidates the area of one height map cell in the 2d view.
 
virtual void scrollInView (Real x, Real y, Bool end)
 Scrolls the window by this amount.
 
virtual void setDefaultCamera ()
 
virtual void rotateCamera (Real delta)
 
virtual void pitchCamera (Real delta)
 
void setCameraPitch (Real absolutePitch)
 
Real getCameraPitch (void)
 
Real getCurrentZoom (void)
 
Real getHeightAboveGround (void)
 
Vector3 getCameraSource (void)
 
Vector3 getCameraTarget (void)
 
Real getCameraAngle (void)
 
CPoint getActualWinSize (void)
 
virtual MapObjectpicked3dObjectInView (CPoint viewPt)
 
virtual BuildListInfopickedBuildObjectInView (CPoint viewPt)
 
void removeFenceListObjects (MapObject *pObject)
 
void updateFenceListObjects (MapObject *pObject)
 
void resetRenderObjects ()
 Removes all render objects. Call when swithing to a new map.
 
void stepTimeOfDay (void)
 
void reset3dEngineDisplaySize (Int width, Int height)
 Closes & reinitializes w3d.
 
void setLighting (const GlobalData::TerrainLighting *tl, Int whichLighting, Int whichLight=0)
 
DrawObjectgetDrawObject (void)
 
AsciiString getModelNameAndScale (MapObject *pMapObj, Real *scale, BodyDamageType curDamageState)
 
virtual Int getPickPixels (void)
 
virtual Bool viewToDocCoordZ (CPoint curPt, Coord3D *newPt, Real Z)
 
void redraw ()
 
virtual void setCenterInView (Real x, Real y)
 Set the center for display.
 
Bool getShowTerrain ()
 
Bool getShowWireframe ()
 
void setObjTracking (MapObject *pMapObj, Coord3D pos, Real angle, Bool show)
 
void setViewLayersList (Bool showLayersList)
 
Bool getShowMapBoundaryFeedback (void) const
 
Bool getShowAmbientSoundsFeedback (void) const
 
void togglePitchAndRotation (void)
 
virtual Bool isDoingPitch (void)
 
void setShowBoundingBoxes (Bool toggle)
 
Bool getShowBoundingBoxes (void)
 
void setShowSightRanges (Bool toggle)
 
Bool getShowSightRanges (void)
 
void setShowWeaponRanges (Bool toggle)
 
Bool getShowWeaponRanges (void)
 
void setHighlightTestArt (Bool toggle)
 
Bool getHighlightTestArt (void)
 
void setShowLetterbox (Bool toggle)
 
Bool getShowLetterbox (void)
 
- Public Member Functions inherited from WbView
void doRectFeedback (Bool doFeedback, RECT &rect)
 
void doRulerFeedback (int doRulerFeedback)
 
void rulerFeedbackInfo (Coord3D &point1, Coord3D &point2, Real dist)
 
void doLightFeedback (Bool doFeedback, Coord3D direction, Int lightIndex)
 
virtual void adjustDocSize ()
 the doc has changed size; readjust view as necessary.
 
virtual EditorSortingType GetPickConstraint (void)
 
CWorldBuilderDocWbDoc ()
 
void snapPoint (Coord3D *thePt)
 
virtual TPickedStatus picked (MapObject *pObj, Coord3D docPt)
 
Bool isPolygonTriggerVisible (void)
 
Bool isWaypointVisible (void)
 
Bool isNamesVisible (void)
 
void setShowModels (Bool show)
 
Bool getShowModels (void)
 
Bool getShowTerrain (void)
 
void setShowGarrisoned (Bool show)
 
Bool getShowGarrisoned (void)
 

Protected Member Functions

 WbView3d ()
 
virtual void OnDraw (CDC *pDC)
 
virtual ~WbView3d ()
 
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
 
afx_msg void OnPaint ()
 
afx_msg void OnSize (UINT nType, int cx, int cy)
 
afx_msg BOOL OnMouseWheel (UINT nFlags, short zDelta, CPoint pt)
 
afx_msg void OnTimer (UINT nIDEvent)
 
afx_msg void OnDestroy ()
 
afx_msg void OnShowWindow (BOOL bShow, UINT nStatus)
 
afx_msg void OnViewShowwireframe ()
 
afx_msg void OnUpdateViewShowwireframe (CCmdUI *pCmdUI)
 
afx_msg BOOL OnEraseBkgnd (CDC *pDC)
 
afx_msg void OnViewShowentire3dmap ()
 
afx_msg void OnUpdateViewShowentire3dmap (CCmdUI *pCmdUI)
 
afx_msg void OnViewShowtopdownview ()
 
afx_msg void OnUpdateViewShowtopdownview (CCmdUI *pCmdUI)
 
afx_msg void OnViewShowclouds ()
 
afx_msg void OnUpdateViewShowclouds (CCmdUI *pCmdUI)
 
afx_msg void OnViewShowmacrotexture ()
 
afx_msg void OnUpdateViewShowmacrotexture (CCmdUI *pCmdUI)
 
afx_msg void OnEditSelectmacrotexture ()
 
afx_msg void OnViewShowshadows ()
 
afx_msg void OnUpdateViewShowshadows (CCmdUI *pCmdUI)
 
afx_msg void OnViewShowSoftWater ()
 
afx_msg void OnUpdateViewShowSoftWater (CCmdUI *pCmdUI)
 
afx_msg void OnViewExtraBlends ()
 
afx_msg void OnUpdateViewShowExtraBlends (CCmdUI *pCmdUI)
 
afx_msg void OnEditShadows ()
 
afx_msg void OnEditMapSettings ()
 
afx_msg void OnViewShowimpassableareas ()
 
afx_msg void OnUpdateViewShowimpassableareas (CCmdUI *pCmdUI)
 
afx_msg void OnImpassableAreaOptions ()
 
afx_msg void OnViewPartialmapsize96x96 ()
 
afx_msg void OnUpdateViewPartialmapsize96x96 (CCmdUI *pCmdUI)
 
afx_msg void OnViewPartialmapsize192x192 ()
 
afx_msg void OnUpdateViewPartialmapsize192x192 (CCmdUI *pCmdUI)
 
afx_msg void OnViewPartialmapsize160x160 ()
 
afx_msg void OnUpdateViewPartialmapsize160x160 (CCmdUI *pCmdUI)
 
afx_msg void OnViewPartialmapsize128x128 ()
 
afx_msg void OnUpdateViewPartialmapsize128x128 (CCmdUI *pCmdUI)
 
afx_msg void OnViewShowModels ()
 
afx_msg void OnUpdateViewShowModels (CCmdUI *pCmdUI)
 
afx_msg void OnViewBoundingBoxes ()
 
afx_msg void OnUpdateViewBoundingBoxes (CCmdUI *pCmdUI)
 
afx_msg void OnViewSightRanges ()
 
afx_msg void OnUpdateViewSightRanges (CCmdUI *pCmdUI)
 
afx_msg void OnViewWeaponRanges ()
 
afx_msg void OnUpdateViewWeaponRanges (CCmdUI *pCmdUI)
 
afx_msg void OnHighlightTestArt ()
 
afx_msg void OnUpdateHighlightTestArt (CCmdUI *pCmdUI)
 
afx_msg void OnShowLetterbox ()
 
afx_msg void OnUpdateShowLetterbox (CCmdUI *pCmdUI)
 
afx_msg void OnViewLayersList ()
 
afx_msg void OnUpdateViewLayersList (CCmdUI *pCmdUI)
 
afx_msg void OnViewGarrisoned ()
 
afx_msg void OnUpdateViewGarrisoned (CCmdUI *pCmdUI)
 
afx_msg void OnViewShowMapBoundaries ()
 
afx_msg void OnUpdateViewShowMapBoundaries (CCmdUI *pCmdUI)
 
afx_msg void OnViewShowAmbientSounds ()
 
afx_msg void OnUpdateViewShowAmbientSounds (CCmdUI *pCmdUI)
 
afx_msg void OnViewShowSoundCircles ()
 
afx_msg void OnUpdateViewShowSoundCircles (CCmdUI *pCmdUI)
 
UINT getLastDrawTime ()
 
void init3dScene ()
 
void initAssets ()
 
void initWW3D ()
 
void drawCircle (HDC hdc, const Coord3D &centerPoint, Real radius, COLORREF color)
 Draw a (not very good) circle into the hdc.
 
void drawLabels (HDC hdc)
 This is actually draw any 2d graphics and/or feedback.
 
void drawLabels (void)
 
void shutdownWW3D ()
 
void killTheTimer ()
 
void render ()
 
void setupCamera ()
 
void updateHysteresis (void)
 
void updateLights ()
 
void updateScorches ()
 
void updateTrees ()
 
- Protected Member Functions inherited from WbView
 WbView ()
 
void mouseDown (TTrackingMode m, CPoint viewPt)
 
void mouseMove (TTrackingMode m, CPoint viewPt)
 
void mouseUp (TTrackingMode m, CPoint viewPt)
 
void constrainCenterPt ()
 
WorldHeightMapEditgetTrackingHeightMap ()
 
virtual ~WbView ()
 
afx_msg void OnRButtonUp (UINT nFlags, CPoint point)
 
afx_msg void OnRButtonDown (UINT nFlags, CPoint point)
 
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
 
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
 
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
 
afx_msg void OnMButtonUp (UINT nFlags, CPoint point)
 
afx_msg void OnMButtonDown (UINT nFlags, CPoint point)
 
afx_msg BOOL OnSetCursor (CWnd *pWnd, UINT nHitTest, UINT message)
 
afx_msg void OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)
 
afx_msg void OnKeyUp (UINT nChar, UINT nRepCnt, UINT nFlags)
 
afx_msg void OnEditDelete ()
 
afx_msg void OnEditCopy ()
 
afx_msg void OnUpdateEditCopy (CCmdUI *pCmdUI)
 
afx_msg void OnEditCut ()
 
afx_msg void OnUpdateEditCut (CCmdUI *pCmdUI)
 
afx_msg void OnEditPaste ()
 
afx_msg void OnUpdateEditPaste (CCmdUI *pCmdUI)
 
afx_msg void OnViewSnaptogrid ()
 
afx_msg void OnUpdateViewSnaptogrid (CCmdUI *pCmdUI)
 
afx_msg void OnViewShowObjects ()
 
afx_msg void OnUpdateViewShowObjects (CCmdUI *pCmdUI)
 
afx_msg void OnEditSelectdup ()
 
afx_msg void OnEditSelectsimilar ()
 
afx_msg void OnEditSelectinvalidteam ()
 
afx_msg void OnEditReplace ()
 
afx_msg void OnObjectpropertiesReflectsinmirror ()
 
afx_msg void OnLockHorizontal ()
 
afx_msg void OnUpdateLockHorizontal (CCmdUI *pCmdUI)
 
afx_msg void OnLockVertical ()
 
afx_msg void OnUpdateLockVertical (CCmdUI *pCmdUI)
 
afx_msg void OnEditGloballightoptions ()
 
afx_msg void OnViewShowwaypoints ()
 
afx_msg void OnUpdateViewShowwaypoints (CCmdUI *pCmdUI)
 
afx_msg void OnViewShowpolygontriggers ()
 
afx_msg void OnUpdateViewShowpolygontriggers (CCmdUI *pCmdUI)
 
afx_msg void OnEditPlayerlist ()
 
afx_msg void OnEditWorldinfo ()
 
afx_msg void OnEditTeamlist ()
 
afx_msg void OnUpdateObjectpropertiesReflectsinmirror (CCmdUI *pCmdUI)
 
afx_msg void OnPickStructures ()
 
afx_msg void OnUpdatePickStructures (CCmdUI *pCmdUI)
 
afx_msg void OnPickInfantry ()
 
afx_msg void OnUpdatePickInfantry (CCmdUI *pCmdUI)
 
afx_msg void OnPickVehicles ()
 
afx_msg void OnUpdatePickVehicles (CCmdUI *pCmdUI)
 
afx_msg void OnPickShrubbery ()
 
afx_msg void OnUpdatePickShrubbery (CCmdUI *pCmdUI)
 
afx_msg void OnPickManMade ()
 
afx_msg void OnUpdatePickManMade (CCmdUI *pCmdUI)
 
afx_msg void OnPickNatural ()
 
afx_msg void OnUpdatePickNatural (CCmdUI *pCmdUI)
 
afx_msg void OnPickDebris ()
 
afx_msg void OnUpdatePickDebris (CCmdUI *pCmdUI)
 
afx_msg void OnPickAnything ()
 
afx_msg void OnUpdatePickAnything (CCmdUI *pCmdUI)
 
afx_msg void OnPickWaypoints ()
 
afx_msg void OnUpdatePickWaypoints (CCmdUI *pCmdUI)
 
afx_msg void OnPickRoads ()
 
afx_msg void OnUpdatePickRoads (CCmdUI *pCmdUI)
 
afx_msg void OnPickSounds ()
 
afx_msg void OnUpdatePickSounds (CCmdUI *pCmdUI)
 
afx_msg void OnShowNames ()
 
afx_msg void OnUpdateShowNames (CCmdUI *pCmdUI)
 
afx_msg void OnValidationFixTeams ()
 
afx_msg void OnShowTerrain ()
 
afx_msg void OnUpdateShowTerrain (CCmdUI *pCmdUI)
 
afx_msg int OnCreate (LPCREATESTRUCT lpcs)
 

Additional Inherited Members

- Protected Attributes inherited from WbView
TTrackingMode m_trackingMode
 
Vector3 m_centerPt
 
Bool m_showObjects
 Flag whether object icons are drawn in the 2d and 3d view.
 
Bool m_showModels
 Flag whether models are drawn in the 2d and 3d view.
 
Bool m_showNames
 Flag whether names are drawn in the 2d and 3d view.
 
Bool m_showGarrisoned
 
Bool m_showWaypoints
 
Bool m_showPolygonTriggers
 
Bool m_showTerrain
 Flag whether terrain is rendered or not. (Useful for debugging)
 
Real m_hysteresis
 
Bool m_lockAngle
 Reflects the ui button.
 
Bool m_doLockAngle
 True if we are currently locking.
 
CPoint m_mouseDownPoint
 
Coord3D m_mouseDownDocPoint
 
RECT m_feedbackBox
 
Bool m_doRectFeedback
 
int m_doRulerFeedback
 
Coord3D m_rulerPoints [2]
 
Real m_rulerLength
 
Coord3D m_lightDirection [3]
 
Bool m_doLightFeedback
 
EditorSortingType m_pickConstraint
 
- Static Protected Attributes inherited from WbView
static Bool m_snapToGrid = false
 

Detailed Description

Definition at line 63 of file wbview3d.h.

Constructor & Destructor Documentation

◆ WbView3d()

WbView3d::WbView3d ( )
protected

Definition at line 372 of file wbview3d.cpp.

◆ ~WbView3d()

WbView3d::~WbView3d ( )
protectedvirtual

Definition at line 444 of file wbview3d.cpp.

Member Function Documentation

◆ docToViewCoords()

Bool WbView3d::docToViewCoords ( Coord3D curPt,
CPoint * newPt )
virtual

Reimplemented from WbView.

Definition at line 1982 of file wbview3d.cpp.

◆ drawCircle()

void WbView3d::drawCircle ( HDC hdc,
const Coord3D & centerPoint,
Real radius,
COLORREF color )
protected

Draw a (not very good) circle into the hdc.

Definition at line 2370 of file wbview3d.cpp.

◆ drawLabels() [1/2]

void WbView3d::drawLabels ( HDC hdc)
protected

This is actually draw any 2d graphics and/or feedback.

Definition at line 2419 of file wbview3d.cpp.

◆ drawLabels() [2/2]

void WbView3d::drawLabels ( void )
protected

Definition at line 2411 of file wbview3d.cpp.

◆ getActualWinSize()

CPoint WbView3d::getActualWinSize ( void )
inline

Definition at line 272 of file wbview3d.h.

◆ getBestModelName()

AsciiString WbView3d::getBestModelName ( const ThingTemplate * tt,
const ModelConditionFlags & c )
Todo
srj – this is a terrible hack, since things can have multiple models, and it's private info. fix later.

Definition at line 1117 of file wbview3d.cpp.

◆ getCameraAngle()

Real WbView3d::getCameraAngle ( void )
inline

Definition at line 271 of file wbview3d.h.

◆ getCameraPitch()

Real WbView3d::getCameraPitch ( void )

Definition at line 2774 of file wbview3d.cpp.

◆ getCameraSource()

Vector3 WbView3d::getCameraSource ( void )
inline

Definition at line 269 of file wbview3d.h.

◆ getCameraTarget()

Vector3 WbView3d::getCameraTarget ( void )
inline

Definition at line 270 of file wbview3d.h.

◆ getCurrentZoom()

Real WbView3d::getCurrentZoom ( void )

Definition at line 2781 of file wbview3d.cpp.

◆ getDrawObject()

DrawObject * WbView3d::getDrawObject ( void )
inline

Definition at line 288 of file wbview3d.h.

◆ getHeightAboveGround()

Real WbView3d::getHeightAboveGround ( void )
inline

Definition at line 268 of file wbview3d.h.

◆ getHighlightTestArt()

Bool WbView3d::getHighlightTestArt ( void )
inline

Definition at line 319 of file wbview3d.h.

◆ getLastDrawTime()

UINT WbView3d::getLastDrawTime ( )
inlineprotected

Definition at line 324 of file wbview3d.h.

◆ getModelNameAndScale()

AsciiString WbView3d::getModelNameAndScale ( MapObject * pMapObj,
Real * scale,
BodyDamageType curDamageState )

Definition at line 1249 of file wbview3d.cpp.

◆ getPickPixels()

virtual Int WbView3d::getPickPixels ( void )
inlinevirtual

Reimplemented from WbView.

Definition at line 292 of file wbview3d.h.

◆ getShowAmbientSoundsFeedback()

Bool WbView3d::getShowAmbientSoundsFeedback ( void ) const
inline

Definition at line 308 of file wbview3d.h.

◆ getShowBoundingBoxes()

Bool WbView3d::getShowBoundingBoxes ( void )
inline

Definition at line 313 of file wbview3d.h.

◆ getShowLetterbox()

Bool WbView3d::getShowLetterbox ( void )
inline

Definition at line 321 of file wbview3d.h.

◆ getShowMapBoundaryFeedback()

Bool WbView3d::getShowMapBoundaryFeedback ( void ) const
inline

Definition at line 307 of file wbview3d.h.

◆ getShowSightRanges()

Bool WbView3d::getShowSightRanges ( void )
inline

Definition at line 315 of file wbview3d.h.

◆ getShowTerrain()

Bool WbView3d::getShowTerrain ( )

◆ getShowWeaponRanges()

Bool WbView3d::getShowWeaponRanges ( void )
inline

Definition at line 317 of file wbview3d.h.

◆ getShowWireframe()

Bool WbView3d::getShowWireframe ( )
inline

Definition at line 325 of file wbview3d.h.

◆ init3dScene()

void WbView3d::init3dScene ( )
protected

Definition at line 764 of file wbview3d.cpp.

◆ initAssets()

void WbView3d::initAssets ( )
protected

Definition at line 607 of file wbview3d.cpp.

◆ initWW3D()

void WbView3d::initWW3D ( )
protected

<set to 0xff to make collision boxes visible

< this makes text look good :)

Definition at line 2230 of file wbview3d.cpp.

◆ invalBuildListItemInView()

void WbView3d::invalBuildListItemInView ( BuildListInfo * pBuild)

Invalidates an build list object.

Definition at line 1138 of file wbview3d.cpp.

◆ invalidateCellInView()

void WbView3d::invalidateCellInView ( int xIndex,
int yIndex )
virtual

Invalidates the area of one height map cell in the 2d view.

Todo
be smarter about invaling the area

Reimplemented from WbView.

Definition at line 1049 of file wbview3d.cpp.

◆ invalObjectInView()

void WbView3d::invalObjectInView ( MapObject * pObj)
virtual

Invalidates an object. Pass NULL to inval all objects.

Reimplemented from WbView.

Definition at line 1351 of file wbview3d.cpp.

◆ isDoingPitch()

virtual Bool WbView3d::isDoingPitch ( void )
inlinevirtual

Reimplemented from WbView.

Definition at line 311 of file wbview3d.h.

◆ killTheTimer()

void WbView3d::killTheTimer ( void )
protected

Definition at line 581 of file wbview3d.cpp.

◆ OnCreate()

int WbView3d::OnCreate ( LPCREATESTRUCT lpCreateStruct)
protected

Definition at line 2323 of file wbview3d.cpp.

◆ OnDestroy()

void WbView3d::OnDestroy ( )
protected

Definition at line 2815 of file wbview3d.cpp.

◆ OnDraw()

void WbView3d::OnDraw ( CDC * pDC)
protectedvirtual

Reimplemented from WbView.

Definition at line 2207 of file wbview3d.cpp.

◆ OnEditMapSettings()

void WbView3d::OnEditMapSettings ( )
protected

Definition at line 2981 of file wbview3d.cpp.

◆ OnEditSelectmacrotexture()

void WbView3d::OnEditSelectmacrotexture ( )
protected

Definition at line 2912 of file wbview3d.cpp.

◆ OnEditShadows()

void WbView3d::OnEditShadows ( )
protected

Definition at line 2991 of file wbview3d.cpp.

◆ OnEraseBkgnd()

BOOL WbView3d::OnEraseBkgnd ( CDC * pDC)
protected

Definition at line 2856 of file wbview3d.cpp.

◆ OnHighlightTestArt()

void WbView3d::OnHighlightTestArt ( )
protected

Definition at line 3056 of file wbview3d.cpp.

◆ OnImpassableAreaOptions()

void WbView3d::OnImpassableAreaOptions ( )
protected

Definition at line 3116 of file wbview3d.cpp.

◆ OnMouseWheel()

BOOL WbView3d::OnMouseWheel ( UINT nFlags,
short zDelta,
CPoint pt )
protected

Definition at line 2652 of file wbview3d.cpp.

◆ OnPaint()

void WbView3d::OnPaint ( )
protected

Definition at line 2350 of file wbview3d.cpp.

◆ OnShowLetterbox()

void WbView3d::OnShowLetterbox ( )
protected

Definition at line 3071 of file wbview3d.cpp.

◆ OnShowWindow()

void WbView3d::OnShowWindow ( BOOL bShow,
UINT nStatus )
protected

Definition at line 2822 of file wbview3d.cpp.

◆ OnSize()

void WbView3d::OnSize ( UINT nType,
int cx,
int cy )
protected

Definition at line 2645 of file wbview3d.cpp.

◆ OnTimer()

void WbView3d::OnTimer ( UINT nIDEvent)
protected

Definition at line 2806 of file wbview3d.cpp.

◆ OnUpdateHighlightTestArt()

void WbView3d::OnUpdateHighlightTestArt ( CCmdUI * pCmdUI)
protected

Definition at line 3064 of file wbview3d.cpp.

◆ OnUpdateShowLetterbox()

void WbView3d::OnUpdateShowLetterbox ( CCmdUI * pCmdUI)
protected

Definition at line 3077 of file wbview3d.cpp.

◆ OnUpdateViewBoundingBoxes()

void WbView3d::OnUpdateViewBoundingBoxes ( CCmdUI * pCmdUI)
protected

Definition at line 3021 of file wbview3d.cpp.

◆ OnUpdateViewGarrisoned()

void WbView3d::OnUpdateViewGarrisoned ( CCmdUI * pCmdUI)
protected

Definition at line 3090 of file wbview3d.cpp.

◆ OnUpdateViewLayersList()

void WbView3d::OnUpdateViewLayersList ( CCmdUI * pCmdUI)
protected

Definition at line 3210 of file wbview3d.cpp.

◆ OnUpdateViewPartialmapsize128x128()

void WbView3d::OnUpdateViewPartialmapsize128x128 ( CCmdUI * pCmdUI)
protected

Definition at line 3193 of file wbview3d.cpp.

◆ OnUpdateViewPartialmapsize160x160()

void WbView3d::OnUpdateViewPartialmapsize160x160 ( CCmdUI * pCmdUI)
protected

Definition at line 3177 of file wbview3d.cpp.

◆ OnUpdateViewPartialmapsize192x192()

void WbView3d::OnUpdateViewPartialmapsize192x192 ( CCmdUI * pCmdUI)
protected

Definition at line 3161 of file wbview3d.cpp.

◆ OnUpdateViewPartialmapsize96x96()

void WbView3d::OnUpdateViewPartialmapsize96x96 ( CCmdUI * pCmdUI)
protected

Definition at line 3145 of file wbview3d.cpp.

◆ OnUpdateViewShowAmbientSounds()

void WbView3d::OnUpdateViewShowAmbientSounds ( CCmdUI * pCmdUI)
protected

Definition at line 3235 of file wbview3d.cpp.

◆ OnUpdateViewShowclouds()

void WbView3d::OnUpdateViewShowclouds ( CCmdUI * pCmdUI)
protected

Definition at line 2896 of file wbview3d.cpp.

◆ OnUpdateViewShowentire3dmap()

void WbView3d::OnUpdateViewShowentire3dmap ( CCmdUI * pCmdUI)
protected

Definition at line 2872 of file wbview3d.cpp.

◆ OnUpdateViewShowExtraBlends()

void WbView3d::OnUpdateViewShowExtraBlends ( CCmdUI * pCmdUI)
protected

Definition at line 2976 of file wbview3d.cpp.

◆ OnUpdateViewShowimpassableareas()

void WbView3d::OnUpdateViewShowimpassableareas ( CCmdUI * pCmdUI)
protected

Definition at line 3107 of file wbview3d.cpp.

◆ OnUpdateViewShowmacrotexture()

void WbView3d::OnUpdateViewShowmacrotexture ( CCmdUI * pCmdUI)
protected

Definition at line 2907 of file wbview3d.cpp.

◆ OnUpdateViewShowMapBoundaries()

void WbView3d::OnUpdateViewShowMapBoundaries ( CCmdUI * pCmdUI)
protected

Definition at line 3222 of file wbview3d.cpp.

◆ OnUpdateViewShowModels()

void WbView3d::OnUpdateViewShowModels ( CCmdUI * pCmdUI)
protected

Definition at line 3007 of file wbview3d.cpp.

◆ OnUpdateViewShowshadows()

void WbView3d::OnUpdateViewShowshadows ( CCmdUI * pCmdUI)
protected

Definition at line 2944 of file wbview3d.cpp.

◆ OnUpdateViewShowSoftWater()

void WbView3d::OnUpdateViewShowSoftWater ( CCmdUI * pCmdUI)
protected

Definition at line 2961 of file wbview3d.cpp.

◆ OnUpdateViewShowSoundCircles()

void WbView3d::OnUpdateViewShowSoundCircles ( CCmdUI * pCmdUI)
protected

Definition at line 3248 of file wbview3d.cpp.

◆ OnUpdateViewShowtopdownview()

void WbView3d::OnUpdateViewShowtopdownview ( CCmdUI * pCmdUI)
protected

Definition at line 2885 of file wbview3d.cpp.

◆ OnUpdateViewShowwireframe()

void WbView3d::OnUpdateViewShowwireframe ( CCmdUI * pCmdUI)
protected

Definition at line 2850 of file wbview3d.cpp.

◆ OnUpdateViewSightRanges()

void WbView3d::OnUpdateViewSightRanges ( CCmdUI * pCmdUI)
protected

Definition at line 3036 of file wbview3d.cpp.

◆ OnUpdateViewWeaponRanges()

void WbView3d::OnUpdateViewWeaponRanges ( CCmdUI * pCmdUI)
protected

Definition at line 3050 of file wbview3d.cpp.

◆ OnViewBoundingBoxes()

void WbView3d::OnViewBoundingBoxes ( )
protected

Definition at line 3013 of file wbview3d.cpp.

◆ OnViewExtraBlends()

void WbView3d::OnViewExtraBlends ( )
protected

Definition at line 2966 of file wbview3d.cpp.

◆ OnViewGarrisoned()

void WbView3d::OnViewGarrisoned ( )
protected

Definition at line 3083 of file wbview3d.cpp.

◆ OnViewLayersList()

void WbView3d::OnViewLayersList ( )
protected

Definition at line 3198 of file wbview3d.cpp.

◆ OnViewPartialmapsize128x128()

void WbView3d::OnViewPartialmapsize128x128 ( )
protected

Definition at line 3182 of file wbview3d.cpp.

◆ OnViewPartialmapsize160x160()

void WbView3d::OnViewPartialmapsize160x160 ( )
protected

Definition at line 3166 of file wbview3d.cpp.

◆ OnViewPartialmapsize192x192()

void WbView3d::OnViewPartialmapsize192x192 ( )
protected

Definition at line 3150 of file wbview3d.cpp.

◆ OnViewPartialmapsize96x96()

void WbView3d::OnViewPartialmapsize96x96 ( )
protected

Definition at line 3134 of file wbview3d.cpp.

◆ OnViewShowAmbientSounds()

void WbView3d::OnViewShowAmbientSounds ( )
protected

Definition at line 3228 of file wbview3d.cpp.

◆ OnViewShowclouds()

void WbView3d::OnViewShowclouds ( )
protected

Definition at line 2890 of file wbview3d.cpp.

◆ OnViewShowentire3dmap()

void WbView3d::OnViewShowentire3dmap ( )
protected

Definition at line 2863 of file wbview3d.cpp.

◆ OnViewShowimpassableareas()

void WbView3d::OnViewShowimpassableareas ( )
protected

Definition at line 3095 of file wbview3d.cpp.

◆ OnViewShowmacrotexture()

void WbView3d::OnViewShowmacrotexture ( )
protected

Definition at line 2901 of file wbview3d.cpp.

◆ OnViewShowMapBoundaries()

void WbView3d::OnViewShowMapBoundaries ( )
protected

Definition at line 3215 of file wbview3d.cpp.

◆ OnViewShowModels()

void WbView3d::OnViewShowModels ( )
protected

Definition at line 3000 of file wbview3d.cpp.

◆ OnViewShowshadows()

void WbView3d::OnViewShowshadows ( )
protected

Definition at line 2921 of file wbview3d.cpp.

◆ OnViewShowSoftWater()

void WbView3d::OnViewShowSoftWater ( )
protected

Definition at line 2949 of file wbview3d.cpp.

◆ OnViewShowSoundCircles()

void WbView3d::OnViewShowSoundCircles ( )
protected

Definition at line 3240 of file wbview3d.cpp.

◆ OnViewShowtopdownview()

void WbView3d::OnViewShowtopdownview ( )
protected

Definition at line 2877 of file wbview3d.cpp.

◆ OnViewShowwireframe()

void WbView3d::OnViewShowwireframe ( )
protected

Definition at line 2844 of file wbview3d.cpp.

◆ OnViewSightRanges()

void WbView3d::OnViewSightRanges ( )
protected

Definition at line 3028 of file wbview3d.cpp.

◆ OnViewWeaponRanges()

void WbView3d::OnViewWeaponRanges ( )
protected

Definition at line 3042 of file wbview3d.cpp.

◆ picked3dObjectInView()

MapObject * WbView3d::picked3dObjectInView ( CPoint viewPt)
virtual

Returns true if the pixel location picks the object.

Reimplemented from WbView.

Definition at line 1625 of file wbview3d.cpp.

◆ pickedBuildObjectInView()

BuildListInfo * WbView3d::pickedBuildObjectInView ( CPoint viewPt)
virtual

Returns true if the pixel location picks the object.

Reimplemented from WbView.

Definition at line 1655 of file wbview3d.cpp.

◆ pitchCamera()

void WbView3d::pitchCamera ( Real delta)
virtual

Reimplemented from WbView.

Definition at line 2754 of file wbview3d.cpp.

◆ ReAcquireResources()

void WbView3d::ReAcquireResources ( void )
virtual

Reacquire all resources after device reset.

Reallocates all W3D assets after a reset..

Implements DX8_CleanupHook.

Definition at line 538 of file wbview3d.cpp.

◆ redraw()

void WbView3d::redraw ( void )

Definition at line 2021 of file wbview3d.cpp.

◆ ReleaseResources()

void WbView3d::ReleaseResources ( void )
virtual

Release all dx8 resources so the device can be reset.

Releases all w3d assets, to prepare for Reset device call.

Implements DX8_CleanupHook.

Definition at line 519 of file wbview3d.cpp.

◆ removeFenceListObjects()

void WbView3d::removeFenceListObjects ( MapObject * pObject)

Definition at line 1101 of file wbview3d.cpp.

◆ render()

void WbView3d::render ( )
protected

Definition at line 2074 of file wbview3d.cpp.

◆ reset3dEngineDisplaySize()

void WbView3d::reset3dEngineDisplaySize ( Int width,
Int height )

Closes & reinitializes w3d.

Definition at line 590 of file wbview3d.cpp.

◆ resetRenderObjects()

void WbView3d::resetRenderObjects ( )

Removes all render objects. Call when swithing to a new map.

Definition at line 805 of file wbview3d.cpp.

◆ rotateCamera()

void WbView3d::rotateCamera ( Real delta)
virtual

Reimplemented from WbView.

Definition at line 2744 of file wbview3d.cpp.

◆ scrollInView()

void WbView3d::scrollInView ( Real xScroll,
Real yScroll,
Bool end )
virtual

Scrolls the window by this amount.

Scrolls the window.

Reimplemented from WbView.

Definition at line 2832 of file wbview3d.cpp.

◆ setCameraPitch()

void WbView3d::setCameraPitch ( Real absolutePitch)

Definition at line 2764 of file wbview3d.cpp.

◆ setCenterInView()

void WbView3d::setCenterInView ( Real x,
Real y )
virtual

Set the center for display.

Reimplemented from WbView.

Definition at line 1607 of file wbview3d.cpp.

◆ setDefaultCamera()

void WbView3d::setDefaultCamera ( )
virtual

Reimplemented from WbView.

Definition at line 2684 of file wbview3d.cpp.

◆ setHighlightTestArt()

void WbView3d::setHighlightTestArt ( Bool toggle)
inline

Definition at line 318 of file wbview3d.h.

◆ setLighting()

void WbView3d::setLighting ( const GlobalData::TerrainLighting * tl,
Int whichLighting,
Int whichLight = 0 )

Definition at line 875 of file wbview3d.cpp.

◆ setObjTracking()

void WbView3d::setObjTracking ( MapObject * pMapObj,
Coord3D pos,
Real angle,
Bool show )

Definition at line 343 of file wbview3d.cpp.

◆ setShowBoundingBoxes()

void WbView3d::setShowBoundingBoxes ( Bool toggle)
inline

Definition at line 312 of file wbview3d.h.

◆ setShowLetterbox()

void WbView3d::setShowLetterbox ( Bool toggle)
inline

Definition at line 320 of file wbview3d.h.

◆ setShowSightRanges()

void WbView3d::setShowSightRanges ( Bool toggle)
inline

Definition at line 314 of file wbview3d.h.

◆ setShowWeaponRanges()

void WbView3d::setShowWeaponRanges ( Bool toggle)
inline

Definition at line 316 of file wbview3d.h.

◆ setupCamera()

void WbView3d::setupCamera ( )
protected

Definition at line 633 of file wbview3d.cpp.

◆ setViewLayersList()

void WbView3d::setViewLayersList ( Bool showLayersList)
inline

Definition at line 305 of file wbview3d.h.

◆ shutdownWW3D()

void WbView3d::shutdownWW3D ( void )
protected
Todo
: where does this need to be done?

Definition at line 459 of file wbview3d.cpp.

◆ stepTimeOfDay()

void WbView3d::stepTimeOfDay ( void )

Definition at line 864 of file wbview3d.cpp.

◆ togglePitchAndRotation()

void WbView3d::togglePitchAndRotation ( void )
inline

Definition at line 310 of file wbview3d.h.

◆ updateFenceListObjects()

void WbView3d::updateFenceListObjects ( MapObject * pObject)

Definition at line 1055 of file wbview3d.cpp.

◆ updateHeightMapInView()

void WbView3d::updateHeightMapInView ( WorldHeightMap * htMap,
Bool partial,
const IRegion2D & partialRange )
virtual

Update the height map in the 3d window.

Reimplemented from WbView.

Definition at line 1564 of file wbview3d.cpp.

◆ updateHysteresis()

void WbView3d::updateHysteresis ( void )
protected

Definition at line 1883 of file wbview3d.cpp.

◆ updateLights()

void WbView3d::updateLights ( )
protected

Definition at line 910 of file wbview3d.cpp.

◆ updateScorches()

void WbView3d::updateScorches ( void )
protected

Definition at line 996 of file wbview3d.cpp.

◆ updateTrees()

void WbView3d::updateTrees ( void )
protected

Definition at line 1015 of file wbview3d.cpp.

◆ viewToDocCoords()

Bool WbView3d::viewToDocCoords ( CPoint curPt,
Coord3D * newPt,
Bool constrain = true )
virtual

Reimplemented from WbView.

Definition at line 1699 of file wbview3d.cpp.

◆ viewToDocCoordZ()

Bool WbView3d::viewToDocCoordZ ( CPoint curPt,
Coord3D * newPt,
Real Z )
virtual

Reimplemented from WbView.

Definition at line 1829 of file wbview3d.cpp.


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