#include "MED_Vector.hxx"
#include <vtkSystemIncludes.h>
-
+//pkv f
+class vtkCell;
+//pkv t
class vtkUnstructuredGrid;
namespace VISU
virtual
vtkIdType
GetElemObjID(int theVtkI) const = 0;
+
+ //pkv f
+ virtual
+ vtkCell*
+ GetElemCell(int theObjID) = 0;
+
+ virtual
+ float*
+ GetNodeCoord(int theObjID) = 0;
+ //pkv t
};
int VISU_Actor::GetNodeObjId(int theVtkID){
vtkIdType aID;
//
- aID=theVtkID;
+ aID=myGeomFilter->GetNodeObjId(theVtkID);
if (myIsShrunk) {
- aID= myShrinkFilter->GetNodeObjId(theVtkID);
+ aID= myShrinkFilter->GetNodeObjId(aID);
}
if (myPipeLine) {
aID=myPipeLine->GetNodeObjID(aID);
int VISU_Actor::GetElemObjId(int theVtkID){
vtkIdType aID;
//
- aID=theVtkID;
-
+ aID=myGeomFilter->GetElemObjId(theVtkID);
if (myIsShrunk) {
- aID= myShrinkFilter->GetElemObjId(theVtkID);
+ aID= myShrinkFilter->GetElemObjId(aID);
}
if (myPipeLine) {
aID=myPipeLine->GetElemObjID(aID);
}
return aID;
}
+//modified by NIZNHY-PKV Tue Aug 30 12:46:15 2005f
+//----------------------------------------------------------------------------
+vtkCell* VISU_Actor::GetElemCell(int theObjID)
+{
+ return myPipeLine->GetElemCell(theObjID);
+}
+//----------------------------------------------------------------------------
+float* VISU_Actor::GetNodeCoord(int theObjID)
+{
+ return myPipeLine->GetNodeCoord(theObjID);
+}
+//modified by NIZNHY-PKV Tue Aug 30 12:46:19 2005t
virtual int GetNodeObjId(int theVtkID);
virtual int GetElemObjId(int theVtkID);
-
+ //pkv f
+ virtual vtkCell* GetElemCell(int theObjID);
+ virtual float* GetNodeCoord(int theObjID);
+ //pkv t
protected:
VISU_Actor();
{
return myExtractGeometry->GetElemObjId(theVtkID);
}
+//modified by NIZNHY-PKV Tue Aug 30 12:53:58 2005f
+vtkCell* VISU_PipeLine::GetElemCell(int )
+{
+ return NULL;
+}
+
+float* VISU_PipeLine::GetNodeCoord(int )
+{
+ return NULL;
+}
+//modified by NIZNHY-PKV Tue Aug 30 12:54:01 2005t
#include <vector>
+//pkv f
+class vtkCell;
+//pkv t
template <class T>
class TVTKSmartPtr: public vtkSmartPointer<T>
{
virtual vtkIdType GetNodeObjID(vtkIdType theVtkID);
virtual vtkIdType GetElemObjID(vtkIdType theVtkID);
-
+ //pkv f
+ virtual vtkCell* GetElemCell(int theObjID);
+ virtual float* GetNodeCoord(int theObjID);
+ //pkv t
protected:
VISU_PipeLine();
VISU_PipeLine(const VISU_PipeLine&);
aIDx=myProfile->GetElemObjID(aIDx);
return aIDx;
}
+//modified by NIZNHY-PKV Tue Aug 30 12:13:53 2005f
+vtkCell* VISU_ScalarMapPL::GetElemCell(int theObjID)
+{
+ return GetProfile()->GetElemCell(theObjID);
+}
+float* VISU_ScalarMapPL::GetNodeCoord(int theObjID)
+{
+ return GetProfile()->GetNodeCoord(theObjID);
+}
+//modified by NIZNHY-PKV Tue Aug 30 12:13:55 2005t
+
void VISU_ScalarMapPL::Build() {
myExtractor->SetInput(GetInput2());
#include <VISU_Convertor.hxx>
class vtkDataSet;
-
+//pkv f
+class vtkCell;
+//pkv t
class VISU_Extractor;
class VISU_FieldTransform;
void SetProfile(const VISU::PProfile& theProfile);
const VISU::PProfile& GetProfile()const;
-
+ //pkv f
+ vtkCell* GetElemCell(int theObjID);
+ float* GetNodeCoord(int theObjID);
+ //pkv t
protected:
typedef vtkDataSet THook;
virtual THook* DoHook();