Text archives Help
- From: roni@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r1574 - trunk/UserInterface
- Date: Sat, 28 Jul 2007 20:55:32 -0600 (MDT)
Author: roni
Date: Sat Jul 28 20:55:30 2007
New Revision: 1574
Modified:
trunk/UserInterface/XWindowUI.cc
trunk/UserInterface/XWindowUI.h
Log:
Changed XWindowUI::projectToSphere() to be public and static (instead
of private and const). I made this change because the method is a
utility function that doesn't depend on the XWindowUI instance's
state, and I found the function useful in an external project.
Modified: trunk/UserInterface/XWindowUI.cc
==============================================================================
--- trunk/UserInterface/XWindowUI.cc (original)
+++ trunk/UserInterface/XWindowUI.cc Sat Jul 28 20:55:30 2007
@@ -1062,7 +1062,7 @@
}
}
-Vector XWindowUI::projectToSphere(Real x, Real y, Real radius) const
+Vector XWindowUI::projectToSphere(Real x, Real y, Real radius)
{
x /= radius;
y /= radius;
Modified: trunk/UserInterface/XWindowUI.h
==============================================================================
--- trunk/UserInterface/XWindowUI.h (original)
+++ trunk/UserInterface/XWindowUI.h Sat Jul 28 20:55:30 2007
@@ -69,6 +69,9 @@
void shutdown(MantaInterface*);
+ // Utility functions
+ static Vector projectToSphere(Real x, Real y, Real radius);
+
protected:
void register_default_keys();
void register_default_mouse();
@@ -104,9 +107,6 @@
void animation_callback(int, int, bool&);
void change_maxDepth(unsigned int, unsigned long, int);
-
- // Utility functions
- Vector projectToSphere(Real x, Real y, Real radius) const;
// This is a pointer to the interface we will use to interact with manta.
MantaInterface *rtrt_interface;
- [MANTA] r1574 - trunk/UserInterface, roni, 07/28/2007
Archive powered by MHonArc 2.6.16.