[Smtk-developers] Attribute "paths"

Robert Michael O'Bara bob.obara at kitware.com
Mon Jun 8 16:41:38 EDT 2015


Hi David,

You can’t add an item whose name already exists in either the attribute definition OR in the definitions its derived from.

Bob

Robert M. O'Bara, MEng.
Assistant Director of Scientific Computing

Kitware Inc.
28 Corporate Drive
Suite 101
Clifton Park, NY 12065

Phone: (518) 881- 4931




> On Jun 8, 2015, at 4:17 PM, David Thompson <david.thompson at kitware.com> wrote:
> 
> Hi all,
> 
> I don't see a way in SMTK to specify the path to an attribute item; one can ask Attribute::find() to search for a given name but as I understand it, two items are allowed to  share the same name as long as they aren't owned by the same parent item.
> 
> It would be nice to have something like
> 
>   AttributePtr circle;
>   circle->item("construction method/three points/point 1");
>   // or even:
>   circle->item("construction method/three points/point 1", '/');
> 
> Would anyone object to me adding this? I could use it as I develop operator logging.
> 
> 	Thanks,
> 	David
> _______________________________________________
> Smtk-developers mailing list
> Smtk-developers at smtk.org
> http://public.kitware.com/mailman/listinfo/smtk-developers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/smtk-developers/attachments/20150608/a6b86e72/attachment.html>


More information about the Smtk-developers mailing list