TMeshOnEntityImpl
::GetElemVTKID(vtkIdType theID) const
{
- TObj2VTKID::const_iterator anIter = std::find(myObj2VTKID.begin(),
- myObj2VTKID.end(),
- theID);
- if(anIter != myObj2VTKID.end())
- return *anIter;
- return -1;
+ return theID;
}
vtkIdType
TMeshOnEntityImpl
::GetElemObjID(vtkIdType theID) const
{
- return myObj2VTKID[theID];
+ return theID;
}
typedef TVector<TConnect> TCell2Connect;
typedef std::map<vtkIdType,TCell2Connect> TGeom2Cell2Connect;
- typedef TVector<vtkIdType> TObj2VTKID;
-
struct TMeshOnEntityImpl: virtual TMeshOnEntity, virtual TSource
{
TGeom2Cell2Connect myGeom2Cell2Connect;
virtual
vtkIdType
- GetElemObjID(int theVtkI) const;
+ GetElemVTKID(vtkIdType theID) const;
+
+ virtual
+ vtkIdType
+ GetElemObjID(vtkIdType theID) const;
TObj2VTKID myObj2VTKID;
};