[vtkusers] 'InsertNextTupleValue': is not a member of 'vtkFloatArray'
Allie Vacanti
allison.vacanti at kitware.com
Tue Oct 16 13:48:56 EDT 2018
Use InsertNextTypedTuple instead. It does the same thing with a new name.
HTH,
Allie
On Mon, Oct 15, 2018 at 5:34 AM Idayat Salako <isalako1 at sheffield.ac.uk>
wrote:
> Hi,
> My OS: Windows.
> I am building a project /app in visual studio 2017 using VTK 8.1. However
> I get the error below
>
> 1>c:\users\idayat\desktop\2017_phd\niftysim-253\source\tledgenericvtkmeshsource.tpp(76):
> error C2039: 'InsertNextTupleValue': is not a member of 'vtkFloatArray'
>
> the vtkFloatArray.h code is given below and does not include any such
> member. Found ***THIS*** but I am not sure if replacing the header file
> will an older version will cause a problem.
>
> ***THIS***:
> https://www.vtk.org/doc/release/6.0/html/vtkFloatArray_8h_source.html
>
> vtkFloatArray.h code
>
> /*========================================================================*/
> /**
> * @class vtkFloatArray
> * @brief dynamic, self-adjusting array of float
> *
> * vtkFloatArray is an array of values of type float. It provides
> * methods for insertion and retrieval of values and will
> * automatically resize itself to hold new data.
> */
>
> #ifndef vtkFloatArray_h
> #define vtkFloatArray_h
>
> #include "vtkCommonCoreModule.h" // For export macro
> #include "vtkDataArray.h"
> #include "vtkAOSDataArrayTemplate.h" // Real Superclass
>
> // Fake the superclass for the wrappers.
> #ifndef __VTK_WRAP__
> #define vtkDataArray vtkAOSDataArrayTemplate<float>
> #endif
> class VTKCOMMONCORE_EXPORT vtkFloatArray : public vtkDataArray
> {
> public:
> vtkTypeMacro(vtkFloatArray, vtkDataArray)
> #ifndef __VTK_WRAP__
> #undef vtkDataArray
> #endif
>
> static vtkFloatArray* New();
> void PrintSelf(ostream& os, vtkIndent indent) override;
>
> // NEW CODE IN VTK 8.1. COMPARED TO ***THIS***
> // This macro expands to the set of method declarations that
> // make up the interface of vtkAOSDataArrayTemplate, which is ignored
> // by the wrappers.
> #if defined(__VTK_WRAP__) || defined (__WRAP_GCCXML__)
> vtkCreateWrappedArrayInterface(float);
> #endif
>
> /**
> * A faster alternative to SafeDownCast for downcasting
> vtkAbstractArrays.
> */
>
> static vtkFloatArray* FastDownCast(vtkAbstractArray *source)
> {
> return static_cast<vtkFloatArray*>(Superclass::FastDownCast(source));
> }
>
> // END OF NEW CODE IN VTK 8.1. COMPARED TO ***THIS***
>
> /**
> * Get the minimum data value in its native type.
> */
> static float GetDataTypeValueMin() { return VTK_FLOAT_MIN; }
>
> /**
> * Get the maximum data value in its native type.
> */
> static float GetDataTypeValueMax() { return VTK_FLOAT_MAX; }
>
>
> protected:
> vtkFloatArray();
> ~vtkFloatArray() override;
>
> private:
>
> typedef vtkAOSDataArrayTemplate<float> RealSuperclass;
>
> vtkFloatArray(const vtkFloatArray&) = delete;
> void operator=(const vtkFloatArray&) = delete;
> };
>
> // Define vtkArrayDownCast implementation:
> vtkArrayDownCast_FastCastMacro(vtkFloatArray)
>
> #endif
>
> Thank you
> Idayat Salako
>
> ***Whoever wakes up in the morning and is safe in his home, in good health
> and has enough provision for the day, it is as if he has all the good
> things of this world [HadithTirmidhi 2346]***
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20181016/c0fd42f9/attachment.html>
More information about the vtkusers
mailing list