[vtkusers] 'InsertNextTupleValue': is not a member of 'vtkFloatArray'

Idayat Salako isalako1 at sheffield.ac.uk
Mon Oct 15 05:33:55 EDT 2018


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]***
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20181015/f597a67a/attachment.html>


More information about the vtkusers mailing list