acc->Delete();
}
acc = vtkImageAccumulate::New();
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
acc->SetInput( bbGetInputIn() );
+#else
+ acc->SetInputData( bbGetInputIn() );
+#endif
acc->IgnoreZeroOn();
acc->Update();
bbSetOutputVoxelCount(acc->GetVoxelCount());
vtkImageData* ImageContinuousDilate3D::dilateFilterRecursive(vtkImageData* image, int repetitions, double x, double y, double z)
{
vtkImageContinuousDilate3D *dilateFilter = vtkImageContinuousDilate3D ::New();
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
dilateFilter->SetInput (image);
+#else
+ dilateFilter->SetInputData(image);
+#endif
dilateFilter->SetKernelSize(x, y, z);
dilateFilter->Modified();
dilateFilter->Update();
vtkImageData* ImageContinuousErode3D::erodeFilterRecursive(vtkImageData* image, int repetitions, double x, double y, double z)
{
vtkImageContinuousErode3D *erodeFilter = vtkImageContinuousErode3D ::New();
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
erodeFilter->SetInput (image);
+#else
+ erodeFilter->SetInputData(image);
+#endif
erodeFilter->SetKernelSize(x, y, z);
erodeFilter->Modified();
erodeFilter->Update();
if (bbGetInputComponent0()!=-1)
{
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
IEC0->SetInput( bbGetInputIn() );
+#else
+ IEC0->SetInputData( bbGetInputIn() );
+#endif
IEC0->SetComponents( bbGetInputComponent0() );
IEC0->Update();
bbSetOutputOut0( IEC0->GetOutput() );
if (bbGetInputComponent1()!=-1)
{
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
IEC1->SetInput( bbGetInputIn() );
+#else
+ IEC1->SetInputData( bbGetInputIn() );
+#endif
IEC1->SetComponents( bbGetInputComponent1() );
IEC1->Update();
bbSetOutputOut1( IEC1->GetOutput() );
if (bbGetInputComponent2()!=-1)
{
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
IEC2->SetInput( bbGetInputIn() );
+#else
+ IEC2->SetInputData( bbGetInputIn() );
+#endif
IEC2->SetComponents( bbGetInputComponent2() );
IEC2->Update();
bbSetOutputOut2( IEC2->GetOutput() );
if (bbGetInputComponent3()!=-1)
{
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
IEC3->SetInput( bbGetInputIn() );
+#else
+ IEC3->SetInputData( bbGetInputIn() );
+#endif
IEC3->SetComponents( bbGetInputComponent2() );
IEC3->Update();
bbSetOutputOut3( IEC3->GetOutput() );
if (bbGetInputType()==2) { imageSlab->SetOperationToMin(); }
if (bbGetInputType()==3) { imageSlab->SetOperationToMax(); }
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
imageSlab->SetInput( bbGetInputIn() );
+#else
+ imageSlab->SetInputData( bbGetInputIn() );
+#endif
imageSlab->MultiSliceOutputOff();
imageSlab->SetOutputScalarTypeToInputScalarType();
bbSetOutputOut( imageSlab->GetOutput() );
sizeZ = 1;
vtkImageData *newImage = vtkImageData::New();
newImage->Initialize();
- newImage->SetScalarTypeToUnsignedChar();
newImage->SetSpacing( 1,1,1 );
newImage->SetDimensions( sizeX,sizeY,sizeZ );
- newImage->SetWholeExtent(0, sizeX-1,0,sizeY-1,0,sizeZ-1 );
newImage->SetExtent(0, sizeX-1,0,sizeY-1,0,sizeZ-1 );
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
+ newImage->SetWholeExtent(0, sizeX-1,0,sizeY-1,0,sizeZ-1 );
+ newImage->SetScalarTypeToUnsignedChar();
newImage->SetNumberOfScalarComponents(1);
newImage->AllocateScalars();
newImage->Update();
+#else
+ newImage->AllocateScalars(VTK_UNSIGNED_CHAR,1);
+#endif
+
memset ( (void*)newImage->GetScalarPointer(), 0, sizeX*sizeY*1 );
for (i=0; i<sizeX; i++)
{
long int headersize=0;
vtkImageData *newImage=NULL;
+ int imageType;
char mystring[250];
char strTmp[30];
if (strncmp("HeaderSize",mystring,10)==0) { sscanf(mystring,"%s %s %ld" ,strTmp, strTmp, &headersize); }
if (strncmp("ElementDataFile",mystring,15)==0) { sscanf(mystring,"%s %s %s" ,strTmp, strTmp, strTmp2); elementdatafile=strTmp2; }
- if (strncmp("ElementType = MET_CHAR",mystring,22)==0) { newImage->SetScalarTypeToChar(); dataSize=sizeof(char); }
- if (strncmp("ElementType = VTK_CHAR",mystring,22)==0) { newImage->SetScalarTypeToChar(); dataSize=sizeof(char); }
- if (strncmp("ElementType = MET_UCHAR",mystring,23)==0) { newImage->SetScalarTypeToUnsignedChar(); dataSize=sizeof(unsigned char); }
- if (strncmp("ElementType = VTK_UNSIGNED_CHAR",mystring,31)==0) { newImage->SetScalarTypeToUnsignedChar(); dataSize=sizeof(unsigned char); }
- if (strncmp("ElementType = MET_USHORT",mystring,24)==0) { newImage->SetScalarTypeToUnsignedShort(); dataSize=sizeof(unsigned short);}
- if (strncmp("ElementType = VTK_UNSIGNED_SHORT",mystring,32)==0) { newImage->SetScalarTypeToUnsignedShort(); dataSize=sizeof(unsigned short);}
- if (strncmp("ElementType = MET_SHORT",mystring,23)==0) { newImage->SetScalarTypeToShort(); dataSize=sizeof(short); }
- if (strncmp("ElementType = VTK_SHORT",mystring,23)==0) { newImage->SetScalarTypeToShort(); dataSize=sizeof(short); }
- if (strncmp("ElementType = MET_UINT",mystring,22)==0) { newImage->SetScalarTypeToUnsignedInt(); dataSize=sizeof(unsigned int); }
- if (strncmp("ElementType = VTK_UNSIGNED_INT",mystring,30)==0) { newImage->SetScalarTypeToUnsignedInt(); dataSize=sizeof(unsigned int); }
- if (strncmp("ElementType = MET_INT",mystring,21)==0) { newImage->SetScalarTypeToInt(); dataSize=sizeof(int); }
- if (strncmp("ElementType = VTK_INT",mystring,21)==0) { newImage->SetScalarTypeToInt(); dataSize=sizeof(int); }
- if (strncmp("ElementType = MET_FLOAT",mystring,23)==0) { newImage->SetScalarTypeToFloat(); dataSize=sizeof(float); }
- if (strncmp("ElementType = VTK_FLOAT",mystring,23)==0) { newImage->SetScalarTypeToFloat(); dataSize=sizeof(float); }
- if (strncmp("ElementType = MET_LONG",mystring,22)==0) { newImage->SetScalarTypeToLong(); dataSize=sizeof(long); }
- if (strncmp("ElementType = VTK_LONG",mystring,22)==0) { newImage->SetScalarTypeToLong(); dataSize=sizeof(long); }
- if (strncmp("ElementType = MET_DOUBLE",mystring,24)==0) { newImage->SetScalarTypeToDouble(); dataSize=sizeof(double); }
- if (strncmp("ElementType = VTK_DOUBLE",mystring,24)==0) { newImage->SetScalarTypeToDouble(); dataSize=sizeof(double); }
+
+
+ if (strncmp("ElementType = MET_CHAR",mystring,22)==0) { imageType =VTK_CHAR; dataSize=sizeof(char); }
+ if (strncmp("ElementType = VTK_CHAR",mystring,22)==0) { imageType =VTK_CHAR; dataSize=sizeof(char); }
+ if (strncmp("ElementType = MET_UCHAR",mystring,23)==0) { imageType =VTK_UNSIGNED_CHAR; dataSize=sizeof(unsigned char); }
+ if (strncmp("ElementType = VTK_UNSIGNED_CHAR",mystring,31)==0) { imageType =VTK_UNSIGNED_CHAR; dataSize=sizeof(unsigned char); }
+ if (strncmp("ElementType = MET_USHORT",mystring,24)==0) { imageType =VTK_UNSIGNED_SHORT; dataSize=sizeof(unsigned short);}
+ if (strncmp("ElementType = VTK_UNSIGNED_SHORT",mystring,32)==0) { imageType =VTK_UNSIGNED_SHORT; dataSize=sizeof(unsigned short);}
+ if (strncmp("ElementType = MET_SHORT",mystring,23)==0) { imageType =VTK_SHORT; dataSize=sizeof(short); }
+ if (strncmp("ElementType = VTK_SHORT",mystring,23)==0) { imageType =VTK_SHORT; dataSize=sizeof(short); }
+ if (strncmp("ElementType = MET_UINT",mystring,22)==0) { imageType =VTK_UNSIGNED_INT; dataSize=sizeof(unsigned int); }
+ if (strncmp("ElementType = VTK_UNSIGNED_INT",mystring,30)==0) { imageType =VTK_UNSIGNED_INT; dataSize=sizeof(unsigned int); }
+ if (strncmp("ElementType = MET_INT",mystring,21)==0) { imageType =VTK_INT; dataSize=sizeof(int); }
+ if (strncmp("ElementType = VTK_INT",mystring,21)==0) { imageType =VTK_INT; dataSize=sizeof(int); }
+ if (strncmp("ElementType = MET_FLOAT",mystring,23)==0) { imageType =VTK_FLOAT; dataSize=sizeof(float); }
+ if (strncmp("ElementType = VTK_FLOAT",mystring,23)==0) { imageType =VTK_FLOAT; dataSize=sizeof(float); }
+ if (strncmp("ElementType = MET_LONG",mystring,22)==0) { imageType =VTK_LONG; dataSize=sizeof(long); }
+ if (strncmp("ElementType = VTK_LONG",mystring,22)==0) { imageType =VTK_LONG; dataSize=sizeof(long); }
+ if (strncmp("ElementType = MET_DOUBLE",mystring,24)==0) { imageType =VTK_DOUBLE; dataSize=sizeof(double); }
+ if (strncmp("ElementType = VTK_DOUBLE",mystring,24)==0) { imageType =VTK_DOUBLE; dataSize=sizeof(double); }
} // while
fclose(ffIn);
{
newImage->SetSpacing( spcX,spcY,spcZ );
newImage->SetDimensions( dimX,dimY,width );
- newImage->SetWholeExtent(0, dimX-1,0,dimY-1,0,width-1 );
newImage->SetExtent(0, dimX-1,0,dimY-1,0,width-1 );
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
+ newImage->SetWholeExtent(0, dimX-1,0,dimY-1,0,width-1 );
newImage->SetNumberOfScalarComponents(1);
+ newImage->SetScalarType(imageType);
newImage->AllocateScalars();
newImage->Update();
+#else
+ newImage->AllocateScalars( imageType,1 );
+#endif
+
+
pos = dimX*dimY*(long long)slice*dataSize;
#if defined(_WIN32)
if (_lseeki64( fd, pos, SEEK_SET ) < 0)
{
newImage->SetSpacing( spcX,spcZ,spcY );
newImage->SetDimensions( dimX,dimZ,width );
- newImage->SetWholeExtent(0, dimX-1,0,dimZ-1,0,width-1 );
newImage->SetExtent(0, dimX-1,0,dimZ-1,0,width-1 );
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
+ newImage->SetWholeExtent(0, dimX-1,0,dimZ-1,0,width-1 );
newImage->SetNumberOfScalarComponents(1);
+ newImage->SetScalarType(imageType);
newImage->AllocateScalars();
newImage->Update();
+#else
+ newImage->AllocateScalars( imageType, 1);
+#endif
+
int iWidth;
for (iWidth=0;iWidth<width;iWidth++)
{
{
newImage->SetSpacing( spcY,spcZ,spcX );
newImage->SetDimensions( dimY,dimZ,width );
- newImage->SetWholeExtent(0, dimY-1,0,dimZ-1,0,width-1 );
newImage->SetExtent(0, dimY-1,0,dimZ-1,0,width-1 );
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
+ newImage->SetWholeExtent(0, dimY-1,0,dimZ-1,0,width-1 );
newImage->SetNumberOfScalarComponents(1);
+ newImage->SetScalarType(imageType);
newImage->AllocateScalars();
newImage->Update();
+#else
+ newImage->AllocateScalars( imageType ,1 );
+#endif
+
int iWidth;
for (iWidth=0;iWidth<width;iWidth++)
{
{
if ((GetActive()==true) && (GetRenderer()!=NULL))
{
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
_vPlaneWidget->SetInput( GetImage() );
+#else
+ _vPlaneWidget->SetInputData( GetImage() );
+#endif
+
_vPlaneWidget->SetInteractor( GetRenderer()->GetRenderWindow()->GetInteractor() );
_vPlaneWidget->NormalToXAxisOn();
_vPlaneWidget->NormalToZAxisOn();
if (GetTypeForm()==0)
{
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
_tubefilter->SetInput( _polydata );
+#else
+ _tubefilter->SetInputData( _polydata );
+#endif
_tubefilter->SetRadius( GetScaleFactor() );
_tubefilter->SetNumberOfSides(12);
_tubefilter->SetVaryRadiusToVaryRadiusOff();
_tubefilter->Modified();
_tubefilter->Update();
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
_streamMapper2->SetInput( _tubefilter->GetOutput() );
+#else
+ _streamMapper2->SetInputData( _tubefilter->GetOutput() );
+#endif
}
if (GetTypeForm()==1)
{
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
_ribbonfilter->SetInput( _polydata );
+#else
+ _ribbonfilter->SetInputData( _polydata );
+#endif
_ribbonfilter->SetWidth( GetScaleFactor() );
_ribbonfilter->SetWidthFactor( GetScaleFactor()*10 );
_ribbonfilter->GlobalWarningDisplayOff (); //EED this is to avoid the "BEVEL WARNING"
_ribbonfilter->Modified();
_ribbonfilter->Update();
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
_streamMapper2->SetInput( _ribbonfilter->GetOutput() );
+#else
+ _streamMapper2->SetInputData( _ribbonfilter->GetOutput() );
+#endif
}
if (GetTypeForm()==2)
{
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
_streamMapper2->SetInput( _polydata );
+#else
+ _streamMapper2->SetInputData( _polydata );
+#endif
}
//EED _streamMapper2->SetLookupTable(vGreenToRedLut);
}
_newvtkpolydata->GetPointData()->RemoveArray( _ScalarArrayName.c_str() );
_newvtkpolydata->GetPointData()->AddArray( newScalarArray );
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
_newvtkpolydata->Update();
+#else
+ _newvtkpolydata->Modified();
+#endif
_StreamLinesOut = _newvtkpolydata;
// _source->SetCenter( c );
// _source->Update();
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
_streamer->SetInput( _dataobject );
//EED1 _streamer->SetSource( _source->GetOutput() );
_streamer->SetSource( _sourcePoints );
+#else
+ _streamer->SetInputData( _dataobject );
+ _streamer->SetSourceData( _sourcePoints );
+#endif
_streamer->SetIntegratorTypeToRungeKutta45();
_streamer->SetMaximumPropagation(500);
//EED _streamer->SetMaximumPropagationUnitToTimeUnit();
int outputdims[3];
imageIn->GetDimensions (inputdims);
unsigned short *input = (unsigned short *)(imageIn->GetScalarPointer());
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
imageIn->Update();
+#else
+ imageIn->Modified();
+#endif
unsigned int div = (unsigned int)ceil(sqrt( (double)numberOfImagesInMosaic ) );
outputdims[0] = inputdims[0] / div;
vtkImageOut = vtkImageData::New();
vtkImageOut->SetDimensions( outputdims );
vtkImageOut->SetExtent(0,outputdims[0]-1,0,outputdims[1]-1,0,outputdims[2]-1);
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
vtkImageOut->SetWholeExtent(0,outputdims[0]-1,0,outputdims[1]-1,0,outputdims[2]-1);
vtkImageOut->SetNumberOfScalarComponents(1);
//vtkImageOut->SetSpacing( blabla );
vtkImageOut->SetScalarType( VTK_UNSIGNED_SHORT );
vtkImageOut->AllocateScalars();
vtkImageOut->Update();
-
+#else
+ vtkImageOut->AllocateScalars(VTK_UNSIGNED_SHORT,1);
+#endif
+
+
unsigned short *output =(unsigned short *)(vtkImageOut->GetScalarPointer());
unsigned short *dest = output;
m_Image->SetOrigin(origin);
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
extrude->SetInput(m_Mesh1);
+#else
+ extrude->SetInputData(m_Mesh1);
+#endif
extrude->SetScaleFactor(1);
extrude->SetExtrusionTypeToNormalExtrusion();
extrude->SetVector(0,0,1);
extrude->Update();
dataToStencil->SetTolerance(0);
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
dataToStencil->SetInput(extrude->GetOutput());
+#else
+ dataToStencil->SetInputData(extrude->GetOutput());
+#endif
dataToStencil->SetOutputOrigin(origin);
dataToStencil->SetOutputSpacing(spacing);
dataToStencil->SetOutputWholeExtent(m_Image->GetExtent());
dataToStencil->Update();
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
imageStencil->SetInput(m_Image);
imageStencil->SetStencil(dataToStencil->GetOutput());
+#else
+ imageStencil->SetInputData(m_Image);
+ imageStencil->SetStencilData(dataToStencil->GetOutput());
+#endif
imageStencil->ReverseStencilOff();
imageStencil->SetBackgroundValue(-200);
imageStencil->Update();
}
void vtkImageDataStrucPoints::joinComponents(vtkImageData* imageX, vtkImageData* imageY, vtkImageData* imageZ)
{
+ int ext[6];
imageY->Modified();
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
imageY->Update();
- int ext[6];
imageY->GetWholeExtent(ext);
+#else
+ imageY->GetExtent(ext);
+#endif
int dim[3];
- double spc[3];;
- dim[0]=ext[1]-ext[0]+1;
- dim[1]=ext[3]-ext[2]+1;
- dim[2]=ext[5]-ext[4]+1;
+ double spc[3];
+ dim[0]=ext[1]-ext[0]+1;
+ dim[1]=ext[3]-ext[2]+1;
+ dim[2]=ext[5]-ext[4]+1;
std::cout<<"dim "<< dim[0] <<" "<< dim[1] <<" "<< dim[2] <<std::endl;
imageY->GetSpacing(spc);
_structuredPoints = vtkStructuredPoints::New();
_structuredPoints->SetDimensions(dim[0], dim[1], dim[2]);
_structuredPoints->SetSpacing(spc);
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
_structuredPoints->SetScalarTypeToDouble();
_structuredPoints->SetNumberOfScalarComponents(3);
+#else
+ vtkInformation* info=_structuredPoints->GetInformation();
+ vtkDataObject::SetPointDataActiveScalarInfo(info, VTK_DOUBLE, 3);
+
+#endif
+
_structuredPoints->GetPointData()->SetVectors(array);
_structuredPoints->GetPointData()->SetNumberOfTuples(sizeimage);
_structuredPoints->Modified();
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
_structuredPoints->Update();
+#else
+ //...
+#endif
/*
_structuredPoints->Print(cout);
double vx,vy,vz,mag;
double colorDirX,colorDirY,colorDirZ;
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
_StreamLinesIn->Update();
+#else
+ //...
+#endif
+
vtkCharArray *mask = vtkCharArray::New();
vtkDoubleArray *magnitud = vtkDoubleArray::New();
vtkDoubleArray *velocity = vtkDoubleArray::New();
//------------------------------------------------------------------------
void vtkTensorsVisu::Process()
{
-printf("EED vtkTensorsVisu::Process Start\n");
-
if (_active==true)
{
if(GetTypeForm()==2) // source superquadratic
{
superquadratic->SetThetaResolution(20);
superquadratic->SetPhiResolution(20);
+#if VTK_MAJOR_VERSION <= 5
tg->SetSource(superquadratic->GetOutput());
+#else
+ tg->SetSourceData(superquadratic->GetOutput());
+#endif
} else if(GetTypeForm()==1) { // source sphere
+#if VTK_MAJOR_VERSION <= 5
tg->SetSource(ss->GetOutput());
+#else
+ tg->SetSourceData(ss->GetOutput());
+#endif
} else { // source cube
+#if VTK_MAJOR_VERSION <= 5
tg->SetSource(cs->GetOutput());
+#else
+ tg->SetSourceData(cs->GetOutput());
+#endif
}
+#if VTK_MAJOR_VERSION <= 5
tg->SetInput( GetDataObject() );
+#else
+ tg->SetInputData( GetDataObject() );
+#endif
// tg->ScalingOn();
// tg->SetScaling(25);
tg->SetScaleFactor( GetScaleFactor() );
//The normals are needed to generate the right colors and if
// not used some of the glyphs are black.
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
pdn->SetInput(tg->GetOutput());
_pdm->SetInput( pdn->GetOutput() );
+#else
+ pdn->SetInputData(tg->GetOutput());
+ _pdm->SetInputData( pdn->GetOutput() );
+#endif
_actor->SetMapper( _pdm );
_actor->GetProperty()->SetOpacity( GetOpacity() );
// tg->SetColorModeToScalars();
tg->Update();
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
pd = tg->GetOutput();
pd->Update();
+#else
+ tg->Update();
+ pd = tg->GetOutput();
+#endif
+
pod = pd->GetPointData();
pod->Update();
int idEigen;
for (iNumPts=0;iNumPts<numPnts;iNumPts++)
{
- normalValue = tensorsArray->GetTuple9(iNumPts);
+ normalValue = tensorsArray->GetTuple9(iNumPts);
sumEigenvalue1 = sqrt (normalValue[0]*normalValue[0] + normalValue[1]*normalValue[1] + normalValue[2]*normalValue[2]);
sumEigenvalue2 = sqrt (normalValue[3]*normalValue[3] + normalValue[4]*normalValue[4] + normalValue[5]*normalValue[5]);
sumEigenvalue3 = sqrt (normalValue[6]*normalValue[6] + normalValue[7]*normalValue[7] + normalValue[8]*normalValue[8]);
VisibilityActor();
-printf("EED vtkTensorsVisu::Process End.\n");
}
//------------------------------------------------------------------------------
void vtkVectorsVisu::Process()
{
-printf("EED vtkVectorsVisu::Process() start\n");
if(_active==true)
{
+#if VTK_MAJOR_VERSION <= 5
_vtkglyph->SetInput( GetDataObject() );
+#else
+ _vtkglyph->SetInputData( GetDataObject() );
+#endif
if(GetTypeForm()==1) // source Arrow
{
+#if VTK_MAJOR_VERSION <= 5
_vtkglyph->SetSource( _vtkarrowsource->GetOutput() );
+#else
+ _vtkglyph->SetSourceData( _vtkarrowsource->GetOutput() );
+#endif
} else { // source Line
+#if VTK_MAJOR_VERSION <= 5
_vtkglyph->SetSource( _vtklinesource->GetOutput() );
+#else
+ _vtkglyph->SetSourceData( _vtklinesource->GetOutput() );
+#endif
}
_vtkglyph->SetScaleModeToScaleByVector();
_vtkglyph->SetScaleFactor( GetScaleFactor() );
_vtkglyph->Update();
+#if VTK_MAJOR_VERSION <= 5
_pdm->SetInput( _vtkglyph->GetOutput());
+#else
+ _pdm->SetInputData( _vtkglyph->GetOutput());
+#endif
vtkPointData *data = _vtkglyph->GetOutput()->GetPointData();
//printf("EED -------------------------------------------\n");
}// if _active
VisibilityActor();
-printf("EED vtkVectorsVisu::Process() end\n");
}