From: apo Date: Wed, 30 Nov 2005 06:23:49 +0000 (+0000) Subject: To provide pickability for deformed Gauss Points X-Git-Tag: TG-D5-38-2003_D2005-20-12~96 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=96253d54423fd4c3fb63d48efa76190551ad5310;p=modules%2Fvisu.git To provide pickability for deformed Gauss Points --- diff --git a/src/PIPELINE/VISU_GaussPointsPL.cxx b/src/PIPELINE/VISU_GaussPointsPL.cxx index 52f01c9f..1cec84e1 100644 --- a/src/PIPELINE/VISU_GaussPointsPL.cxx +++ b/src/PIPELINE/VISU_GaussPointsPL.cxx @@ -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) diff --git a/src/PIPELINE/VISU_GaussPointsPL.hxx b/src/PIPELINE/VISU_GaussPointsPL.hxx index 7e24000c..17ccd6d5 100644 --- a/src/PIPELINE/VISU_GaussPointsPL.hxx +++ b/src/PIPELINE/VISU_GaussPointsPL.hxx @@ -31,10 +31,9 @@ #include "VISU_ScalarMapPL.hxx" #include "VISU_Convertor.hxx" -#include "VTKViewer_PassThroughFilter.h" - #include +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);