[vtkusers] set chart 3D geometry in Java

James Labiak jim at jslengineeringsoftware.com
Wed Dec 10 17:29:40 EST 2014


Thanks for your help! I'm trying it right now.
Jim

> On Dec 9, 2014, at 10:18 PM, David Gobbi <david.gobbi at gmail.com> wrote:
> 
> Quick follow up: vtkGlyph3D would give you a scatter plot, but you asked for a surface plot.  For a surface plot, vtkWarpScalar is probably the best filter to use.  It can take a flat rectangular data (e.g. as produced by vtkPlaneSource) and change the Z coordinates to provide a surface plot.  You might have to dig around to find a good example, though.
> 
>  - David 
> 
>> On Tue, Dec 9, 2014 at 8:10 PM, David Gobbi <david.gobbi at gmail.com> wrote:
>> Hi James,
>> 
>> You can use vtkCubeAxesActor to draw the axes, and use vtkGlyph3D to plot the points.  The vtkGlyph3D filter takes two inputs: its first input contains the (x,y,z) points where you want to draw the points, and its second input (the Source input) is a vtkPolyData that is the shape that you want to draw at each point on the plot, e.g. the output from vtkSphereSource or vtkCubeSource.
>> 
>>  - David
>> 
>>> On Tue, Dec 9, 2014 at 5:40 PM, James Labiak <jim at jslengineeringsoftware.com> wrote:
>>> Unfortunately my project forces me to use Java. What would be an alternative to create surface plots similar to vtkchartxyz without those methods?
>>> Thanks,
>>> Jim
>>> 
>>>> On Dec 9, 2014, at 7:30 PM, David Gobbi <david.gobbi at gmail.com> wrote:
>>>> 
>>>> It is not wrapped in Java, but it is wrapped in Python.  The same is true for all methods that use vtkVector, vtkRect, or vtkColor.
>>>> 
>>>>  - David
>>>> 
>>>>> On Tue, Dec 9, 2014 at 5:17 PM, Sebastien Jourdain <sebastien.jourdain at kitware.com> wrote:
>>>>> That method is probably not wrapped, hence the issue.
>>>>> 
>>>>> Seb
>>>>> 
>>>>>> On Tue, Dec 9, 2014 at 9:46 AM, James Labiak <jim at jslengineeringsoftware.com> wrote:
>>>>>> For vtkChartXYZ, I cannot seem to find the Java equivalent of the SetGeometry method in C like the code below. I must be missing something. Does anyone have any suggestions?
>>>>>> 
>>>>>> vtkNew<vtkChartXYZ> chart;
>>>>>> chart->SetGeometry(vtkRectf(75.0, 20.0, 250, 260));
>>>>>> 
>>>>>> Thanks,
>>>>>> Jim
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141210/1ebcbd28/attachment.html>


More information about the vtkusers mailing list