0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / SelectBasics / SelectBasics_SelectingVolumeManager.hxx
index 1c68de1..1b89fcf 100644 (file)
@@ -20,6 +20,7 @@
 #include <gp_Pnt.hxx>
 #include <TColgp_HArray1OfPnt.hxx>
 #include <SelectBasics_PickResult.hxx>
+#include <Standard_Dump.hxx>
 
 class Bnd_Box;
 class gp_Pnt;
@@ -37,9 +38,9 @@ public:
 
 public:
 
-  SelectBasics_SelectingVolumeManager() {};
+  SelectBasics_SelectingVolumeManager() {}
 
-  virtual ~SelectBasics_SelectingVolumeManager() {};
+  virtual ~SelectBasics_SelectingVolumeManager() {}
 
   virtual Standard_Integer GetActiveSelectionType() const = 0;
 
@@ -109,10 +110,17 @@ public:
   //! correspondingly) onto far view frustum plane
   virtual gp_Pnt GetFarPickedPnt() const = 0;
 
+  //! Return mouse coordinates for Point selection mode.
+  virtual gp_Pnt2d GetMousePosition() const = 0;
+
   //! Stores plane equation coefficients (in the following form:
   //! Ax + By + Cz + D = 0) to the given vector
   virtual void GetPlanes (NCollection_Vector<NCollection_Vec4<Standard_Real> >& thePlaneEquations) const = 0;
 
+  //! Dumps the content of me into the stream
+  virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const
+  { (void)theDepth; OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myActiveSelectionType) }
+
 protected:
   SelectionType myActiveSelectionType;      //!< Active selection type: point, box or polyline
 };