[vtkusers] C++ to Java mapping guide?

Graham Seed gmseed at gmail.com
Tue Jul 2 04:26:36 EDT 2013


Hi

Working through the KMeansClustering C++ example, it is difficult to
convert the code from C++ to Java.

Another problem I found is the line:

vtkVariant v = kMeansStatistics->GetOutput()->GetValue(r,kMeansStatistics->GetOutput()->GetNumberOfColumns()
- 1);



In Java the GetOutput() method returns an object of type vtkTable,
which does not support the GetValue() method?


It does support the GetRow() method which returns an object of type
vtkVariantArray but can't see an easy way to get values out of the
variant array.


I must say that trying to get these simple examples is proving very
difficult, and can only imagine how difficult it must be for real life
examples.


Thanks.


-- 
Graham
gmseed at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130702/dbdee92a/attachment.htm>


More information about the vtkusers mailing list