vtkInformationVector **theInputVector,
vtkInformationVector *theOutputVector)
{
- vtkDataSet *anInput = VISU::GetInput(theInputVector, 0);
- vtkDataSet *anOutput = VISU::GetOutput(theOutputVector);
+ vtkDataSet *anInput = VISU::GetInput( theInputVector, 0 );
+ vtkDataSet *anOutput = VISU::GetOutput( theOutputVector );
- anOutput->CopyStructure(anInput);
+ anOutput->CopyStructure( anInput );
vtkPointData *anInputPointData = anInput->GetPointData();
vtkPointData *anOutputPointData = anOutput->GetPointData();
- anOutputPointData->PassData(anInputPointData);
- if(VISU::IsDataOnPoints(anInput)){
+ anOutputPointData->PassData( anInputPointData );
+ if ( VISU::IsDataOnPoints( anInput ) ) {
int aNbElems = anInput->GetNumberOfPoints();
- if(anInputPointData->GetAttribute(vtkDataSetAttributes::VECTORS))
- ExecuteScalars(aNbElems, myScalarMode, anInputPointData, anOutputPointData);
+ if ( anInputPointData->GetAttribute( vtkDataSetAttributes::VECTORS ) )
+ ExecuteScalars( aNbElems, myScalarMode, anInputPointData, anOutputPointData );
}
vtkCellData *anInputCellData = anInput->GetCellData();
vtkCellData *anOutputCellData = anOutput->GetCellData();
- anOutputCellData->PassData(anInputCellData);
- if(VISU::IsDataOnCells(anInput)){
+ anOutputCellData->PassData( anInputCellData );
+ if ( VISU::IsDataOnCells( anInput ) ) {
int aNbElems = anInput->GetNumberOfCells();
- if(anInputCellData->GetAttribute(vtkDataSetAttributes::VECTORS))
- ExecuteScalars(aNbElems, myScalarMode, anInputCellData, anOutputCellData);
+ if ( anInputCellData->GetAttribute( vtkDataSetAttributes::VECTORS ) )
+ ExecuteScalars( aNbElems, myScalarMode, anInputCellData, anOutputCellData );
}
return 1;