18 #ifndef vtkOpenGLCellGridRenderRequest_h
19 #define vtkOpenGLCellGridRenderRequest_h
21 #include "vtkRenderingCellGridModule.h"
25 #include <unordered_map>
27 VTK_ABI_NAMESPACE_BEGIN
61 SURFACE_WITH_EDGES = EDGES | FACES,
62 ALL = VERTICES | EDGES | FACES | VOLUMES
82 virtual void SetActor(
vtkActor* actor);
98 virtual void SetWindow(
vtkWindow* window);
108 vtkGetMacro(ShapesToDraw,
char);
109 vtkSetClampMacro(ShapesToDraw,
char, 1, 9);
124 vtkGetMacro(IsReleasingResources,
bool);
125 vtkSetMacro(IsReleasingResources,
bool);
131 template <
typename StateType>
134 auto it = this->State.find(cellType);
135 if (it == this->State.end())
137 it = this->State.insert(std::make_pair(cellType, std::unique_ptr<StateBase>(
new StateType)))
140 return static_cast<StateType*
>(it->second.get());
151 bool IsReleasingResources{
false };
152 char ShapesToDraw{ RenderableGeometry::ALL };
153 std::unordered_map<vtkStringToken, std::unique_ptr<StateBase>>
State;
160 VTK_ABI_NAMESPACE_END
161 #endif // vtkOpenGLCellGridRenderRequest_h
virtual void Finalize()
Override this if your query-result state requires finalization.
Perform an operation on cells in a vtkCellMetadata instance.
represents an object (geometry & properties) in a rendered scene
RenderableGeometry
An enumeration of which shapes to render.
abstract specification for renderers
std::unordered_map< vtkStringToken, std::unique_ptr< StateBase > > State
window superclass for vtkRenderWindow
a simple class to control print indentation
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Represent a string by its integer hash.
CellGrid mapper using OpenGL to render exotic finite element fields and cells.
StateType * GetState(vtkStringToken cellType)
Return a state object of the given type.
virtual void Initialize()
Override this if your query-result state requires initialization.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
An empty base class that responders should inherit to store state using GetState().
State used by vtkOpenGLCellGridMapper during rendering.