[vtkusers] VTK C#: vtkAffineWidget "PlaceWidget" wants a IntPtr instead of the bounds???

mrHiggins metzger at zoller-d.com
Fri Dec 6 02:30:47 EST 2013


Hi

I found that in another example. But it don’t work really for the affinewidget…  but I think the problem here is something else. So marshalling should work.


[cid:imagebc1806.JPG at 7f42e25d.469c8da6]<http://www.zoller-d.com/de/bestzeit>
E. Zoller GmbH & Co. KG
Gottlieb-Daimler-Straße 19
74385 Pleidelsheim

Michael Metzger
Informatik
Tel     +49 7144 8970-164
Fax     +49 7144 8970 70164
E-Mail  Metzger at zoller-d.com<mailto:Metzger at zoller-d.com>

E. Zoller GmbH & Co. KG | Einstell- und Messgeräte | Gottlieb-Daimler-Straße 19 | D-74385 Pleidelsheim
Tel +49 7144 8970-0 | Fax +49 7144 8060807
Komplementär: E. Zoller GmbH | Pleidelsheim | Registergericht Stuttgart HRB 203149
Geschäftsführer: Christoph Zoller | Alexander Zoller | Eberhard Zoller | DE 146132622

Von: nickxtsui [via VTK] [mailto:ml-node+s1045678n5724858h20 at n5.nabble.com]
Gesendet: Donnerstag, 5. Dezember 2013 22:03
An: Michael Metzger
Betreff: Re: VTK C#: vtkAffineWidget "PlaceWidget" wants a IntPtr instead of the bounds???

You can try this function to convert double[] to IntPtr:

public IntPtr DoubleArrayToIntPtr(double[] d)
        {
            IntPtr p = Marshal.AllocCoTaskMem(sizeof(double) * d.Length);
            Marshal.Copy(d, 0, p, d.Length);
            return p;
        }
________________________________
If you reply to this email, your message will be added to the discussion below:
http://vtk.1045678.n5.nabble.com/VTK-C-vtkAffineWidget-PlaceWidget-wants-a-IntPtr-instead-of-the-bounds-tp5724820p5724858.html
To unsubscribe from VTK C#: vtkAffineWidget "PlaceWidget" wants a IntPtr instead of the bounds???, click here<http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5724820&code=bWV0emdlckB6b2xsZXItZC5jb218NTcyNDgyMHwtMTMzODk5ODIzNA==>.
NAML<http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>


imagebc1806.JPG (38K) <http://vtk.1045678.n5.nabble.com/attachment/5724871/0/imagebc1806.JPG>




--
View this message in context: http://vtk.1045678.n5.nabble.com/VTK-C-vtkAffineWidget-PlaceWidget-wants-a-IntPtr-instead-of-the-bounds-tp5724820p5724871.html
Sent from the VTK - Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131205/aedd1d03/attachment.htm>


More information about the vtkusers mailing list