[Smtk-developers] Resource and ResourceComponent Types

Haocheng Liu haocheng.liu at kitware.com
Wed Aug 16 09:02:26 EDT 2017


Hi Bob,

On Wed, Aug 16, 2017 at 8:51 AM, Robert Michael O'Bara <
bob.obara at kitware.com> wrote:

> Hi All,
>
> I’ve started modifying the existing Resource class and have a question as
> to how SMTK should return the Resource’s Type (model, mesh, attribute,
> etc..) - The class currently uses an enum which is fast and does enforce
> uniformity  but will require new types of resources to modify the base
> class to add new enum (like VTK) .  We also could just return a string
> which would be more flexible but is a bit slower to compare.
>
> Personally I prefer enum since it's less error-prone. Also model, mesh,
attribute and etc  are foundations of SMTK so it's not likely we would
change them frequently.

The same question pertains to the type of ResourceComponents.
>
> Any comments?
>
> 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 <(518)%20881-4931>
>
>
>
>
>
> _______________________________________________
> Smtk-developers mailing list
> Smtk-developers at smtk.org
> http://public.kitware.com/mailman/listinfo/smtk-developers
>
>


-- 
Best regards
Haocheng

Haocheng LIU
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4421 <(518)%20881-4421>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/smtk-developers/attachments/20170816/6f612bac/attachment.html>


More information about the Smtk-developers mailing list