[vtkusers] vtkChartXy problem
Hongsongyang
hongsongyang at 163.com
Fri May 24 02:07:20 EDT 2013
I am very sorry for my misunderstanding. I also have some problem in this
test case.
Although I use the same test condition with you, I could ony show cosine
line(this is different with you).
The attachment is my displaying result.
_____
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf
Of Hongsongyang
Sent: Friday, May 24, 2013 1:58 PM
To: 'liulewes'; vtkusers at vtk.org
Subject: Re: [vtkusers] vtkChartXy problem
I used the same environment as you discribed(win7 x64, vtk5.10).
But I could run this test case successfully.
_____
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf
Of liulewes
Sent: Friday, May 24, 2013 4:53 AM
To: vtkusers at vtk.org
Subject: [vtkusers] vtkChartXy problem
I'm using the vtk example here:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Plotting/LinePlot
and I found out that the cosine line is not shown with the original code.
Further debugging showed that the following line caused the problem:
line->GetPen()->SetLineType(2);
It looked to me that any line type other than the default one will fail to
draw correctly.
Can anyone give a solution?
Environment:
Win7 x64
vtk 5.10
Lewes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130524/0c2c5890/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testresult.png
Type: image/png
Size: 22640 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130524/0c2c5890/attachment.png>
More information about the vtkusers
mailing list