*/
int
VTKViewer_Actor
-::GetNodeObjId(int theVtkID)
+::GetNodeObjId(vtkIdType theVtkID)
{
return theVtkID;
}
*/
double*
VTKViewer_Actor
-::GetNodeCoord(int theObjID)
+::GetNodeCoord(vtkIdType theObjID)
{
return GetInput()->GetPoint(theObjID);
}
*/
int
VTKViewer_Actor
-::GetNodeVtkId( int theObjID )
+::GetNodeVtkId( vtkIdType theObjID )
{
return theObjID;
}
*/
vtkCell*
VTKViewer_Actor
-::GetElemCell(int theObjID)
+::GetElemCell(vtkIdType theObjID)
{
return GetInput()->GetCell(theObjID);
}
*/
int
VTKViewer_Actor
-::GetElemObjId(int theVtkID)
+::GetElemObjId(vtkIdType theVtkID)
{
return theVtkID;
}
//! Maps VTK index of a node to corresponding object index
virtual
int
- GetNodeObjId(int theVtkID);
+ GetNodeObjId(vtkIdType theVtkID);
//! Get coordinates of a node for given object index
virtual
double*
- GetNodeCoord(int theObjID);
+ GetNodeCoord(vtkIdType theObjID);
//! Maps object index of a node to corresponding VTK index
virtual
int
- GetNodeVtkId(int theObjID);
+ GetNodeVtkId(vtkIdType theObjID);
//! Maps VTK index of a cell to corresponding object index
virtual
int
- GetElemObjId(int theVtkID);
+ GetElemObjId(vtkIdType theVtkID);
//! Get corresponding #vtkCell for given object index
virtual
vtkCell*
- GetElemCell(int theObjID);
+ GetElemCell(vtkIdType theObjID);
//----------------------------------------------------------------------------
//! Get dimension of corresponding mesh element
* \param theCellId - cell id.
* \retval \c true - if cell id is valid, else \c false.
*/
-bool VTKViewer_Filter::IsValid( VTKViewer_Actor* theActor, const int theCellId )
+bool VTKViewer_Filter::IsValid( VTKViewer_Actor* theActor, const vtkIdType theCellId )
{
SetActor( theActor );
return IsValid( theCellId );
VTKVIEWER_EXPORT VTKViewer_Filter();
VTKVIEWER_EXPORT virtual ~VTKViewer_Filter();
- VTKVIEWER_EXPORT bool IsValid( VTKViewer_Actor*, const int theId );
- VTKVIEWER_EXPORT virtual bool IsValid( const int theId ) const = 0;
+ VTKVIEWER_EXPORT bool IsValid( VTKViewer_Actor*, const vtkIdType theId );
+ VTKVIEWER_EXPORT virtual bool IsValid( const vtkIdType theId ) const = 0;
VTKVIEWER_EXPORT virtual int GetId() const = 0;
VTKVIEWER_EXPORT virtual bool IsNodeFilter() const = 0;
}
-vtkIdType VTKViewer_GeometryFilter::GetElemObjId( int theVtkID )
+vtkIdType VTKViewer_GeometryFilter::GetElemObjId( vtkIdType theVtkID )
{
- if( theVtkID < 0 || theVtkID >= (int)myVTK2ObjIds.size() )
+ if( theVtkID < 0 || theVtkID >= (vtkIdType)myVTK2ObjIds.size() )
return -1;
return myVTK2ObjIds[theVtkID];
}
* \brief Return input value theVtkID
* \retval theVtkID
*/
- virtual vtkIdType GetNodeObjId(int theVtkID) { return theVtkID;}
+ virtual vtkIdType GetNodeObjId(vtkIdType theVtkID) { return theVtkID;}
/*! \fn virtual vtkIdType GetElemObjId(int theVtkID);
* \brief Return object ID by VTK ID cell
* \retval myVTK2ObjIds[theVtkID]
*/
- virtual vtkIdType GetElemObjId(int theVtkID);
+ virtual vtkIdType GetElemObjId(vtkIdType theVtkID);
virtual void SetQuadraticArcMode(bool theFlag);
virtual bool GetQuadraticArcMode() const;
*\param theIsNode - boolean flag, if \c true - node, else - cell.
*/
bool VTKViewer_InteractorStyle::IsValid( VTKViewer_Actor* theActor,
- const int theId,
+ const vtkIdType theId,
const bool theIsNode )
{
std::map<int, Handle(VTKViewer_Filter)>::const_iterator anIter;
bool IsFilterPresent( const int );
void RemoveFilter( const int );
bool IsValid( VTKViewer_Actor* theActor,
- const int theId,
+ const vtkIdType theId,
const bool theIsNode = false );
void IncrementalPan ( const int incrX, const int incrY );
VTKViewer_Actor *myPreViewActor, *myPreSelectionActor, *mySelectedActor;
- int myElemId;
+ vtkIdType myElemId;
int myEdgeId;
- int myNodeId;
+ vtkIdType myNodeId;
public:
bool eventFilter(QObject* object, QEvent* event);
/*!Return node object id by vtk node id.
*\retval -1 - if no object, else return id.
*/
-vtkIdType VTKViewer_ShrinkFilter::GetNodeObjId(int theVtkID)
+vtkIdType VTKViewer_ShrinkFilter::GetNodeObjId(vtkIdType theVtkID)
{
- if ( myVTK2ObjIds.empty() || theVtkID > (int)myVTK2ObjIds.size() )
+ if ( myVTK2ObjIds.empty() || theVtkID > (vtkIdType)myVTK2ObjIds.size() )
return -1;
return myVTK2ObjIds.at(theVtkID);
}
/*!Gets store mapping flag.*/
int GetStoreMapping(){ return myStoreMapping;}
- virtual vtkIdType GetNodeObjId(int theVtkID);
+ virtual vtkIdType GetNodeObjId(vtkIdType theVtkID);
/*!Return element id by vtk id.*/
- virtual vtkIdType GetElemObjId(int theVtkID) { return theVtkID;}
+ virtual vtkIdType GetElemObjId(vtkIdType theVtkID) { return theVtkID;}
protected:
VTKViewer_ShrinkFilter();