myIsPreselected = (anObjId >= 0);
if(myIsPreselected){
const SVTK_TIndexedMapOfVtkId& aMapIndex = myPreHighlightActor->GetMapIndex();
- int anExtent = aMapIndex.Extent();
+ vtkIdType anExtent = aMapIndex.Extent();
anIsChanged |= (anExtent == 0 || (anExtent > 0 && anObjId != aMapIndex(1)));
if(anIsChanged){
SVTK_TIndexedMapOfVtkId aMapIndex;
myIsPreselected = CheckDimensionId(aSelectionMode,this,anObjId);
if(myIsPreselected){
const SVTK_TIndexedMapOfVtkId& aMapIndex = myPreHighlightActor->GetMapIndex();
- int anExtent = aMapIndex.Extent();
+ vtkIdType anExtent = aMapIndex.Extent();
anIsChanged |= (anExtent == 0 || (anExtent > 0 && anObjId != aMapIndex(1)));
if(anIsChanged){
SVTK_TIndexedMapOfVtkId aMapIndex;
vtkIdType aFNObjId = GetNodeObjId( aFNId );
vtkIdType aSNObjId = GetNodeObjId( aSNId );
const SVTK_IndexedMapOfVtkIds& aMapIds = myPreHighlightActor->GetMapCompositeIndex();
- int anExtent = aMapIds.Extent();
+ vtkIdType anExtent = aMapIds.Extent();
anIsChanged |= (anExtent == 0 || (anExtent > 0 && aMapIds(1).size() == 2 &&
(aFNObjId != aMapIds(1)[0] || aSNObjId != aMapIds(1)[1] ) ) );
if( anIsChanged ) {
vtkPoints *aPoints = vtkPoints::New();
aPoints->SetNumberOfPoints(aNbOfParts);
for(vtkIdType i = 0; i < aNbOfParts; i++){
- int aPartId = theMapIndex( i+1 );
+ vtkIdType aPartId = theMapIndex( i+1 );
if(double* aCoord = theMapActor->GetNodeCoord(aPartId)){
aPoints->SetPoint(i,aCoord);
// Change the type from int to vtkIdType in order to avoid compilation errors while using VTK
*/
int
VTKViewer_Actor
-::GetObjDimension( const int theObjId )
+::GetObjDimension( const vtkIdType theObjId )
{
if ( vtkCell* aCell = GetElemCell(theObjId) )
return aCell->GetCellDimension();
//! Get dimension of corresponding mesh element
virtual
int
- GetObjDimension( const int theObjId );
+ GetObjDimension( const vtkIdType theObjId );
//! To insert some additional filters and then sets the given #vtkMapper
virtual