[vtkusers] FW: vtkChartXy problem

liulewes lewes_infor at hotmail.com
Fri May 24 14:45:09 EDT 2013





My fault, cosine is shown but sine is not. Probably the dotted lines are not handled correctly in win7 x64?
I tried the same code in xp and it worked like on the webpage. Anyone is following the issue?

From: afboucher at gmail.com
Date: Fri, 24 May 2013 07:57:24 -0700
Subject: Re: [vtkusers] vtkChartXy problem
To: hongsongyang at 163.com
CC: lewes_infor at hotmail.com; vtkusers at vtk.org

I have the issue in my code.  This does not work:
    vtkPlot* plot = chart_->AddPlot(vtkChart::LINE);    plot->GetPen()->SetLineType(vtkPen::DOT_LINE );



Regards,Alex

On Thu, May 23, 2013 at 11:07 PM, Hongsongyang <hongsongyang at 163.com> wrote:









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





_______________________________________________

Powered by www.kitware.com



Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html



Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ



Follow this link to subscribe/unsubscribe:

http://www.vtk.org/mailman/listinfo/vtkusers



 		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130524/7373a345/attachment.htm>


More information about the vtkusers mailing list