]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To provide pickability for deformed Gauss Points
authorapo <apo@opencascade.com>
Wed, 30 Nov 2005 06:23:49 +0000 (06:23 +0000)
committerapo <apo@opencascade.com>
Wed, 30 Nov 2005 06:23:49 +0000 (06:23 +0000)
src/PIPELINE/VISU_GaussPointsPL.cxx
src/PIPELINE/VISU_GaussPointsPL.hxx

index 52f01c9fdb30382a32931f12c73034712761afdb..1cec84e1b8c22b95e36531c887c84fe42d844726 100644 (file)
@@ -201,6 +201,15 @@ VISU_GaussPointsPL
   return myGaussPtsIDMapper->GetObjID(theID);
 }
 
+float* 
+VISU_GaussPointsPL
+::GetNodeCoord(int theObjID)
+{
+  vtkIdType anID = GetNodeVTKID(theObjID);
+  vtkDataSet* aDataSet = myGeomFilter->GetInput();
+  return aDataSet->GetPoint(anID);
+}
+
 void
 VISU_GaussPointsPL
 ::SetGaussPtsIDMapper(const VISU::PGaussPtsIDMapper& theGaussPtsIDMapper)
index 7e24000cf5abdfadf0d03c76f0396e7fad0f9716..17ccd6d5080faf0a9630e72f7136790b88810b63 100644 (file)
 #include "VISU_ScalarMapPL.hxx"
 #include "VISU_Convertor.hxx"
 
-#include "VTKViewer_PassThroughFilter.h"
-
 #include <vector>
 
+class VTKViewer_PassThroughFilter;
 class VISU_OpenGLPointSpriteMapper;
 
 class vtkGeometryFilter;
@@ -92,6 +91,10 @@ public:
   VISU::TGaussPointID 
   GetObjID(vtkIdType theID) const;
 
+  virtual
+  float* 
+  GetNodeCoord(vtkIdType theObjID);
+
   void 
   SetGaussPtsIDMapper(const VISU::PGaussPtsIDMapper& theGaussPtsIDMapper);