[vtkusers] VtkProp

Ken Martin ken.martin at kitware.com
Tue Feb 27 16:01:55 EST 2018


You can use Set/GetPropertyKeys as

 //@{
  /**
   * Set/Get property keys. Property keys can be digest by some rendering
   * passes.
   * For instance, the user may mark a prop as a shadow caster for a
   * shadow mapping render pass. Keys are documented in render pass classes.
   * Initial value is NULL.
   */
  vtkGetObjectMacro(PropertyKeys,vtkInformation);
  virtual void SetPropertyKeys(vtkInformation *keys);
  //@}

In that you can stuff whatever information objects you want. It is a bit
odd the first time you work with information objects but that is how we
currently do it.




On Tue, Feb 27, 2018 at 1:49 PM, Doug Hoppes <dhoppes at mbfbioscience.com>
wrote:

> Hey all,
>
>
>
>                 Is there a way to store user-defined information in the
> vtkprop?  In my program, I want to have an attribute that I need to store
> with the vtkprop.
>
>
>
> Dougie
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers
>
>


-- 
Ken Martin PhD
Distinguished Engineer
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065

This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message.  Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180227/198d6206/attachment.html>


More information about the vtkusers mailing list