From 96253d54423fd4c3fb63d48efa76190551ad5310 Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 30 Nov 2005 06:23:49 +0000 Subject: [PATCH] To provide pickability for deformed Gauss Points --- src/PIPELINE/VISU_GaussPointsPL.cxx | 9 +++++++++ src/PIPELINE/VISU_GaussPointsPL.hxx | 7 +++++-- 2 files changed, 14 insertions(+), 2 deletions(-) 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); -- 2.39.2