VTK  9.3.0
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
19#ifndef vtkCellGridMapper_h
20#define vtkCellGridMapper_h
21
22#include "vtkMapper.h"
23#include "vtkRenderingCoreModule.h" // For export macro.
24#include "vtkUnsignedCharArray.h" // For API.
25
26VTK_ABI_NAMESPACE_BEGIN
27class vtkCellGrid;
29class vtkDataObject;
30class vtkRenderer;
31
32class VTKRENDERINGCORE_EXPORT vtkCellGridMapper : public vtkMapper
33{
34public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
39 vtkSetMacro(VisualizePCoords, int);
40 vtkGetMacro(VisualizePCoords, int);
41
42 vtkSetMacro(VisualizeBasisFunction, int);
43 vtkGetMacro(VisualizeBasisFunction, int);
44
48 void Render(vtkRenderer*, vtkActor*) override {}
49
51
57
59
62 void Update(int port) override;
63 void Update() override;
64 vtkTypeBool Update(int port, vtkInformationVector* requests) override;
65 vtkTypeBool Update(vtkInformation* requests) override;
67
72 double* GetBounds() VTK_SIZEHINT(6) override;
73 void GetBounds(double bounds[6]) override { this->Superclass::GetBounds(bounds); }
74
75protected:
77 ~vtkCellGridMapper() override = default;
78
81
86
87 int VisualizePCoords = -1;
88 int VisualizeBasisFunction = -1;
89
90private:
91 vtkCellGridMapper(const vtkCellGridMapper&) = delete;
92 void operator=(const vtkCellGridMapper&) = delete;
93};
94
95VTK_ABI_NAMESPACE_END
96#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:41
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 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:42
general representation of visualization data
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
abstract class specifies interface to map data to graphics primitives
Definition vtkMapper.h:77
abstract specification for renderers
Definition vtkRenderer.h:59
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_SIZEHINT(...)