VTK  9.5.20250630
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
14#ifndef vtkOpenGLPointGaussianMapper_h
15#define vtkOpenGLPointGaussianMapper_h
16
18#include "vtkRenderingOpenGL2Module.h" // For export macro
19#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
20#include <vector> // for ivar
21
22VTK_ABI_NAMESPACE_BEGIN
24
25class VTKRENDERINGOPENGL2_EXPORT VTK_MARSHALAUTO vtkOpenGLPointGaussianMapper
27{
28public:
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
39
44
48 void Render(vtkRenderer* ren, vtkActor* act) override;
49
55 vtkHardwareSelector* sel, std::vector<unsigned int>& pixeloffsets, vtkProp* prop) override;
56
57protected:
60
61 void ReportReferences(vtkGarbageCollector* collector) override;
62
63 std::vector<vtkOpenGLPointGaussianMapperHelper*> Helpers;
64
67
71
72 // unused
73 void RenderPiece(vtkRenderer*, vtkActor*) override {}
74
76
77 // create the table for opacity values
79
80 // create the table for scale values
82
83 float* OpacityTable; // the table
84 double OpacityScale; // used for quick lookups
85 double OpacityOffset; // used for quick lookups
86 float* ScaleTable; // the table
87 double ScaleScale; // used for quick lookups
88 double ScaleOffset; // used for quick lookups
89
96
100 int FillInputPortInformation(int port, vtkInformation* info) override;
101
105 void ComputeBounds() override;
106
107 // used by the hardware selector
108 std::vector<std::vector<unsigned int>> PickPixels;
109
110private:
112 void operator=(const vtkOpenGLPointGaussianMapper&) = delete;
113};
114
115VTK_ABI_NAMESPACE_END
116#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:151
Superclass for all pipeline executives in VTK.
Detect and break reference loops.
a simple class to control print indentation
Definition vtkIndent.h:108
Store vtkAlgorithm input/output information.
draw PointGaussians using imposters
virtual void CopyMapperValuesToHelper(vtkOpenGLPointGaussianMapperHelper *helper)
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
virtual 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 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:66
abstract specification for renderers
record modification and/or execution time
window superclass for vtkRenderWindow
Definition vtkWindow.h:48
#define VTK_MARSHALAUTO