VTK  9.4.20241108
List of all members
vtkDGRenderResponder::CacheEntry Struct Reference

Entries for a cache of render-helpers. More...

#include <vtkDGRenderResponder.h>

Collaboration diagram for vtkDGRenderResponder::CacheEntry:
[legend]

Public Attributes

Cache keys

These variables are used by the comparator as a key.

The cell-type within the grid to be rendered.

vtkSmartPointer< vtkDGCellCellType
 The cell- or side-source within the cell-type to be rendered.
 
const vtkDGCell::SourceCellSource
 The cell- or side-source within the cell-type to be rendered.
 
vtkSmartPointer< vtkCellAttributeShape
 The vector-valued attribute used to move from reference coordinates to world coordinates.
 
vtkSmartPointer< vtkCellAttributeColor
 The attribute used to color the geometry (or null).
 
vtkNew< vtkInformationLastRenderPassInfo
 The last render pass information is cached when RenderHelper is configured.
 
Cache data

These variables may be modified during a render.

They are not used to sort/index the entry, so are mutable.

A container for arrays and shaders that actually draws the data.

std::unique_ptr< vtkDrawTexturedElementsRenderHelper
 The MTime of the shape cell-attribute at the time RenderHelper was configured.
 
vtkMTimeType ShapeTime
 The MTime of the shape cell-attribute at the time RenderHelper was configured.
 
vtkMTimeType ColorTime
 The MTime of the color cell-attribute at the time RenderHelper was configured.
 
vtkMTimeType GridTime
 The MTime of the cell-grid which owns CellType at the time RenderHelper was configured.
 
vtkMTimeType PropertyTime
 The MTime of the property at the time RenderHelper was configured.
 
vtkMTimeType MapperTime
 The MTime of the mapper at the time RenderHelper was configured.
 
vtkMTimeType RenderPassStageTime { 0 }
 The MTime of the render passes combined at the time RenderHelper was configured.
 
bool UsesTessellationShaders
 Tessellation shaders are employed for higher order elements and quadrilaterals.
 
bool UsesGeometryShaders
 Geometry shader is used to debug distance-based tessellation.
 

Mods

These are the names of classes which are subclasess of vtkGLSLRuntimeModBase.

The mods will be loaded one by one and applied in the order they were added.

std::vector< std::string > ModNames
 Determine whether to remove this cache entry because renderer, actor, or mapper have changed since it was constructed.
 
bool IsUpToDate (vtkRenderer *renderer, vtkActor *actor, vtkMapper *mapper, vtkDGRenderResponder *responder) const
 Determine whether to remove this cache entry because renderer, actor, or mapper have changed since it was constructed.
 
void PrepareHelper (vtkRenderer *renderer, vtkActor *actor, vtkMapper *mapper) const
 Allocate a RenderHelper as needed and configure it.
 
bool operator< (const CacheEntry &other) const
 Used sort cache entries for inclusion in a std::set<>.
 

Detailed Description

Entries for a cache of render-helpers.

Definition at line 87 of file vtkDGRenderResponder.h.

Member Function Documentation

◆ IsUpToDate()

bool vtkDGRenderResponder::CacheEntry::IsUpToDate ( vtkRenderer renderer,
vtkActor actor,
vtkMapper mapper,
vtkDGRenderResponder responder 
) const

Determine whether to remove this cache entry because renderer, actor, or mapper have changed since it was constructed.

◆ PrepareHelper()

void vtkDGRenderResponder::CacheEntry::PrepareHelper ( vtkRenderer renderer,
vtkActor actor,
vtkMapper mapper 
) const

Allocate a RenderHelper as needed and configure it.

◆ operator<()

bool vtkDGRenderResponder::CacheEntry::operator< ( const CacheEntry other) const

Used sort cache entries for inclusion in a std::set<>.

Member Data Documentation

◆ CellType

vtkSmartPointer<vtkDGCell> vtkDGRenderResponder::CacheEntry::CellType

