VTK  9.3.0
vtkOpenGLPointGaussianMapper.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
11#ifndef vtkOpenGLPointGaussianMapper_h
12#define vtkOpenGLPointGaussianMapper_h
13
15#include "vtkRenderingOpenGL2Module.h" // For export macro
16#include <vector> // for ivar
17
18VTK_ABI_NAMESPACE_BEGIN
19class vtkOpenGLPointGaussianMapperHelper;
20
21class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLPointGaussianMapper : public vtkPointGaussianMapper
22{
23public:
26 void PrintSelf(ostream& os, vtkIndent indent) override;
27
34
39
43 void Render(vtkRenderer* ren, vtkActor* act) override;
44
50 vtkHardwareSelector* sel, std::vector<unsigned int>& pixeloffsets, vtkProp* prop) override;
51
52protected:
55
56 void ReportReferences(vtkGarbageCollector* collector) override;
57
58 std::vector<vtkOpenGLPointGaussianMapperHelper*> Helpers;
59 vtkOpenGLPointGaussianMapperHelper* CreateHelper();
60 void CopyMapperValuesToHelper(vtkOpenGLPointGaussianMapperHelper* helper);
61
65
66 // unused
67 void RenderPiece(vtkRenderer*, vtkActor*) override {}
68
70
71 // create the table for opacity values
73
74 // create the table for scale values
76
77 float* OpacityTable; // the table
78 double OpacityScale; // used for quick lookups
79 double OpacityOffset; // used for quick lookups
80 float* ScaleTable; // the table
81 double ScaleScale; // used for quick lookups
82 double ScaleOffset; // used for quick lookups
83
90
94 int FillInputPortInformation(int port, vtkInformation* info) override;
95
99 void ComputeBounds() override;
100
101 // used by the hardware selector
102 std::vector<std::vector<unsigned int>> PickPixels;
103
104private:
106 void operator=(const vtkOpenGLPointGaussianMapper&) = delete;
107};
108
109VTK_ABI_NAMESPACE_END
110#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:41
Superclass for all pipeline executives in VTK.
Detect and break reference loops.
a simple class to control print indentation
Definition vtkIndent.h:29
Store vtkAlgorithm input/output information.
draw PointGaussians using imposters
void ProcessSelectorPixelBuffers(vtkHardwareSelector *sel, std::vector< unsigned int > &pixeloffsets, vtkProp *prop) override
allows a mapper to update a selections color buffers Called from a prop which in turn is called from ...
static vtkOpenGLPointGaussianMapper * New()
std::vector< std::vector< unsigned int > > PickPixels
bool HasTranslucentPolygonalGeometry() override
Based on emissive setting.
void Render(vtkRenderer *ren, vtkActor *act) override
This calls RenderPiece (in a for loop if streaming is necessary).
std::vector< vtkOpenGLPointGaussianMapperHelper * > Helpers
vtkOpenGLPointGaussianMapperHelper * CreateHelper()
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
void RenderPiece(vtkRenderer *, vtkActor *) override
Implemented by sub classes.
void CopyMapperValuesToHelper(vtkOpenGLPointGaussianMapperHelper *helper)
void ComputeBounds() override
Need to loop over the hierarchy to compute bounds.
vtkExecutive * CreateDefaultExecutive() override
We need to override this method because the standard streaming demand driven pipeline may not be what...
~vtkOpenGLPointGaussianMapper() override
void ReportReferences(vtkGarbageCollector *collector) override
void RenderInternal(vtkRenderer *, vtkActor *)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Need to define the type of data handled by this mapper.
draw PointGaussians using imposters
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:43
abstract specification for renderers
Definition vtkRenderer.h:59
record modification and/or execution time
window superclass for vtkRenderWindow
Definition vtkWindow.h:25