VISU_GaussPointsPL
::VISU_GaussPointsPL():
myRelativeMinSize(0.03),
- myRelativeMaxSize(0.30)
+ myRelativeMaxSize(0.30),
+ myMagnificationIncrement(0.1)
{
myPSMapper = VISU_OpenGLPointSpriteMapper::New();
//myPSMapper->DebugOn();
return myMapperTable->GetBicolor();
}
+//----------------------------------------------------------------------------
+void
+VISU_GaussPointsPL
+::SetClamp(float theClamp)
+{
+ cout << "VISU_GaussPointsPL::SetClamp " << theClamp << endl;;
+ myPSMapper->SetPointSpriteClamp( theClamp );
+
+ Modified();
+}
+
+//----------------------------------------------------------------------------
+float
+VISU_GaussPointsPL
+::GetClamp()
+{
+ return 200.0;
+}
+
+//----------------------------------------------------------------------------
+float
+VISU_GaussPointsPL
+::GetMaximumSupportedSize()
+{
+ return myPSMapper->GetMaximumSupportedSize();
+}
+
//----------------------------------------------------------------------------
void
VISU_GaussPointsPL
::SetRelativeMinSize(float theRelativeMinSize)
{
myRelativeMinSize = theRelativeMinSize;
-
- //myPSMapper->SetShaderVariable( "minSize", myAverageCellSize * myRelativeMinSize );
- //cout << "MIN : " << myAverageCellSize * myRelativeMinSize << endl;
+ /*
+ cout << "VISU_GaussPointsPL::SetRelativeMinSize ";
+ cout << myAverageCellSize << " * ";
+ cout << myRelativeMinSize << " * 1000.0 = ";
+ cout << 1000.0 * myAverageCellSize * myRelativeMinSize << endl;
+ */
+ myPSMapper->SetPointSpriteMinSize( 1000.0 * myAverageCellSize * myRelativeMinSize );
Modified();
}
::SetRelativeMaxSize(float theRelativeMaxSize)
{
myRelativeMaxSize = theRelativeMaxSize;
+ /*
+ cout << "VISU_GaussPointsPL::SetRelativeMaxSize ";
+ cout << myAverageCellSize << " * ";
+ cout << myRelativeMaxSize << " * 1000.0 = ";
+ cout << 1000.0 * myAverageCellSize * myRelativeMaxSize << endl;
+ */
+ myPSMapper->SetPointSpriteMaxSize( 1000.0 * myAverageCellSize * myRelativeMaxSize );
+
+ Modified();
+}
- //myPSMapper->SetShaderVariable( "maxSize", myAverageCellSize * myRelativeMaxSize );
- //cout << "MAX : " << myAverageCellSize * myRelativeMaxSize << endl;
+//----------------------------------------------------------------------------
+void
+VISU_GaussPointsPL
+::SetMagnification(float theMagnification)
+{
+ //cout << "VISU_GaussPointsPL::SetMagnification " << theMagnification << endl;;
+ myPSMapper->SetPointSpriteMagnification( theMagnification );
Modified();
}
+//----------------------------------------------------------------------------
+float
+VISU_GaussPointsPL
+::GetMagnification()
+{
+ return myPSMapper->GetPointSpriteMagnification();
+}
+//----------------------------------------------------------------------------
+void
+VISU_GaussPointsPL
+::SetMagnificationIncrement(float theIncrement)
+{
+ myMagnificationIncrement = theIncrement;
+}
+//----------------------------------------------------------------------------
+float
+VISU_GaussPointsPL
+::GetMagnificationIncrement()
+{
+ return myMagnificationIncrement;
+}
+//----------------------------------------------------------------------------
+void
+VISU_GaussPointsPL
+::ChangeMagnification( bool up )
+{
+ float anIncrement = up ? myMagnificationIncrement : -myMagnificationIncrement;
+ SetMagnification( GetMagnification() + anIncrement );
+}
//----------------------------------------------------------------------------
float
VISU_GaussPointsPL