[Insight-users] using reader as global variable
David Doria
daviddoria at gmail.com
Sun May 29 10:09:10 EDT 2011
On Sun, May 29, 2011 at 10:00 AM, john smith <mkitkinsightuser at gmail.com>wrote:
> How I could do this? Could you give me an example?
class MainWindow
{
private:
ReaderType::Pointer reader;
};
Then you could initialize it in the constructor:
MainWindow::MainWindow()
{
reader = ReaderType::New();
}
and use it in your function:
void MainWindow::push_button_File()
{
reader->SetFileName("test.png");
}
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110529/4efd41e3/attachment.htm>
More information about the Insight-users
mailing list