myExtractor->SetInput( GetInput2() );
myFieldTransform->SetInput( myExtractor->GetOutput() );
+ //myPSMapper->SetQuadraticPointDistanceAttenuation( 1.0, 20.0, 0.0 );
+ myPSMapper->SetImmediateModeRendering( 1 );
myPSMapper->SetColorModeToMapScalars();
myPSMapper->ScalarVisibilityOn();
myGeomFilter->SetInput( myFieldTransform->GetUnstructuredGridOutput() );
myPSMapper->SetInput( myGeomFilter->GetOutput() );
+
+ //vtkXMLImageDataReader* aReader = vtkXMLImageDataReader::New();
+ //aReader->SetFileName( "/dn06/salome/ouv/SALOME3/TextureAlphaChannel.vti" );
+ //myPSMapper->InitTexture( aReader->GetOutput() );
}
//----------------------------------------------------------------------------
vtkMapper* aMapper = GetMapper();
vtkDataSet* aDataSet = aMapper->GetInput();
- myAverageCelllSize = VISU_DeformedShapePL::GetScaleFactor(aDataSet);
+ myAverageCellSize = VISU_DeformedShapePL::GetScaleFactor(aDataSet);
vtkCellData* aCellData = aDataSet->GetCellData();
myScalarArray = aCellData->GetScalars();
::SetRelativeMinSize(float theRelativeMinSize)
{
myRelativeMinSize = theRelativeMinSize;
+
+ //myPSMapper->SetShaderVariable( "minSize", myAverageCellSize * myRelativeMinSize );
+ //cout << "MIN : " << myAverageCellSize * myRelativeMinSize << endl;
+
Modified();
}
::SetRelativeMaxSize(float theRelativeMaxSize)
{
myRelativeMaxSize = theRelativeMaxSize;
+
+ //myPSMapper->SetShaderVariable( "maxSize", myAverageCellSize * myRelativeMaxSize );
+ //cout << "MAX : " << myAverageCellSize * myRelativeMaxSize << endl;
+
Modified();
}
VISU_GaussPointsPL
::GetPointSize(vtkIdType theID, vtkDataArray* theScalarArray)
{
- float aMaxSize = myAverageCelllSize*myRelativeMaxSize;
- float aMinSize = myAverageCelllSize*myRelativeMinSize;
+ float aMaxSize = myAverageCellSize*myRelativeMaxSize;
+ float aMinSize = myAverageCellSize*myRelativeMinSize;
float aDelta = aMaxSize - aMinSize;
float aVal = theScalarArray->GetTuple1(theID);
VISU_GaussPointsPL
::GetMaxPointSize()
{
- return myAverageCelllSize*myRelativeMaxSize;
+ return myAverageCellSize*myRelativeMaxSize;
}