VTK  9.3.1
vtkDGOpenGLRenderer.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
10 #ifndef vtkDGOpenGLRenderer_h
11 #define vtkDGOpenGLRenderer_h
12 
13 #include "vtkCellGridResponder.h" // For API.
15 
16 VTK_ABI_NAMESPACE_BEGIN
17 class vtkCellMetadata;
18 class vtkDGCell;
19 class vtkDGOpenGLRenderers;
20 
21 class VTKRENDERINGCELLGRID_EXPORT vtkDGOpenGLRenderer
22  : public vtkCellGridResponder<vtkOpenGLCellGridRenderRequest>
23 {
24 public:
25  static vtkDGOpenGLRenderer* New();
27 
28  bool Query(vtkOpenGLCellGridRenderRequest* request, vtkCellMetadata* metadata,
29  vtkCellGridResponders* caches) override;
30 
31 protected:
32  vtkDGOpenGLRenderer() = default;
33  ~vtkDGOpenGLRenderer() override = default;
34 
35  bool DrawCells(vtkOpenGLCellGridRenderRequest* request, vtkCellMetadata* metadata);
36  bool ReleaseResources(vtkOpenGLCellGridRenderRequest* request, vtkCellMetadata* metadata);
37 
38  bool DrawShapes(vtkOpenGLCellGridRenderRequest* request, vtkDGCell* metadata, int shape);
39 
40 private:
42  void operator=(const vtkDGOpenGLRenderer&) = delete;
43 };
44 
45 VTK_ABI_NAMESPACE_END
46 #endif // vtkDGOpenGLRenderer_h
47 // VTK-HeaderTest-Exclude: vtkDGOpenGLRenderer.h
Respond to a query on one particular type of cell.
Metadata for a particular type of cell (finite element).
A container that holds objects able to respond to queries specialized for particular vtkCellMetadata ...
Base class for a discontinuous Galerkin cells of all shapes.
Definition: vtkDGCell.h:36
Rendering simple DG cells (i.e., those with a fixed reference shape).
virtual bool Query(QueryClass *query, vtkCellMetadata *cellType, vtkCellGridResponders *caches)=0
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
State used by vtkOpenGLCellGridMapper during rendering.