<div>The vtk file formats just store the data, not the rendering properties of that data.</div>
<div> </div>
<div>To store the rendering properties, you want to look at exporters. Exporter's exist to save off the scene so that it can be redisplayed (usually by a different software system like POVRay or RenderMan). Importers do the reverse.</div>
<div> </div>
<div>That said, you can store arbitrary information in the data objects's field data arrays. These arrays will be stored in the vtk file. Later in your program look for and inspect the contents of those arrays and set the rendering properties based on them as you see fit. Similarly you could store an opacity for every cell and/or point, and use that when you make up a lookup table..</div>
<div><br clear="all">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-371-3971 x109<br><br><br></div>
<div class="gmail_quote">On Sat, Sep 26, 2009 at 1:13 AM, Arsham Mesbah <span dir="ltr"><<a href="mailto:arsham@uga.edu">arsham@uga.edu</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">So I asked this question in another E-mail but apparently I didn't state this correctly! <br>I asked about the transparency of an object and how to make it transparent. Well you can change the object transparency by changing its Opacity in vtkProperty class, the issue here is How do you write this to a vtk file. Meaning if I read this info again in another machine or using a different code, I want it to be read with the transparency which was set to it. What data in VTK file represent transparency (if any). <br>
Is there anyway around this? <br clear="all"><font color="#888888"><br>-- <br>Sincerely Yours,<br>Arsham Mesbah<br>University of Georgia<br>Department of Computer Science<br>415 Graduate Studies Research Center<br>Athens, GA 30602<br>
Web: <a href="http://cs.uga.edu/~ars" target="_blank">cs.uga.edu/~ars</a><br></font><br>_______________________________________________<br>Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
<br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br><br></blockquote></div><br>