VTK  9.7.1
vtkOpenGLCellGridMapper.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
8 #ifndef vtkOpenGLCellGridMapper_h
9 #define vtkOpenGLCellGridMapper_h
10 
11 #include "vtkCellGridMapper.h"
12 #include "vtkRenderingCellGridModule.h" // For export macro
13 // #include "vtkCellGridRenderRequest.h" // For RenderQuery ivar
14 #include <memory> // for ivar
15 
16 VTK_ABI_NAMESPACE_BEGIN
17 
19 
20 class VTKRENDERINGCELLGRID_EXPORT vtkOpenGLCellGridMapper : public vtkCellGridMapper
21 {
22 public:
23  static vtkOpenGLCellGridMapper* New();
25  void PrintSelf(ostream& os, vtkIndent indent) override;
26 
27  void Render(vtkRenderer*, vtkActor*) override;
28 
34  void ReleaseGraphicsResources(vtkWindow* window) override;
35 
42  bool GetSupportsSelection() override { return true; }
43 
47  void ShallowCopy(vtkAbstractMapper* m) override;
48 
49 protected:
51  ~vtkOpenGLCellGridMapper() override;
52 
54 
55 private:
57  void operator=(const vtkOpenGLCellGridMapper&) = delete;
58 
59  class vtkInternals;
60  vtkInternals* Internal;
61  // vtkNew<vtkCellGridRenderRequest> RenderQuery;
62 };
63 
64 VTK_ABI_NAMESPACE_END
65 #endif // vtkOpenGLCellGridMapper_h
void ShallowCopy(vtkAbstractMapper *m) override
Make a shallow copy of this mapper.
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:41
static vtkCellGridMapper * New()
abstract specification for renderers
Definition: vtkRenderer.h:63
vtkGenericOpenGLResourceFreeCallback * ResourceCallback
window superclass for vtkRenderWindow
Definition: vtkWindow.h:41
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
void Render(vtkRenderer *, vtkActor *) override
Implemented by sub classes.
map a vtkCellGrid to graphics primitives.
CellGrid mapper using OpenGL to render exotic finite element fields and cells.
abstract class specifies interface to map data
bool GetSupportsSelection() override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
Definition: vtkMapper.h:105