[vtkusers] Wrong documentation or wrong code for vtkAxisActor2D?

Jafari, Kourosh kjafari at rad.hfh.edu
Thu May 26 08:52:05 EDT 2011


Thanks Bill for your prompt response. Here is the error message:


1>------ Build started: Project: Test6, Configuration: Release Win32 ------
1>Compiling...
1>Test6.cxx
1>.\Test6.cxx(1237) : error C2039: 'SetRulerDistance' : is not a member of 'vtkAxisActor2D'
1>        C:\Users\Kourosh\Research\Softwares\Toolkit\VTK\vtk-5.6.0\Rendering\vtkAxisActor2D.h(66) : see declaration of 'vtkAxisActor2D'
1>Build log was saved at "file://c:\Users\Kourosh\Research\Softwares\Toolkit\MyCodes\Test6\Test6.dir\Release\BuildLog.htm"
1>Test6 - 1 error(s), 0 warning(s)
2>------ Skipped Build: Project: ALL_BUILD, Configuration: Release Win32 ------
2>Project not selected to build for this solution configuration 
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 1 skipped ==========


Here is the part of the code that uses vtkAxisActor2D. The last line causes error:

 vtkAxisActor2D *AxialAxisRight = vtkAxisActor2D::New();
 AxialAxisRight->SetPoint1(1,1);
 AxialAxisRight->SetPoint2(1,0);
 AxialAxisRight->SetNumberOfMinorTicks(10);
 AxialAxisRight->GetProperty()->SetColor(0,0,1);
 AxialAxisRight->LabelVisibilityOff();
 AxialAxisRight->PickableOff();
 AxialAxisRight->AxisVisibilityOff();
 AxialAxisRight->SetRulerDistance(1);


Thanks!
Kourosh



________________________________________
From: Bill Lorensen [bill.lorensen at gmail.com]
Sent: Wednesday, May 25, 2011 11:34 PM
To: Jafari, Kourosh
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] Wrong documentation or wrong code for vtkAxisActor2D?

I see it in the current source code. Please show your code snippet
that illustrates the compiler error.

On Wed, May 25, 2011 at 11:18 PM, Jafari, Kourosh <kjafari at rad.hfh.edu> wrote:
> Dear all,
>
> I have posted this question but have not received any response. I highly appreciate it if someone answers this question.
>
> The documentation of vtkAxisActor2D shows that this class has a method called SetRulerDistance which is exactly what I need in my code. In the compilation stage, the method SetRulerDistance is not recognized. I am using vtk-5.6.0 but I think vtk-5.6.1 should have the same problem. Is this method deleted in the newer versions?
>
> Thanks,
> Kourosh
> _______________________________________________
> 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
>


More information about the vtkusers mailing list