@@ -178,7 +178,8 @@ class View : public Snapshot
178178 virtual Real getPitch () { return m_pitch; } // /< Return current camera pitch
179179 virtual void setAngleToDefault (); // /< Set the view angle back to default
180180 virtual void setPitchToDefault (); // /< Set the view pitch back to default
181- virtual void getPosition (Coord3D *pos) { *pos=m_pos;} // /< Returns position camera is looking at (z will be zero)
181+ void setPosition ( const Coord3D *pos ) { m_pos = *pos; }
182+ void getPosition (Coord3D *pos) { *pos = m_pos;} // /< Returns position camera is looking at (z will be zero)
182183
183184 virtual const Coord3D& get3DCameraPosition () const = 0; // /< Returns the actual camera position
184185
@@ -205,14 +206,10 @@ class View : public Snapshot
205206 virtual void getLocation ( ViewLocation *location ); // /< write the view's current location in to the view location object
206207 virtual void setLocation ( const ViewLocation *location ); // /< set the view's current location from to the view location object
207208
208-
209209 virtual void drawView () = 0; // /< Render the world visible in this view.
210210 virtual void updateView () = 0; // /<called once per frame to determine the final camera and object transforms
211211 virtual void stepView () = 0; // /< Update view for every fixed time step
212212
213-
214-
215-
216213 virtual ObjectID getCameraLock () const { return m_cameraLock; }
217214 virtual void setCameraLock (ObjectID id) { m_cameraLock = id; m_lockDist = 0 .0f ; m_lockType = LOCK_FOLLOW ; }
218215 virtual void snapToCameraLock () { m_snapImmediate = TRUE ; }
@@ -241,14 +238,12 @@ class View : public Snapshot
241238 virtual void xfer ( Xfer *xfer );
242239 virtual void loadPostProcess () { }
243240
244- void setPosition ( const Coord3D *pos ) { m_pos = *pos; }
245241 const Coord3D *getPosition () const { return &m_pos; }
246242
247243 virtual View *prependViewToList ( View *list ); // /< Prepend this view to the given list, return the new list
248244 virtual View *getNextView () { return m_next; } // /< Return next view in the set
249245
250-
251- // **********************************************************************************************
246+ protected:
252247
253248 View *m_next; // /< List links used by the Display class
254249
@@ -310,7 +305,9 @@ class ViewLocation
310305 {
311306 m_valid = FALSE ;
312307 m_pos.zero ();
313- m_angle = m_pitch = m_zoom = 0.0 ;
308+ m_angle = 0 .0f ;
309+ m_pitch = 0 .0f ;
310+ m_zoom = 0 .0f ;
314311 }
315312
316313 const Coord3D& getPosition () const { return m_pos; }
0 commit comments