]> git.mxchange.org Git - simgear.git/commitdiff
Modified Files:
authorfrohlich <frohlich>
Wed, 26 Dec 2007 19:19:51 +0000 (19:19 +0000)
committerfrohlich <frohlich>
Wed, 26 Dec 2007 19:19:51 +0000 (19:19 +0000)
Makefile.am SGPickCallback.hxx: add proirities for pick callbacks.

simgear/scene/util/Makefile.am
simgear/scene/util/SGPickCallback.hxx

index 0bdba87f30867cbb44a39d045af2afc413a86893..48218f079349de3abbb1feeb4bfccc925487553f 100644 (file)
@@ -5,15 +5,15 @@ lib_LIBRARIES = libsgutil.a
 noinst_HEADERS =
 
 include_HEADERS = \
-       SGNodeMasks.hxx \
-       SGUpdateVisitor.hxx \
-       SGEnlargeBoundingBox.hxx \
        SGDebugDrawCallback.hxx \
+       SGEnlargeBoundingBox.hxx \
+       SGNodeMasks.hxx \
        SGPickCallback.hxx \
        SGSceneFeatures.hxx \
        SGSceneUserData.hxx \
        SGStateAttributeVisitor.hxx \
        SGTextureStateAttributeVisitor.hxx \
+       SGUpdateVisitor.hxx \
        RenderConstants.hxx \
        StateAttributeFactory.hxx \
        VectorArrayAdapter.hxx
index a8bf82cbe80de676371f2d9b403f0c3b299f9c23..90b720f847396d245a4979e144b25b42b1b55942 100644 (file)
 // The interface is still under development
 class SGPickCallback : public SGReferenced {
 public:
+  enum Priority {
+    PriorityGUI = 0,
+    PriorityPanel = 1,
+    PriorityOther = 2
+  };
+
   struct Info {
     SGVec3d wgs84;
     SGVec3d local;
   };
 
+  SGPickCallback(Priority priority = PriorityOther) :
+    _priority(priority)
+  { }
+
   virtual ~SGPickCallback() {}
   virtual bool buttonPressed(int button, const Info& info)
   { return false; }
@@ -42,6 +52,12 @@ public:
   { }
   virtual void buttonReleased(void)
   { }
+
+  Priority getPriority() const
+  { return _priority; }
+
+private:
+  Priority _priority;
 };
 
 struct SGSceneryPick {