55 #ifndef vtkOpenGLSurfaceProbeVolumeMapper_h
56 #define vtkOpenGLSurfaceProbeVolumeMapper_h
60 #include "vtkRenderingVolumeOpenGL2Module.h"
64 VTK_ABI_NAMESPACE_BEGIN
111 double GetWindow() {
return this->ScalarRange[1] - this->ScalarRange[0]; }
114 double level = this->GetLevel();
118 double GetLevel() {
return 0.5 * (this->ScalarRange[0] + this->ScalarRange[1]); }
121 double window = this->GetWindow();
141 vtkGetEnumMacro(BlendMode, BlendModes);
142 vtkSetEnumMacro(BlendMode, BlendModes);
153 vtkGetMacro(BlendWidth,
double);
154 vtkSetMacro(BlendWidth,
double);
186 virtual void ReplaceShaderPositionPass(
vtkActor* act);
187 virtual void ReplaceShaderProbePass(
vtkActor* act);
207 enum class PassTypes : unsigned int
213 PassTypes CurrentPass = PassTypes::DEFAULT;
217 double BlendWidth = 1.0;
220 bool SavedScissorTestState =
false;
221 bool SavedBlendState =
false;
222 int SavedViewport[4] = {};
225 VTK_ABI_NAMESPACE_END
void SetBlendModeToNone()
Set/Get the blend mode.
PolyDataMapper using OpenGL to render.
void SetWindow(double window)
Convienence methods to set the window and level values used for scalar coloring, which ultimately set...
represents an object (geometry & properties) in a rendered scene
static vtkOpenGLPolyDataMapper * New()
void SetBlendModeToMinimumIntensity()
Set/Get the blend mode.
Creates and manages the volume texture rendered by vtkOpenGLGPUVolumeRayCastMapper.
abstract class to specify dataset behavior
BlendModes
Set/Get the blend mode.
double GetLevel()
Convienence methods to set the window and level values used for scalar coloring, which ultimately set...
void SetBlendModeToAverageIntensity()
Set/Get the blend mode.
virtual bool HasTranslucentPolygonalGeometry()
Some introspection on the type of data the mapper will render used by props to determine if they shou...
void SetBlendModeToMaximumIntensity()
Set/Get the blend mode.
void SetLevel(double level)
Convienence methods to set the window and level values used for scalar coloring, which ultimately set...
abstract specification for renderers
virtual void UpdateShaders(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act)
Make sure appropriate shaders are defined, compiled and bound.
concrete dataset represents vertices, lines, polygons, and triangle strips
void CreateDefaultLookupTable() override
Defined as no-op to prevent the creation of a default lookup table in GetLookupTable.
Proxy object to connect input/output ports.
topologically and geometrically regular array of data
void RenderPiece(vtkRenderer *ren, vtkActor *act) override
Implemented by sub classes.
virtual void SetScalarRange(double, double)
Specify range in terms of scalar minimum and maximum (smin,smax).
Internal class which encapsulates OpenGL FramebufferObject.
dynamic, self-adjusting array of unsigned char
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
abstracts an OpenGL texture object.
PolyDataMapper colored with probed volume data.
virtual vtkUnsignedCharArray * MapScalars(double alpha)
Map the scalars (if there are any scalars and ScalarVisibility is on) through the lookup table...
double GetWindow()
Convienence methods to set the window and level values used for scalar coloring, which ultimately set...