VTK  9.3.20240919
vtkCellGridMapper.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
22#ifndef vtkCellGridMapper_h
23#define vtkCellGridMapper_h
24
25#include "vtkMapper.h"
26#include "vtkRenderingCoreModule.h" // For export macro.
27#include "vtkUnsignedCharArray.h" // For API.
28
29VTK_ABI_NAMESPACE_BEGIN
30class vtkCellGrid;
32class vtkDataObject;
33class vtkRenderer;
34
35class VTKRENDERINGCORE_EXPORT vtkCellGridMapper : public vtkMapper
36{
37public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
42 vtkSetMacro(VisualizePCoords, int);
43 vtkGetMacro(VisualizePCoords, int);
44
45 vtkSetMacro(VisualizeBasisFunction, int);
46 vtkGetMacro(VisualizeBasisFunction, int);
47
51 void Render(vtkRenderer*, vtkActor*) override {}
52
54
60
62
65 void Update(int port) override;
66 void Update() override;
67 vtkTypeBool Update(int port, vtkInformationVector* requests) override;
68 vtkTypeBool Update(vtkInformation* requests) override;
70
78 void PrepareColormap(vtkScalarsToColors* cmap = nullptr);
79
84 double* GetBounds() VTK_SIZEHINT(6) override;
85 void GetBounds(double bounds[6]) override { this->Superclass::GetBounds(bounds); }
86
88
89protected:
91 ~vtkCellGridMapper() override = default;
92
95
98
101
102 int VisualizePCoords = -1;
103 int VisualizeBasisFunction = -1;
104
105private:
106 vtkCellGridMapper(const vtkCellGridMapper&) = delete;
107 void operator=(const vtkCellGridMapper&) = delete;
108};
109
110VTK_ABI_NAMESPACE_END
111#endif // vtkCellGridMapper_h
virtual double * GetBounds()=0
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:151
A function defined over the physical domain of a vtkCellGrid.
map a vtkCellGrid to graphics primitives.
~vtkCellGridMapper() override=default
virtual vtkCellAttribute * GetColorAttribute(vtkCellGrid *input) const
Return the attribute to color the input with.
vtkTypeBool Update(int port, vtkInformationVector *requests) override
Bring this algorithm's outputs up-to-date.
void Update(int port) override
Bring this algorithm's outputs up-to-date.
void Update() override
Bring this algorithm's outputs up-to-date.
static vtkCellGridMapper * New()
double * GetBounds() override
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
void CreateColormapTexture()
Fill this->ColorTextureMap with an image using this->LookupTable.
vtkTypeBool Update(vtkInformation *requests) override
Bring this algorithm's outputs up-to-date.
void PrepareColormap(vtkScalarsToColors *cmap=nullptr)
Prepare a colormap for use in a shader.
bool HasTranslucentPolygonalGeometry() override
Some introspection on the type of data the mapper will render used by props to determine if they shou...
void SetInputData(vtkCellGrid *in)
Specify the input data to map.
vtkCellGrid * GetInput()
Specify the input data to map.
void Render(vtkRenderer *, vtkActor *) override
Implemented by sub classes.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Visualization data composed of cells of arbitrary type.
Definition vtkCellGrid.h:46
general representation of visualization data
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
abstract class specifies interface to map data to graphics primitives
Definition vtkMapper.h:137
abstract specification for renderers
Superclass for mapping scalar values to colors.
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_SIZEHINT(...)