Hi Aida,
When a processor finishes the processing and calls UpdateOutput(),
the output DataEntity will automatically be added to the Data Tree and to
the active view. This default behavior is done by the class
ProcessorOutputObserver.
If you need to modify this default behavior, one possibility is to
avoid using the default Processor Observer and use your custom observer
function in your panel widget. In you function, you can easily change the
active view to the view0 and render the output data.
1. Avoid using the default Processor Observer: Add this line in your
OnInit() function:
GetProcessorOutputObserver( 0 )->SetEnable( false );
2. Add your custom observer function: Overwrite the base class
virtual function:
virtual void OnModifiedOutput( int num );
3. Change the active view:
Core::Widgets::RenderWindowContainer* workingArea;
workingArea =
dynamic_cast<Core::Widgets::RenderWindowContainer*>
(GetPluginTab()->GetCurrentWorkingArea () );
//Before changing the active view, be sure that the index is
below the number of views ( GetNumberOfWindows() ).
If (workingArea && workingArea ->GetNumberOfWindows() > 0 )
{
workingArea->SetActiveWindow(0);
}
4. Publish your output:
Core::DataTreeHelper::PublishOutput(
m_Processor->GetOutputDataEntityHolder( 0 ), GetRenderingTree() );
Best regards,
Xavi
From: Aida Ninyerola [mailto:[email protected]]
Sent: lunes, 07 de mayo de 2012 13:16
To: Xavier Planes
Cc: [email protected]
Subject: Re: [Gimias-developers] configurating an standard working area
Hi again,
I have a new question, this time related to the fact of how can I show
different images into different views.
In my Working Area there are two views (view0 and view1). I want some images
to be shown in view0 and some others in view1.
When I do the UpdateOutput it always shows the image into view1 as it's the
one that's selected. I would like to know how to change this in order to
show some of the images into view0.
I hope I've explained myself.
Thank you very much,
Aida
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gimias-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gimias-developers