Hi Fabian,<div><br></div><div>in order to render objects in igstk::View you need a "spatial object" and a "spatial representation", where the first encapsulates geometric information (e.g. vertices,...)</div>
<div>and the latter controls the color, opacity, etc. </div><div><br></div><div>You can use igstk::CTImageSpatialObject as the "spatial object".</div><div>For the "spatial representation" you have to implement a new class which derives from "igstk::ObjectRepresentation".</div>
<div>I think you have already the vtk code for your task. This code has to be incorporated into this new class. You can take a look at igstk::ImageSpatialObjectRepresentation and take the parts which deals with setting the spatial object and other stuff related to igstk's framework.</div>
<div><br></div><div>After that you read in CT data and get an instance of CTImageSpatialObject, which you pass to your new generated representation class. Then you add the representation to the view and voila. </div><div>
<br></div><div>Best,</div><div>Ozgur</div><br><div class="gmail_quote">2012/8/6 Fabian Torres <span dir="ltr"><<a href="mailto:fabian.trobles@gmail.com" target="_blank">fabian.trobles@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi I would like to know if there is a way to display a vtkVolume or a vtkImageData in a igstkView?<div><br></div><div>I have a volume and its data created with vtk with its colormap and opacity functions and I want to display it on an igstk View. </div>
<div>Is there a way I can perform these? Do I have to convert the vtkVolume or the vtkImageData into an igstkObject?</div><div><br></div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div><div><br></div>-- <br>
Fabián Torres Robles<br>Maestria en Ciencias en Ingeniería Electrónica<br>
Ingeniería en Sistemas Electrónicos<br>tel. 58081280, 0445534661338<br>e-mail <a href="mailto:fabian.trobles@gmail.com" target="_blank">fabian.trobles@gmail.com</a>, <a href="mailto:dae.wong@gmail.com" target="_blank">dae.wong@gmail.com</a> <div style="line-height:130%;text-align:left;font-size:10px;overflow:hidden;margin-left:0px;word-wrap:break-word;margin-top:0px;padding:0px">
</div><div style="line-height:130%;text-align:left;font-size:10px;overflow:hidden;margin-left:0px;word-wrap:break-word;margin-top:0px;padding:0px"></div><br>
</div>
</font></span><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>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>
*********************************************************************<br>Dr. Dipl.-Ing. Özgür Güler, Bakk. techn. PhD<br>Research Assistant<br>4D-Visualization Laboratory<br>Univ. ENT Clinic<br>Innsbruck Medical University<br>
Anichstr. 35, A-6020 Innsbruck, Austria<br><br>tel.: +43 512 504 23428, fax.: +43 512 504 25231<br><br><a href="http://voxelmaster.eu" target="_blank">voxelmaster.eu</a><br><a href="http://www.gueler.at" target="_blank">www.gueler.at</a><br>
*********************************************************************<br><br><br>