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 
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkCellGrid;
28 class vtkCellAttribute;
29 class vtkDataObject;
30 class vtkRenderer;
31 
32 class VTKRENDERINGCORE_EXPORT vtkCellGridMapper : public vtkMapper
33 {
34 public:
36  vtkTypeMacro(vtkCellGridMapper, vtkMapper);
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 
75 protected:
77  ~vtkCellGridMapper() override = default;
78 
79  void ComputeBounds();
81 
86 
87  int VisualizePCoords = -1;
88  int VisualizeBasisFunction = -1;
89 
90 private:
91  vtkCellGridMapper(const vtkCellGridMapper&) = delete;
92  void operator=(const vtkCellGridMapper&) = delete;
93 };
94 
95 VTK_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:50
A function defined over the physical domain of a vtkCellGrid.
map a vtkCellGrid to graphics primitives.
~vtkCellGridMapper() override=default
vtkCellGrid * GetInput()
Specify the input data to map.
double * GetBounds() override
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
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.
static vtkCellGridMapper * New()
void Update() override
Bring this algorithm's outputs up-to-date.
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.
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
Definition: vtkDataObject.h:64
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:86
abstract specification for renderers
Definition: vtkRenderer.h:71
void GetBounds(T a, double bds[6])
@ port
Definition: vtkX3D.h:447
int vtkTypeBool
Definition: vtkABI.h:64
#define VTK_SIZEHINT(...)