//-----------------------------------------------------------------
void ShowNPoints::Process()
{
- printf("EED ShowNPoints::Process start \n");
if (mwxwidget!=NULL)
{
mwxwidget->SetImage( bbGetInputImage() );
// firsttime=false;
if (onshowwidget==true)
{
+ mwxwidget->SetRenderer( bbGetInputRenderer() );
if ( mwxwidget->GetModelShowNPoints()->GetFirstTime()==false )
{
mwxwidget->DetectCollectionActive();
bbSetOutputlstSelectedIndexs( mwxwidget->GetLstSelectedIndexs() );
bbSetOutputWidgetShowNPoints( (WidgetShowNPoints*)mwxwidget );
} // mwxwidget
- printf("EED ShowNPoints::Process end \n");
}
//-----------------------------------------------------------------
void ShowNPoints::CreateWidget(wxWindow* parent)
{
- printf("EED ShowNPoints::CreateWidget\n");
mwxwidget = new WidgetShowNPointsBox( parent, this, bbGetInputType() );
bbSetOutputWidget( mwxwidget );
}
void ShowNPoints::OnShowWidget()
{
onshowwidget=true;
- printf("EED ShowNPoints::OnShowWidget\n");
- mwxwidget->SetRenderer( bbGetInputRenderer() );
- mwxwidget->SetInitLstPoints( bbGetInputInitLstPointsX() , bbGetInputInitLstPointsY() , bbGetInputInitLstPointsZ() , bbGetInputInitLstLabels() , bbGetInputInitLstIndexs() );
+// mwxwidget->SetInitLstPoints( bbGetInputInitLstPointsX() , bbGetInputInitLstPointsY() , bbGetInputInitLstPointsZ() , bbGetInputInitLstLabels() , bbGetInputInitLstIndexs() );
}
//-----------------------------------------------------------------
//-------------------------------------------------------------
void ViewerNV::Process()
{
- printf("EED \10ViewerNV::Process\n");
vtkImageData* img = bbGetInputIn();
std::vector<int> type = bbGetInputnTypeView();
if(img != NULL && _mwxwidget != NULL)
//-------------------------------------------------------------
void ViewerNV::CreateWidget(wxWindow* parent)
{
- printf("EED \10ViewerNV::CreateWidget\n");
-
bbtkDebugMessageInc("Core",9,"ViewerNV::CreateWidget()"<<std::endl);
_mwxwidget = new bbwxMaracas_N_ViewersWidget( this, parent );
bbtkDebugDecTab("Core",9);
// when window is shown
void ViewerNV::OnShowWidget()
{
- printf("EED \10ViewerNV::OnShowWidget\n");
-
if (bbGetOutputWidget()!=NULL)
{
bbGetOutputWidget()->Layout();