File: vtkF3DSplatReader.h

package info (click to toggle)
f3d 3.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 23,504 kB
  • sloc: cpp: 99,106; python: 758; sh: 342; xml: 223; java: 101; javascript: 95; makefile: 25
file content (40 lines) | stat: -rw-r--r-- 1,031 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
 * @class   vtkF3DSplatReader
 * @brief   VTK Reader for 3D Gaussians in binary .splat file format
 *
 * Reader for binary .splat files as defined in https://github.com/antimatter15/splat
 * This reader will probably evolve until there is no standard defined yet
 * An interesting discussion can be followed here:
 * https://github.com/mkkellogg/GaussianSplats3D/issues/47
 */

#ifndef vtkF3DSplatReader_h
#define vtkF3DSplatReader_h

#include <vtkPolyDataAlgorithm.h>

class vtkF3DSplatReader : public vtkPolyDataAlgorithm
{
public:
  static vtkF3DSplatReader* New();
  vtkTypeMacro(vtkF3DSplatReader, vtkPolyDataAlgorithm);

  /**
   * Set the file name.
   */
  vtkSetMacro(FileName, std::string);

protected:
  vtkF3DSplatReader();
  ~vtkF3DSplatReader() override = default;

  int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;

private:
  vtkF3DSplatReader(const vtkF3DSplatReader&) = delete;
  void operator=(const vtkF3DSplatReader&) = delete;

  std::string FileName;
};

#endif