[vtkusers] Visual Studio 2003 not expanding vtkSet/Get macros

David Cole david.cole at kitware.com
Mon Aug 14 09:04:46 EDT 2006


SetResolution should have an upper case "S"

Mattia "Raibaz" Tommasone wrote:

> I searched the whole list archives and couldn't find any answer, but i
> still can't figure why my VS .NET 2003 considers
>
> class VTK_GRAPHICS_EXPORT vtkConeSource : public vtkPolyDataAlgorithm
> {
> public:
>    // Description:
>  // Set the height of the cone. This is the height along the cone in
>  // its specified direction.
>  vtkSetClampMacro(Height,double,0.0,VTK_DOUBLE_MAX)
>  vtkGetMacro(Height,double);
>
> and all the others vtkSet/GetMacros as "normal" methods returning int
> and doesn't understand it has to expand the macros, so that when i
> declare a vtkConeSource i see vtkSetClampMacro as a member method but i
> don't see setHeight and the likes, thus
>
> vtkConeSource* source = vtkConeSource::New();
> source->setResolution(10); //VS complains about not being able to find
> setResolution among vtkConeSource's members
>
> What am i missing?
>
> Mattia Tommasone
>
> _______________________________________________
> This is the private VTK discussion list. Please keep messages 
> on-topic. Check the 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