The cell- or side-source within the cell-type to be rendered.

Definition at line 93 of file vtkDGRenderResponder.h.

◆ CellSource

const vtkDGCell::Source* vtkDGRenderResponder::CacheEntry::CellSource

The cell- or side-source within the cell-type to be rendered.

Definition at line 95 of file vtkDGRenderResponder.h.

◆ Shape

vtkSmartPointer<vtkCellAttribute> vtkDGRenderResponder::CacheEntry::Shape

The vector-valued attribute used to move from reference coordinates to world coordinates.

Definition at line 97 of file vtkDGRenderResponder.h.

◆ Color

vtkSmartPointer<vtkCellAttribute> vtkDGRenderResponder::CacheEntry::Color

The attribute used to color the geometry (or null).

Definition at line 99 of file vtkDGRenderResponder.h.

◆ LastRenderPassInfo

vtkNew<vtkInformation> vtkDGRenderResponder::CacheEntry::LastRenderPassInfo

The last render pass information is cached when RenderHelper is configured.

Definition at line 101 of file vtkDGRenderResponder.h.

◆ RenderHelper

std::unique_ptr<vtkDrawTexturedElements> vtkDGRenderResponder::CacheEntry::RenderHelper
mutable

The MTime of the shape cell-attribute at the time RenderHelper was configured.

Definition at line 109 of file vtkDGRenderResponder.h.

◆ ShapeTime

vtkMTimeType vtkDGRenderResponder::CacheEntry::ShapeTime
mutable

The MTime of the shape cell-attribute at the time RenderHelper was configured.

Definition at line 111 of file vtkDGRenderResponder.h.

◆ ColorTime

vtkMTimeType vtkDGRenderResponder::CacheEntry::ColorTime
mutable

The MTime of the color cell-attribute at the time RenderHelper was configured.

Definition at line 113 of file vtkDGRenderResponder.h.

◆ GridTime

vtkMTimeType vtkDGRenderResponder::CacheEntry::GridTime
mutable

The MTime of the cell-grid which owns CellType at the time RenderHelper was configured.

Definition at line 116 of file vtkDGRenderResponder.h.

◆ PropertyTime

vtkMTimeType vtkDGRenderResponder::CacheEntry::PropertyTime
mutable

The MTime of the property at the time RenderHelper was configured.

The actor controls default visual properties (color, opacity, transforms) applied to the cell-grid.

Definition at line 120 of file vtkDGRenderResponder.h.

◆ MapperTime

vtkMTimeType vtkDGRenderResponder::CacheEntry::MapperTime
mutable

The MTime of the mapper at the time RenderHelper was configured.

The mapper controls what component is used for coloring,

Definition at line 123 of file vtkDGRenderResponder.h.

◆ RenderPassStageTime

vtkMTimeType vtkDGRenderResponder::CacheEntry::RenderPassStageTime { 0 }
mutable

The MTime of the render passes combined at the time RenderHelper was configured.

Various render passes are injected into the render pipeline by vtkOpenGLRenderer for fancy features like dual-depth peeling, SSAO, etc.

Definition at line 127 of file vtkDGRenderResponder.h.

◆ UsesTessellationShaders

bool vtkDGRenderResponder::CacheEntry::UsesTessellationShaders
mutable

Tessellation shaders are employed for higher order elements and quadrilaterals.

Definition at line 129 of file vtkDGRenderResponder.h.

◆ UsesGeometryShaders

bool vtkDGRenderResponder::CacheEntry::UsesGeometryShaders
mutable

Geometry shader is used to debug distance-based tessellation.

Definition at line 131 of file vtkDGRenderResponder.h.

◆ ModNames

std::vector<std::string> vtkDGRenderResponder::CacheEntry::ModNames

Determine whether to remove this cache entry because renderer, actor, or mapper have changed since it was constructed.

Definition at line 137 of file vtkDGRenderResponder.h.


The documentation for this struct was generated from the following file: