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

#include <wbview.h>

Inherits CView.

Inherited by CWorldBuilderView, and WbView3d.

Public Member Functions

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 Bool viewToDocCoords (CPoint curPt, Coord3D *newPt, Bool constrained=true)
 
virtual Bool docToViewCoords (Coord3D curPt, CPoint *newPt)
 
virtual Bool viewToDocCoordZ (CPoint curPt, Coord3D *newPt, Real Z)
 
virtual void setCenterInView (Real x, Real y)
 Set the center for display.
 
virtual void updateHeightMapInView (WorldHeightMap *htMap, Bool partial, const IRegion2D &partialRange)
 Update the height map in the 3d window.
 
virtual void adjustDocSize ()
 the doc has changed size; readjust view as necessary.
 
virtual void scrollInView (Real x, Real y, Bool end)
 Scrolls the window by this amount.
 
virtual void invalObjectInView (MapObject *pObj)
 Invalidates an object. Pass NULL to inval all objects.
 
virtual void invalidateCellInView (int xIndex, int yIndex)
 Invalidates the area of one height map cell in the 2d view.
 
virtual void setDefaultCamera ()
 
virtual void rotateCamera (Real delta)
 
virtual void pitchCamera (Real delta)
 
virtual Int getPickPixels (void)
 
virtual EditorSortingType GetPickConstraint (void)
 
CWorldBuilderDocWbDoc ()
 
void snapPoint (Coord3D *thePt)
 
virtual TPickedStatus picked (MapObject *pObj, Coord3D docPt)
 
virtual MapObjectpicked3dObjectInView (CPoint viewPt)
 
virtual BuildListInfopickedBuildObjectInView (CPoint viewPt)
 
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)
 
virtual Bool isDoingPitch (void)
 

Protected Member Functions

 WbView ()
 
void mouseDown (TTrackingMode m, CPoint viewPt)
 
void mouseMove (TTrackingMode m, CPoint viewPt)
 
void mouseUp (TTrackingMode m, CPoint viewPt)
 
void constrainCenterPt ()
 
WorldHeightMapEditgetTrackingHeightMap ()
 
virtual void OnDraw (CDC *pDC)
 
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)
 

Protected Attributes

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

static Bool m_snapToGrid = false
 

Detailed Description

Definition at line 51 of file wbview.h.

Constructor & Destructor Documentation

◆ WbView()

WbView::WbView ( )
protected

Definition at line 51 of file wbview.cpp.

◆ ~WbView()

WbView::~WbView ( )
protectedvirtual

Definition at line 74 of file wbview.cpp.

Member Function Documentation

◆ adjustDocSize()

virtual void WbView::adjustDocSize ( )
inlinevirtual

the doc has changed size; readjust view as necessary.

Reimplemented in CWorldBuilderView.

Definition at line 122 of file wbview.h.

◆ constrainCenterPt()

void WbView::constrainCenterPt ( )
protected

Definition at line 434 of file wbview.cpp.

◆ docToViewCoords()

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

Reimplemented in CWorldBuilderView, and WbView3d.

Definition at line 111 of file wbview.h.

◆ doLightFeedback()

void WbView::doLightFeedback ( Bool doFeedback,
Coord3D direction,
Int lightIndex )
inline

Definition at line 108 of file wbview.h.

◆ doRectFeedback()

void WbView::doRectFeedback ( Bool doFeedback,
RECT & rect )
inline

Definition at line 104 of file wbview.h.

◆ doRulerFeedback()

void WbView::doRulerFeedback ( int doRulerFeedback)
inline

Definition at line 105 of file wbview.h.

◆ GetPickConstraint()

virtual EditorSortingType WbView::GetPickConstraint ( void )
inlinevirtual

Definition at line 138 of file wbview.h.

◆ getPickPixels()

virtual Int WbView::getPickPixels ( void )
inlinevirtual

Reimplemented in WbView3d.

Definition at line 137 of file wbview.h.

◆ getShowGarrisoned()

Bool WbView::getShowGarrisoned ( void )
inline

Definition at line 157 of file wbview.h.

◆ getShowModels()

Bool WbView::getShowModels ( void )
inline

Definition at line 153 of file wbview.h.

◆ getShowTerrain()

Bool WbView::getShowTerrain ( void )
inline

Definition at line 154 of file wbview.h.

◆ getTrackingHeightMap()

WorldHeightMapEdit * WbView::getTrackingHeightMap ( )
protected

Definition at line 419 of file wbview.cpp.

◆ invalidateCellInView()

virtual void WbView::invalidateCellInView ( int xIndex,
int yIndex )
inlinevirtual

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

Reimplemented in CWorldBuilderView, and WbView3d.

Definition at line 131 of file wbview.h.

◆ invalObjectInView()

virtual void WbView::invalObjectInView ( MapObject * pObj)
inlinevirtual

Invalidates an object. Pass NULL to inval all objects.

Reimplemented in CWorldBuilderView, and WbView3d.

Definition at line 128 of file wbview.h.

◆ isDoingPitch()

virtual Bool WbView::isDoingPitch ( void )
inlinevirtual

Reimplemented in WbView3d.

Definition at line 159 of file wbview.h.

◆ isNamesVisible()

Bool WbView::isNamesVisible ( void )
inline

Definition at line 151 of file wbview.h.

◆ isPolygonTriggerVisible()

Bool WbView::isPolygonTriggerVisible ( void )
inline

Definition at line 149 of file wbview.h.

◆ isWaypointVisible()

Bool WbView::isWaypointVisible ( void )
inline

Definition at line 150 of file wbview.h.

◆ mouseDown()

void WbView::mouseDown ( TTrackingMode m,
CPoint viewPt )
protected

Definition at line 178 of file wbview.cpp.

◆ mouseMove()

void WbView::mouseMove ( TTrackingMode m,
CPoint viewPt )
protected

Definition at line 197 of file wbview.cpp.

◆ mouseUp()

void WbView::mouseUp ( TTrackingMode m,
CPoint viewPt )
protected

Definition at line 317 of file wbview.cpp.

◆ OnCreate()

int WbView::OnCreate ( LPCREATESTRUCT lpcs)
protected

Definition at line 1079 of file wbview.cpp.

◆ OnDraw()

void WbView::OnDraw ( CDC * pDC)
protectedvirtual

Reimplemented in CWorldBuilderView, and WbView3d.

Definition at line 154 of file wbview.cpp.

◆ OnEditCopy()

void WbView::OnEditCopy ( )
protected

Definition at line 505 of file wbview.cpp.

◆ OnEditCut()

void WbView::OnEditCut ( )
protected

Definition at line 549 of file wbview.cpp.

◆ OnEditDelete()

void WbView::OnEditDelete ( )
protected

Handles the delete menu action.

Definition at line 471 of file wbview.cpp.

◆ OnEditGloballightoptions()

void WbView::OnEditGloballightoptions ( )
protected

Definition at line 755 of file wbview.cpp.

◆ OnEditPaste()

void WbView::OnEditPaste ( )
protected

Definition at line 560 of file wbview.cpp.

◆ OnEditPlayerlist()

void WbView::OnEditPlayerlist ( )
protected

Definition at line 789 of file wbview.cpp.

◆ OnEditReplace()

void WbView::OnEditReplace ( )
protected

Definition at line 640 of file wbview.cpp.

◆ OnEditSelectdup()

void WbView::OnEditSelectdup ( )
protected

Definition at line 621 of file wbview.cpp.

◆ OnEditSelectinvalidteam()

void WbView::OnEditSelectinvalidteam ( )
protected

Definition at line 633 of file wbview.cpp.

◆ OnEditSelectsimilar()

void WbView::OnEditSelectsimilar ( )
protected

Definition at line 627 of file wbview.cpp.

◆ OnEditTeamlist()

void WbView::OnEditTeamlist ( )
protected

Definition at line 1071 of file wbview.cpp.

◆ OnEditWorldinfo()

void WbView::OnEditWorldinfo ( )
protected

Definition at line 795 of file wbview.cpp.

◆ OnKeyDown()

void WbView::OnKeyDown ( UINT nChar,
UINT nRepCnt,
UINT nFlags )
protected

Handles the key down event. Currently, handles delete keys, and checks for updates to the current tool.

Definition at line 488 of file wbview.cpp.

◆ OnKeyUp()

void WbView::OnKeyUp ( UINT nChar,
UINT nRepCnt,
UINT nFlags )
protected

Handles the key up event. Currently, handles delete keys, and checks for updates to the current tool.

Definition at line 499 of file wbview.cpp.

◆ OnLButtonDown()

void WbView::OnLButtonDown ( UINT nFlags,
CPoint point )
protected

Definition at line 369 of file wbview.cpp.

◆ OnLButtonUp()

void WbView::OnLButtonUp ( UINT nFlags,
CPoint point )
protected

Definition at line 364 of file wbview.cpp.

◆ OnLockHorizontal()

void WbView::OnLockHorizontal ( )
protected

Definition at line 729 of file wbview.cpp.

◆ OnLockVertical()

void WbView::OnLockVertical ( )
protected

Definition at line 741 of file wbview.cpp.

◆ OnMButtonDown()

void WbView::OnMButtonDown ( UINT nFlags,
CPoint point )
protected

Definition at line 379 of file wbview.cpp.

◆ OnMButtonUp()

void WbView::OnMButtonUp ( UINT nFlags,
CPoint point )
protected

Definition at line 374 of file wbview.cpp.

◆ OnMouseMove()

void WbView::OnMouseMove ( UINT nFlags,
CPoint point )
protected

Definition at line 349 of file wbview.cpp.

◆ OnObjectpropertiesReflectsinmirror()

void WbView::OnObjectpropertiesReflectsinmirror ( )
protected

Definition at line 708 of file wbview.cpp.

◆ OnPickAnything()

void WbView::OnPickAnything ( )
protected

Definition at line 882 of file wbview.cpp.

◆ OnPickDebris()

void WbView::OnPickDebris ( )
protected

Definition at line 872 of file wbview.cpp.

◆ OnPickInfantry()

void WbView::OnPickInfantry ( )
protected

Definition at line 822 of file wbview.cpp.

◆ OnPickManMade()

void WbView::OnPickManMade ( )
protected

Definition at line 852 of file wbview.cpp.

◆ OnPickNatural()

void WbView::OnPickNatural ( )
protected

Definition at line 862 of file wbview.cpp.

◆ OnPickRoads()

void WbView::OnPickRoads ( )
protected

Definition at line 902 of file wbview.cpp.

◆ OnPickShrubbery()

void WbView::OnPickShrubbery ( )
protected

Definition at line 842 of file wbview.cpp.

◆ OnPickSounds()

void WbView::OnPickSounds ( )
protected

Definition at line 912 of file wbview.cpp.

◆ OnPickStructures()

void WbView::OnPickStructures ( )
protected

Definition at line 812 of file wbview.cpp.

◆ OnPickVehicles()

void WbView::OnPickVehicles ( )
protected

Definition at line 832 of file wbview.cpp.

◆ OnPickWaypoints()

void WbView::OnPickWaypoints ( )
protected

Definition at line 892 of file wbview.cpp.

◆ OnRButtonDown()

void WbView::OnRButtonDown ( UINT nFlags,
CPoint point )
protected

Definition at line 359 of file wbview.cpp.

◆ OnRButtonUp()

void WbView::OnRButtonUp ( UINT nFlags,
CPoint point )
protected

Definition at line 354 of file wbview.cpp.

◆ OnSetCursor()

BOOL WbView::OnSetCursor ( CWnd * pWnd,
UINT nHitTest,
UINT message )
protected

Standard window handler method for updating the cursor.

Definition at line 451 of file wbview.cpp.

◆ OnShowNames()

void WbView::OnShowNames ( )
protected

Definition at line 922 of file wbview.cpp.

◆ OnShowTerrain()

void WbView::OnShowTerrain ( )
protected

Definition at line 1053 of file wbview.cpp.

◆ OnUpdateEditCopy()

void WbView::OnUpdateEditCopy ( CCmdUI * pCmdUI)
protected

Definition at line 544 of file wbview.cpp.

◆ OnUpdateEditCut()

void WbView::OnUpdateEditCut ( CCmdUI * pCmdUI)
protected

Definition at line 555 of file wbview.cpp.

◆ OnUpdateEditPaste()

void WbView::OnUpdateEditPaste ( CCmdUI * pCmdUI)
protected

Definition at line 604 of file wbview.cpp.

◆ OnUpdateLockHorizontal()

void WbView::OnUpdateLockHorizontal ( CCmdUI * pCmdUI)
protected

Definition at line 735 of file wbview.cpp.

◆ OnUpdateLockVertical()

void WbView::OnUpdateLockVertical ( CCmdUI * pCmdUI)
protected

Definition at line 750 of file wbview.cpp.

◆ OnUpdateObjectpropertiesReflectsinmirror()

void WbView::OnUpdateObjectpropertiesReflectsinmirror ( CCmdUI * pCmdUI)
protected

Shows the selected status of the reflects in mirror flag.

Definition at line 679 of file wbview.cpp.

◆ OnUpdatePickAnything()

void WbView::OnUpdatePickAnything ( CCmdUI * pCmdUI)
protected

Definition at line 887 of file wbview.cpp.

◆ OnUpdatePickDebris()

void WbView::OnUpdatePickDebris ( CCmdUI * pCmdUI)
protected

Definition at line 877 of file wbview.cpp.

◆ OnUpdatePickInfantry()

void WbView::OnUpdatePickInfantry ( CCmdUI * pCmdUI)
protected

Definition at line 827 of file wbview.cpp.

◆ OnUpdatePickManMade()

void WbView::OnUpdatePickManMade ( CCmdUI * pCmdUI)
protected

Definition at line 857 of file wbview.cpp.

◆ OnUpdatePickNatural()

void WbView::OnUpdatePickNatural ( CCmdUI * pCmdUI)
protected

Definition at line 867 of file wbview.cpp.

◆ OnUpdatePickRoads()

void WbView::OnUpdatePickRoads ( CCmdUI * pCmdUI)
protected

Definition at line 907 of file wbview.cpp.

◆ OnUpdatePickShrubbery()

void WbView::OnUpdatePickShrubbery ( CCmdUI * pCmdUI)
protected

Definition at line 847 of file wbview.cpp.

◆ OnUpdatePickSounds()

void WbView::OnUpdatePickSounds ( CCmdUI * pCmdUI)
protected

Definition at line 917 of file wbview.cpp.

◆ OnUpdatePickStructures()

void WbView::OnUpdatePickStructures ( CCmdUI * pCmdUI)
protected

Definition at line 817 of file wbview.cpp.

◆ OnUpdatePickVehicles()

void WbView::OnUpdatePickVehicles ( CCmdUI * pCmdUI)
protected

Definition at line 837 of file wbview.cpp.

◆ OnUpdatePickWaypoints()

void WbView::OnUpdatePickWaypoints ( CCmdUI * pCmdUI)
protected

Definition at line 897 of file wbview.cpp.

◆ OnUpdateShowNames()

void WbView::OnUpdateShowNames ( CCmdUI * pCmdUI)
protected

Definition at line 934 of file wbview.cpp.

◆ OnUpdateShowTerrain()

void WbView::OnUpdateShowTerrain ( CCmdUI * pCmdUI)
protected

Definition at line 1065 of file wbview.cpp.

◆ OnUpdateViewShowObjects()

void WbView::OnUpdateViewShowObjects ( CCmdUI * pCmdUI)
protected

Sets the check in the menu to match the show objects flag.

Definition at line 599 of file wbview.cpp.

◆ OnUpdateViewShowpolygontriggers()

void WbView::OnUpdateViewShowpolygontriggers ( CCmdUI * pCmdUI)
protected

Definition at line 784 of file wbview.cpp.

◆ OnUpdateViewShowwaypoints()

void WbView::OnUpdateViewShowwaypoints ( CCmdUI * pCmdUI)
protected

Definition at line 773 of file wbview.cpp.

◆ OnUpdateViewSnaptogrid()

void WbView::OnUpdateViewSnaptogrid ( CCmdUI * pCmdUI)
protected

Definition at line 616 of file wbview.cpp.

◆ OnValidationFixTeams()

void WbView::OnValidationFixTeams ( )
protected

Definition at line 939 of file wbview.cpp.

◆ OnViewShowObjects()

void WbView::OnViewShowObjects ( )
protected

Toggles the show objects flag and invals the window.

Definition at line 587 of file wbview.cpp.

◆ OnViewShowpolygontriggers()

void WbView::OnViewShowpolygontriggers ( )
protected

Definition at line 778 of file wbview.cpp.

◆ OnViewShowwaypoints()

void WbView::OnViewShowwaypoints ( )
protected

Definition at line 766 of file wbview.cpp.

◆ OnViewSnaptogrid()

void WbView::OnViewSnaptogrid ( )
protected

Definition at line 610 of file wbview.cpp.

◆ picked()

TPickedStatus WbView::picked ( MapObject * pObj,
Coord3D docPt )
virtual

Returns true if the pixel location picks the object.

Definition at line 389 of file wbview.cpp.

◆ picked3dObjectInView()

virtual MapObject * WbView::picked3dObjectInView ( CPoint viewPt)
inlinevirtual

Reimplemented in WbView3d.

Definition at line 146 of file wbview.h.

◆ pickedBuildObjectInView()

virtual BuildListInfo * WbView::pickedBuildObjectInView ( CPoint viewPt)
inlinevirtual

Reimplemented in WbView3d.

Definition at line 147 of file wbview.h.

◆ pitchCamera()

virtual void WbView::pitchCamera ( Real delta)
inlinevirtual

Reimplemented in WbView3d.

Definition at line 135 of file wbview.h.

◆ rotateCamera()

virtual void WbView::rotateCamera ( Real delta)
inlinevirtual

Reimplemented in WbView3d.

Definition at line 134 of file wbview.h.

◆ rulerFeedbackInfo()

void WbView::rulerFeedbackInfo ( Coord3D & point1,
Coord3D & point2,
Real dist )

Definition at line 1085 of file wbview.cpp.

◆ scrollInView()

virtual void WbView::scrollInView ( Real x,
Real y,
Bool end )
inlinevirtual

Scrolls the window by this amount.

Reimplemented in CWorldBuilderView, and WbView3d.

Definition at line 125 of file wbview.h.

◆ setCenterInView()

virtual void WbView::setCenterInView ( Real x,
Real y )
inlinevirtual

Set the center for display.

Reimplemented in CWorldBuilderView, and WbView3d.

Definition at line 116 of file wbview.h.

◆ setDefaultCamera()

virtual void WbView::setDefaultCamera ( )
inlinevirtual

Reimplemented in WbView3d.

Definition at line 133 of file wbview.h.

◆ setShowGarrisoned()

void WbView::setShowGarrisoned ( Bool show)
inline

Definition at line 156 of file wbview.h.

◆ setShowModels()

void WbView::setShowModels ( Bool show)
inline

Definition at line 152 of file wbview.h.

◆ snapPoint()

void WbView::snapPoint ( Coord3D * thePt)
inline

Definition at line 143 of file wbview.h.

◆ updateHeightMapInView()

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

Update the height map in the 3d window.

Reimplemented in WbView3d.

Definition at line 119 of file wbview.h.

◆ viewToDocCoords()

virtual Bool WbView::viewToDocCoords ( CPoint curPt,
Coord3D * newPt,
Bool constrained = true )
inlinevirtual

Reimplemented in CWorldBuilderView, and WbView3d.

Definition at line 110 of file wbview.h.

◆ viewToDocCoordZ()

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

Reimplemented in WbView3d.

Definition at line 113 of file wbview.h.

◆ WbDoc()

CWorldBuilderDoc * WbView::WbDoc ( )
inline

Definition at line 141 of file wbview.h.

Member Data Documentation

◆ m_centerPt

Vector3 WbView::m_centerPt
protected

Definition at line 58 of file wbview.h.

◆ m_doLightFeedback

Bool WbView::m_doLightFeedback
protected

Definition at line 97 of file wbview.h.

◆ m_doLockAngle

Bool WbView::m_doLockAngle
protected

True if we are currently locking.

Definition at line 83 of file wbview.h.

◆ m_doRectFeedback

Bool WbView::m_doRectFeedback
protected

Definition at line 90 of file wbview.h.

◆ m_doRulerFeedback

int WbView::m_doRulerFeedback
protected

Definition at line 91 of file wbview.h.

◆ m_feedbackBox

RECT WbView::m_feedbackBox
protected

Definition at line 89 of file wbview.h.

◆ m_hysteresis

Real WbView::m_hysteresis
protected

Definition at line 79 of file wbview.h.

◆ m_lightDirection

Coord3D WbView::m_lightDirection[3]
protected

Definition at line 96 of file wbview.h.

◆ m_lockAngle

Bool WbView::m_lockAngle
protected

Reflects the ui button.

Definition at line 81 of file wbview.h.

◆ m_mouseDownDocPoint

Coord3D WbView::m_mouseDownDocPoint
protected

Definition at line 86 of file wbview.h.

◆ m_mouseDownPoint

CPoint WbView::m_mouseDownPoint
protected

Definition at line 85 of file wbview.h.

◆ m_pickConstraint

EditorSortingType WbView::m_pickConstraint
protected

Definition at line 99 of file wbview.h.

◆ m_rulerLength

Real WbView::m_rulerLength
protected

Definition at line 93 of file wbview.h.

◆ m_rulerPoints

Coord3D WbView::m_rulerPoints[2]
protected

Definition at line 92 of file wbview.h.

◆ m_showGarrisoned

Bool WbView::m_showGarrisoned
protected

Definition at line 74 of file wbview.h.

◆ m_showModels

Bool WbView::m_showModels
protected

Flag whether models are drawn in the 2d and 3d view.

Definition at line 72 of file wbview.h.

◆ m_showNames

Bool WbView::m_showNames
protected

Flag whether names are drawn in the 2d and 3d view.

Definition at line 73 of file wbview.h.

◆ m_showObjects

Bool WbView::m_showObjects
protected

Flag whether object icons are drawn in the 2d and 3d view.

Definition at line 71 of file wbview.h.

◆ m_showPolygonTriggers

Bool WbView::m_showPolygonTriggers
protected

Definition at line 76 of file wbview.h.

◆ m_showTerrain

Bool WbView::m_showTerrain
protected

Flag whether terrain is rendered or not. (Useful for debugging)

Definition at line 77 of file wbview.h.

◆ m_showWaypoints

Bool WbView::m_showWaypoints
protected

Definition at line 75 of file wbview.h.

◆ m_snapToGrid

Bool WbView::m_snapToGrid = false
staticprotected

Definition at line 69 of file wbview.h.

◆ m_trackingMode

TTrackingMode WbView::m_trackingMode
protected

Definition at line 57 of file wbview.h.


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