VTK  9.4.20241108
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
25#ifndef vtkCellGridMapper_h
26#define vtkCellGridMapper_h
27
28#include "vtkMapper.h"
29#include "vtkRenderingCoreModule.h" // For export macro.
30#include "vtkUnsignedCharArray.h" // For API.
31
32VTK_ABI_NAMESPACE_BEGIN
33class vtkCellGrid;
35class vtkDataObject;
36class vtkRenderer;
37
38class VTKRENDERINGCORE_EXPORT vtkCellGridMapper : public vtkMapper
39{
40public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
45 vtkSetMacro(VisualizePCoords, int);
46 vtkGetMacro(VisualizePCoords, int);
47
48 vtkSetMacro(VisualizeBasisFunction, int);
49 vtkGetMacro(VisualizeBasisFunction, int);
50
54 void Render(vtkRenderer*, vtkActor*) override {}
55
57
63
65
68 void Update(int port) override;
69 void Update() override;
70 vtkTypeBool Update(int port, vtkInformationVector* requests) override;
71 vtkTypeBool Update(vtkInformation* requests) override;
73
81 void PrepareColormap(vtkScalarsToColors* cmap = nullptr);
82
87 double* GetBounds() VTK_SIZEHINT(6) override;
88 void GetBounds(double bounds[6]) override { this->Superclass::GetBounds(bounds); }
89
91
92protected:
94 ~vtkCellGridMapper() override = default;
95
98
101
104
105 int VisualizePCoords = -1;
106 int VisualizeBasisFunction = -1;
107
108private:
109 vtkCellGridMapper(const vtkCellGridMapper&) = delete;
110 void operator=(const vtkCellGridMapper&) = delete;
111};
112
113VTK_ABI_NAMESPACE_END
114#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:49
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(...)