// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
// SPDX-License-Identifier: BSD-3-Clause
/**
 * @class   vtkStructuredPointTypeUInt8Array
 * @brief   A structured point array of vtkTypeUInt8 used by vtkCartesianGrid subclasses.
 *
 * vtkStructuredPointTypeUInt8Array is structured point array of vtkTypeUInt8 used by vtkCartesianGrid
 * subclasses.
 *
 * see vtkStructuredPointArray, vtkStructuredPointBackend
 *
 * This file is generated by vtkTypeArrays.cmake
 */

#ifndef vtkStructuredPointTypeUInt8Array_h
#define vtkStructuredPointTypeUInt8Array_h

#include "vtkCommonCoreModule.h"      // For export macro
#include "vtkDataArray.h"
#include "vtkStructuredPointArray.h"  // Real Superclass

// Fake the superclass for non-Python wrappers.
// Python can handle the templated superclass; Java and others cannot.
#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
#define vtkDataArray vtkStructuredPointArray<vtkTypeUInt8>
#endif
VTK_ABI_NAMESPACE_BEGIN
class VTKCOMMONCORE_EXPORT vtkStructuredPointTypeUInt8Array : public vtkDataArray
{
public:
  vtkImplicitArrayTypeMacro(vtkStructuredPointTypeUInt8Array, vtkDataArray);
#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
#undef vtkDataArray
#endif

  // This macro expands to the set of method declarations that
  // make up the interface of vtkStructuredPointArray, which is ignored
  // by the wrappers.
#if (defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)) && !defined(__VTK_WRAP_PYTHON__)
  vtkCreateStructuredPointWrappedArrayInterface(vtkTypeUInt8);
#endif

  static vtkStructuredPointTypeUInt8Array* New();
  static vtkStructuredPointTypeUInt8Array* ExtendedNew();
  void PrintSelf(ostream& os, vtkIndent indent) override;

  /**
   * A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
   */
  static vtkStructuredPointTypeUInt8Array* FastDownCast(vtkAbstractArray* source)
  {
    return static_cast<vtkStructuredPointTypeUInt8Array*>(Superclass::FastDownCast(source));
  }

protected:
  vtkStructuredPointTypeUInt8Array();
  ~vtkStructuredPointTypeUInt8Array() override;

private:
  typedef vtkStructuredPointArray<vtkTypeUInt8> RealSuperclass;

  vtkStructuredPointTypeUInt8Array(const vtkStructuredPointTypeUInt8Array&) = delete;
  void operator=(const vtkStructuredPointTypeUInt8Array&) = delete;
};

// Define vtkArrayDownCast implementation:
vtkArrayDownCast_FastCastMacro(vtkStructuredPointTypeUInt8Array);

VTK_ABI_NAMESPACE_END
#endif
// VTK-HeaderTest-Exclude: TYPEMACRO
