void VISU_ScalarBarCtrl::SetMode(const int theMode)
{
myMode=theMode;
- myScalarBarNumber=myScalarBarNumberMax;
- if(!myMode){
- myScalarBarNumber=1;
- }
+ //myScalarBarNumber=myScalarBarNumberMax;
+ //if(!myMode){
+ // myScalarBarNumber=1;
+ //}
}
//==================================================================
// function : GetMode
int i;
//
Update();
- for (i=0; i<myScalarBarNumber; ++i){
+ for (i=0; i<myScalarBarNumberMax; ++i){
theRenderer->AddActor2D(mySBA[i]);
}
}
//==================================================================
void VISU_ScalarBarCtrl::RemoveFromRender(vtkRenderer* theRenderer)
{
- for (int i=0; i<myScalarBarNumber; ++i){
+ for (int i=0; i<myScalarBarNumberMax; ++i){
theRenderer->RemoveActor2D(mySBA[i]);
}
}
protected:
int myMode;
- int myScalarBarNumber;
+ //int myScalarBarNumber;
int myScalarBarNumberMax;
float myDistance, myL, myB, myPosition[2];
float myRangeLocal[2];