Prabhu Ramachandran | 30 Nov 17:45

Re: [M2] New source names?

Gael Varoquaux wrote:
> On Sat, Nov 15, 2008 at 04:59:55PM +0530, Prabhu Ramachandran wrote:
>> A student, Suyog, has created two new sources a Polydata source and an 
>> image data source.  These let you create any standard poly data or image 
>> data.  For example, the ArrowSource, SphereSource, etc. are all wrapped, 
>> here is the full list.
[...]
> 
> Hey Prabhu, sorry for giving no feedback. I am struggling and thus I read
> my mail too quick, to try and make some time for hacking.
> 
> Honestly, I am not sure I understand what these sources are. So I am not
> sure in this state I can give useful comments. Maybe you should check
> these in with temporary names, and we can comment on the names.

Finally got around to checkin this.  Thanks to Suyog for the code.

To test it update to [22586] and try this:

  mayavi2 -d VTKPolyData -m Surface

  mayavi2 -d VTKPolyData -s "source = 'earth'" -m Surface

Experiment with the different sources that are wrapped.

  mayavi2 -d VTKImageData -m Surface

You could also use -m ImageActor but that doesn't work well with the 
mandelbrot source.

(Continue reading)

Gael Varoquaux | 1 Dec 00:25
Favicon

Re: [M2] New source names?

On Sun, Nov 30, 2008 at 10:15:04PM +0530, Prabhu Ramachandran wrote:
> Gael Varoquaux wrote:
> > On Sat, Nov 15, 2008 at 04:59:55PM +0530, Prabhu Ramachandran wrote:
> >> A student, Suyog, has created two new sources a Polydata source and an 
> >> image data source.  These let you create any standard poly data or image 
> >> data.  For example, the ArrowSource, SphereSource, etc. are all wrapped, 
> >> here is the full list.
> [...]

> > Hey Prabhu, sorry for giving no feedback. I am struggling and thus I read
> > my mail too quick, to try and make some time for hacking.

> > Honestly, I am not sure I understand what these sources are. So I am not
> > sure in this state I can give useful comments. Maybe you should check
> > these in with temporary names, and we can comment on the names.

> Finally got around to checkin this.  Thanks to Suyog for the code.

> To test it update to [22586] and try this:

>   mayavi2 -d VTKPolyData -m Surface

>   mayavi2 -d VTKPolyData -s "source = 'earth'" -m Surface

> Experiment with the different sources that are wrapped.

>   mayavi2 -d VTKImageData -m Surface

Very nice. Some of these will also be very useful for examples, eg in the
docs.
(Continue reading)

Re: [M2] New source names?

Gael Varoquaux wrote:
> You were asking for some feedback on the names. First of all, I am not
> sure these sources need to be prefixed with 'VTK': 'ImageDataSource', or,
> if you are worried the name is too generic, maybe 'ImageExamples', or
> 'StandardImage', or 'ImageFactory'. As for the polydata source, I am
> quite afraid that it may be hard for the non-specialist to figure out
> what 'PolyData' is about. I would almost like to call 'StandardWidget',
> or better, 'WidgetFactory', to reflect the 'StandardImage'. So we would
> now have 'ParametricSurface', 'WidgetFactory' and 'ImageFactory'.

Thanks for the feedbakc. How about ImageFactory and SurfaceFactory?  I 
don't quite like widget factory since widgets mean something specific in 
VTK.

cheers,
prabhu
Gael Varoquaux | 1 Dec 10:35
Favicon

Re: [M2] New source names?

On Mon, Dec 01, 2008 at 03:04:25PM +0530, Prabhu Ramachandran wrote:
> Gael Varoquaux wrote:
> > You were asking for some feedback on the names. First of all, I am not
> > sure these sources need to be prefixed with 'VTK': 'ImageDataSource', or,
> > if you are worried the name is too generic, maybe 'ImageExamples', or
> > 'StandardImage', or 'ImageFactory'. As for the polydata source, I am
> > quite afraid that it may be hard for the non-specialist to figure out
> > what 'PolyData' is about. I would almost like to call 'StandardWidget',
> > or better, 'WidgetFactory', to reflect the 'StandardImage'. So we would
> > now have 'ParametricSurface', 'WidgetFactory' and 'ImageFactory'.

