[OpenWalnut-Dev] Display results from module output
Frank Zisko
frank.zisko at gmx.net
Tue Feb 19 12:58:20 CET 2013
Am Dienstag, den 19.02.2013, 11:56 +0100 schrieb Sebastian Eichelbaum:
> Hi
>
> I did not completely understand the problem.
>
> * You have a module which loads some data?
Yes. And an other module wich changes some data.
> * You update the output connector right?
Yes.
> * You do not see anything after this?
Yes.
> * You connect a module like fiberDisplaySimple and you SEE something?
Yes, I see something after I add some other module on the output of my
modules.
Best Regards,
Frank.
>
> Bye
> Sebastian
>
> On Tue, 19 Feb 2013, Frank Zisko wrote:
>
> >
> > Hi,
> >
> > I develop some modules for OW main application. My modules compile
> > without errors. But they work not as I want them to work.
> >
> > For example I have a file reader for fiber data. After reading the file
> > there is no graphical output in the main window. I can connect other
> > modules (for example "Fiber Disply Simple").
> >
> > My file reader for scalar data (anatomical 3d data set) has the same
> > problem, and also other modules, witch produce new output. I can connect
> > with other modules, but my ones does not display any data.
> >
> > I've read code in "Data Module", "Dataset Manipulator" and others. I
> > don't get any solution. What can I do, to get graphical output?
> >
> >
> > Best Regards,
> >
> > Frank
> >
> >
> >
> > ----------------------------------------
> > CODE EXAMPLE
> > ----------------------------------------
> > WMReadFiberA.h
> > [...]
> >
> > private:
> >
> > virtual boost::shared_ptr< WDataSet > readFiberA( std::string
> > fileName );
> >
> > boost::shared_ptr< WDataSet > m_dataSet;
> > boost::shared_ptr< WModuleOutputData < WDataSet > > m_output;
> > boost::shared_ptr< WCondition > m_propCondition;
> > WPropTrigger m_readTriggerProp;
> > WPropFilename m_inputFilename;
> >
> >
> > ----------------------------------------
> > WMReadFiberA.cpp
> > [...]
> >
> > void WMReadFiberA::moduleMain()
> > {
> > m_moduleState.setResetable( true, true );
> > m_moduleState.add( m_propCondition );
> >
> > ready();
> > while( !m_shutdownFlag() )
> > {
> > m_moduleState.wait();
> > if( m_shutdownFlag() )
> > {
> > break;
> > }
> >
> > m_readTriggerProp->set( WPVBaseTypes::PV_TRIGGER_READY, false );
> >
> > // Read file.
> > debugLog() << "Loading data from \"" << m_inputFilename->get().string()
> > << "\".";
> > m_dataSet = readFiberA( m_inputFilename->get().string() );
> >
> >
> > // Update output.
> > m_output->updateData( m_dataSet );
> > //ready();//test if this do something...
> > m_readTriggerProp->set( WPVBaseTypes::PV_TRIGGER_READY, true );
> > }
> > }
> >
> >
> > ----------------------------------------
> >
> >
> >
> > _______________________________________________
> > OpenWalnut-Dev mailing list
> > OpenWalnut-Dev at lists.informatik.uni-leipzig.de
> > http://lists.informatik.uni-leipzig.de/mailman/listinfo/openwalnut-dev
> >
> > Archive: http://lists.informatik.uni-leipzig.de/pipermail/openwalnut-dev/
> >
>
More information about the OpenWalnut-Dev
mailing list