if (firsttime==true)
{
- firsttime=false;
+// firsttime=false;
clivp->SetActive( bbGetInputActive() );
}
-
clivp->GetColorLayerImageViewManager()->SetwxVtkBaseView( 0 , bbGetInputWxVtkBaseView() );
clivp->GetColorLayerImageViewManager()->SetwxVtkBaseView( 1 , bbGetInputWxVtkBaseView1() );
clivp->GetColorLayerImageViewManager()->SetwxVtkBaseView( 2 , bbGetInputWxVtkBaseView2() );
+
std::vector<double> range = bbGetInputlstRangeForColorBar();
clivp->GetColorLayerImageViewManager()->SetRangeForColorBar( range );
bbSetOutputNewImage( clivp->GetColorLayerImageViewManager()->GetImageChangeInformation(0) );
-
-
-// std::string msg;
-// if (bbGetInputTitle()!="")
-// {
-// msg = bbGetInputTitle()+": " + bbGetInputIn();
-// }else{
-// msg = bbGetInputIn();
-// }
-// ((wxStaticText*)bbGetOutputWidget())->SetLabel( bbtk::std2wx( msg ) );
+ if (firsttime==true)
+ {
+ firsttime=false;
+ clivp->ChangeOpacity();
+ }
}
//=====
void GetSpcBase (int id,double *spc);
void GetDimensionOriginalLayer (int id,int *dim);
void GetSpcOriginalLayer (int id,double *spc);
- void SetNewSpacingLayer(double *spc);
+ void SetNewSpacingLayer (double *spc);
private:
}
//----------------------------------------------------------------------------
-void ColorLayerImageViewPanel::onChangeOpacity(wxScrollEvent& event)
+void ColorLayerImageViewPanel::ChangeOpacity()
{
int opacity = _opacity->GetValue();
_colorLayerImageViewManager->onThresholdChangeOpacity(opacity);
RefreshView();
}
+//----------------------------------------------------------------------------
+void ColorLayerImageViewPanel::onChangeOpacity(wxScrollEvent& event)
+{
+ ChangeOpacity();
+// int opacity = _opacity->GetValue();
+// _colorLayerImageViewManager->onThresholdChangeOpacity(opacity);
+// RefreshView();
+}
+
//----------------------------------------------------------------------------
bool ColorLayerImageViewPanel::IsVisible()
ColorLayerImageViewPanel(wxWindow * parent, int min, int max,int opacity, int type);
~ColorLayerImageViewPanel();
void onThresholdStop();
+ void ChangeOpacity();
ColorLayerImageViewManager* GetColorLayerImageViewManager();
//EED01 ColorLayerImageView* GetColorLayerImageView();
//EED01 void SetColorLayerImageView(ColorLayerImageView* colorLayerImageView);