> Thanks for the feedbakc. How about ImageFactory and SurfaceFactory?  I 
> don't quite like widget factory since widgets mean something specific in 
> VTK.

How about 'ObjectFactory', then? Or 'GlyphFactory'. I actually like
'GlyphFactory' best. 'SurfaceFactory' is quite OK, thought,
IMHO.

Gaël

Re: [M2] New source names?

Gael Varoquaux wrote:
> How about 'ObjectFactory', then? Or 'GlyphFactory'. I actually like
> 'GlyphFactory' best. 'SurfaceFactory' is quite OK, thought,
> IMHO.

GlyphFactory is seems a little too vague.  SurfaceFactory seems a little 
too generic.  Or SimpleSurface/SimpleGlyph or ShapeFactory?  This is a pain.

prabhu
Hans Meine | 1 Dec 19:59
Favicon

Re: [M2] New source names?

On Monday 01 December 2008 19:25:56 Prabhu Ramachandran wrote:
> Gael Varoquaux wrote:
> > How about 'ObjectFactory', then? Or 'GlyphFactory'. I actually like
> > 'GlyphFactory' best. 'SurfaceFactory' is quite OK, thought,
> > IMHO.
>
> GlyphFactory is seems a little too vague.  SurfaceFactory seems a little
> too generic.  Or SimpleSurface/SimpleGlyph or ShapeFactory?  This is a
> pain.

Technically, I like GlyphFactory and maybe SurfaceFactory.  Thinking about a 
MayaVi user's POV, I would suggest something like "Built-in Surfaces" and 
"Built-in Images"; maybe that (mangled) could lead to class names as well.

Hope the 2 cents help,
  Hans
Gael Varoquaux | 1 Dec 21:04
Favicon

Re: [M2] New source names?

On Mon, Dec 01, 2008 at 07:59:02PM +0100, Hans Meine wrote:
> On Monday 01 December 2008 19:25:56 Prabhu Ramachandran wrote:
> > Gael Varoquaux wrote:
> > > How about 'ObjectFactory', then? Or 'GlyphFactory'. I actually like
> > > 'GlyphFactory' best. 'SurfaceFactory' is quite OK, thought,
> > > IMHO.

> > GlyphFactory is seems a little too vague.  SurfaceFactory seems a little
> > too generic.  Or SimpleSurface/SimpleGlyph or ShapeFactory?  This is a
> > pain.

> Technically, I like GlyphFactory and maybe SurfaceFactory.  Thinking about a 
> MayaVi user's POV, I would suggest something like "Built-in Surfaces" and 
> "Built-in Images"; maybe that (mangled) could lead to class names as well.

Yeah, "BuiltInImage" and "BuiltInSurface" seems nice (no plural, to be
consistent with "ParametricSurface".

> Hope the 2 cents help,

They sure do. We absolutely need user feedback on this.

Gaël

Re: [M2] New source names?

Gael Varoquaux wrote:
>>> GlyphFactory is seems a little too vague.  SurfaceFactory seems a little
>>> too generic.  Or SimpleSurface/SimpleGlyph or ShapeFactory?  This is a
>>> pain.
> 
>> Technically, I like GlyphFactory and maybe SurfaceFactory.  Thinking about a 
>> MayaVi user's POV, I would suggest something like "Built-in Surfaces" and 
>> "Built-in Images"; maybe that (mangled) could lead to class names as well.
> 
> Yeah, "BuiltInImage" and "BuiltInSurface" seems nice (no plural, to be
> consistent with "ParametricSurface".

I'm going for BuiltinImage and BuiltinSurface (Python's builtin is 
called __builtin__ and not __built_in__) then and will commit this shortly.

Thanks for the feedback.

cheers,
prabhu
Gael Varoquaux | 2 Dec 22:04
Favicon

Re: [M2] New source names?

On Wed, Dec 03, 2008 at 12:45:31AM +0530, Prabhu Ramachandran wrote:
> I'm going for BuiltinImage and BuiltinSurface (Python's builtin is 
> called __builtin__ and not __built_in__) then and will commit this shortly.

Great. I like those names. I think they are quite explicite.

Gaël

Gmane