#include "SUIT_ResourceMgr.h"
+#include "VISU_PipeLineUtils.hxx"
+
#include <vtkImageData.h>
#include <vtkXMLImageDataReader.h>
#include <vtkScalarBarActor.h>
SetIsActiveLocalScalarBar(anOrigin->GetIsActiveLocalScalarBar());
SetIsDispGlobalScalarBar(anOrigin->GetIsDispGlobalScalarBar());
- SetBiColor(anOrigin->GetBiColor());
SetSpacing(anOrigin->GetSpacing());
- SetPrimitiveType(anOrigin->GetPrimitiveType());
- SetClamp(anOrigin->GetClamp());
- SetMinSize(anOrigin->GetMinSize());
- SetMaxSize(anOrigin->GetMaxSize());
- SetGeomSize(anOrigin->GetGeomSize());
-
- SetMagnification(anOrigin->GetMagnification());
- SetMagnificationIncrement(anOrigin->GetMagnificationIncrement());
-
- SetIsDeformed(anOrigin->GetIsDeformed());
- SetScaleFactor(anOrigin->GetScaleFactor());
-
SetFaceLimit(anOrigin->GetFaceLimit());
- SetIsColored(anOrigin->GetIsColored());
SetColor(anOrigin->GetColor());
- SetAlphaThreshold(anOrigin->GetAlphaThreshold());
SetTextures(anOrigin->GetMainTexture(), anOrigin->GetAlphaTexture());
-
- SetResolution(anOrigin->GetResolution());
}
}
}
+//----------------------------------------------------------------------------
+int
+VISU::GaussPoints_i
+::GetFaceLimit()
+{
+ return myFaceLimit;
+}
+
+void
+VISU::GaussPoints_i
+::SetFaceLimit( int theFaceLimit )
+{
+ if( myFaceLimit != theFaceLimit ){
+ myFaceLimit = theFaceLimit;
+ myParamsTime.Modified();
+ }
+}
+
//----------------------------------------------------------------------------
void
VISU::GaussPoints_i
return myGaussPointsPL->GetIsDeformed();
}
+//----------------------------------------------------------------------------
void
VISU::GaussPoints_i
::SetScaleFactor( vtkFloatingPointType theScaleFactor )
return myGaussPointsPL->GetScale();
}
+//----------------------------------------------------------------------------
+QColor
+VISU::GaussPoints_i
+::GetColor()
+{
+ return myColor;
+}
+
+void
+VISU::GaussPoints_i
+::SetColor( const QColor& theColor )
+{
+ myColor = theColor;
+ myParamsTime.Modified();
+}
+
+//----------------------------------------------------------------------------
void
VISU::GaussPoints_i
::SetIsColored( bool theIsColored )
return myGaussPointsPL->GetIsColored();
}
+//----------------------------------------------------------------------------
bool
VISU::GaussPoints_i
::SetMainTexture( const QString& theMainTexture )
return myMainTexture;
}
+//----------------------------------------------------------------------------
bool
VISU::GaussPoints_i
::SetAlphaTexture( const QString& theAlphaTexture )
return myAlphaTexture;
}
+//----------------------------------------------------------------------------
void
VISU::GaussPoints_i
::SetAlphaThreshold( vtkFloatingPointType theAlphaThreshold )
return myGaussPointsPL->GetAlphaThreshold();
}
+//----------------------------------------------------------------------------
void
VISU::GaussPoints_i
::SetResolution( int theResolution )
return myGaussPointsPL->GetResolution();
}
+//----------------------------------------------------------------------------
void
VISU::GaussPoints_i
::SetPrimitiveType(int thePrimitiveType)
return myGaussPointsPL->GetPrimitiveType();
}
+//----------------------------------------------------------------------------
vtkFloatingPointType
VISU::GaussPoints_i
::GetMaximumSupportedSize()
return myGaussPointsPL->GetMaximumSupportedSize();
}
+//----------------------------------------------------------------------------
void
VISU::GaussPoints_i
::SetClamp(vtkFloatingPointType theClamp)
return myGaussPointsPL->GetClamp();
}
+//----------------------------------------------------------------------------
void
VISU::GaussPoints_i
::SetGeomSize( vtkFloatingPointType theGeomSize )
return myGaussPointsPL->GetSize();
}
+//----------------------------------------------------------------------------
void
VISU::GaussPoints_i
::SetMinSize( vtkFloatingPointType theMinSize )
return myGaussPointsPL->GetMinSize();
}
+//----------------------------------------------------------------------------
void
VISU::GaussPoints_i
::SetMaxSize( vtkFloatingPointType theMaxSize )
return myGaussPointsPL->GetMaxSize();
}
+//----------------------------------------------------------------------------
void
VISU::GaussPoints_i
::SetMagnification( vtkFloatingPointType theMagnification )
return myGaussPointsPL->GetMagnification();
}
+//----------------------------------------------------------------------------
void
VISU::GaussPoints_i
::SetMagnificationIncrement( vtkFloatingPointType theIncrement )
VISU::GaussPoints_i
::SetSpacing(const vtkFloatingPointType theSpacing)
{
- mySpacing = theSpacing;
- myParamsTime.Modified();
+ if(!VISU::CheckIsSameValue(mySpacing, theSpacing)){
+ mySpacing = theSpacing;
+ myParamsTime.Modified();
+ }
}
vtkFloatingPointType