[vtkusers] how to use MouseInteractorStyle in the qvtkWidget ???

David Doria daviddoria at gmail.com
Sun Sep 16 10:16:28 EDT 2012


On Sun, Sep 16, 2012 at 10:10 AM, Tasnim <hanene-jeder at hotmail.fr> wrote:
>
> David Doria-2-3 wrote
>>
>> On Sun, Sep 16, 2012 at 7:35 AM, Tasnim &lt;hanene-jeder@&gt; wrote:
>>
>> As usual, a minimal example is the key to getting a response:
>> http://www.vtk.org/Wiki/VTK/MinimalExample
>>
>>
> ok, I have a QCombobox which contains a list of files names. when i choose
> one of these names, i will display the my mesh in the qvtkWidget. this is
my
> simpleviewUI.cxx class :

This code is not self
contained<http://www.vtk.org/Wiki/VTK/MinimalExample#Self-contained>
(it
relies on a PLY file/reader) and the
formatting<http://www.vtk.org/Wiki/VTK/MinimalExample#Formatting.2Findention:>is
wacky. I am also confused why you are defining the
MouseInteractorStyle
inside of a function?

void SimpleView:: comboitem(QString a)
{
class MouseInteractorStyle : public vtkInteractorStyleTrackballCamera
{
...

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120916/257e6c60/attachment.htm>


More information about the vtkusers mailing list