bigdataviewer / bigdataviewer-core

ImgLib2-based viewer for registered SPIM stacks and more
BSD 2-Clause "Simplified" License
33 stars 35 forks source link

Change name of TransformedSource during construction #124

Closed tischi closed 3 years ago

tischi commented 3 years ago

Hi @tpietzsch @axtimwalde @tinevez, (cc @NicoKiaru)

It would be very useful for me if I could change the name of a Source when transforming it.

I would thus like to add constructors to TransformedSource that accept a String name.

And then I would change:

    @Override
    public String getName()
    {
        return source.getName();
    }

to

    @Override
    public String getName()
    {
        if ( name != null ) return name;
        else return source.getName();
    }

Would you accept a PR that does that?

tpietzsch commented 3 years ago

closed via #127