vtkFloatingPointType aMaxRange = aMinRange + aScaleFactor;
vtkFloatingPointType aRange[2] = {aMinRange, aMaxRange};
- if(!VISU::CheckIsSameRange(myGlyph->GetRange(), aRange)){
+ if(!VISU::CheckIsSameRange(myGlyph->GetRange(), aRange))
myGlyph->SetRange( aRange );
- if(!VISU::CheckIsSameValue(myGlyph->GetScaleFactor(), 1.0))
- myGlyph->SetScaleFactor( 1.0 );
- }
+
+ if(!VISU::CheckIsSameValue(myGlyph->GetScaleFactor(), 1.0))
+ myGlyph->SetScaleFactor( 1.0 );
}
else if( GetPointSpriteMapper()->GetPointSpriteMode() == 1 ) // Geometry
{
VISU_GaussPointsPL
::SetIsDeformed( bool theIsDeformed )
{
- if(GetIsDeformed() == theIsDeformed)
- return;
-
if(theIsDeformed){
myWarpVector->SetInput( myPassFilter[0]->GetPolyDataOutput() );
myPassFilter[1]->SetInput(myWarpVector->GetOutput());
VISU_GaussPointsPL
::SetPrimitiveType(int thePrimitiveType)
{
- if( GetPrimitiveType() == thePrimitiveType )
- return;
-
if( thePrimitiveType == VISU_OpenGLPointSpriteMapper::GeomSphere )
{
myGlyph->SetInput( myPassFilter[1]->GetOutput() );
VISU_GaussPointsPL
::GetPrimitiveType()
{
+ if( myPassFilter[2]->GetInput() != myPassFilter[1]->GetOutput() )
+ return VISU_OpenGLPointSpriteMapper::GeomSphere;
+
return GetPointSpriteMapper()->GetPrimitiveType();
}