VTK  9.2.20230609
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
vtkCompositePolyDataMapper2 Class Reference

mapper for composite dataset consisting of polygonal data. More...

#include <vtkCompositePolyDataMapper2.h>

Inherits vtkOpenGLPolyDataMapperImplementation.

Collaboration diagram for vtkCompositePolyDataMapper2:
[legend]

Classes

class  RenderBlockState
 

Public Types

typedef vtkOpenGLPolyDataMapper Superclass
 

Public Member Functions

virtual vtkTypeBool IsA (const char *type)
 
vtkCompositePolyDataMapper2NewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
void ReleaseGraphicsResources (vtkWindow *) override
 Release any graphics resources that are being consumed by this mapper. More...
 
void Render (vtkRenderer *ren, vtkActor *act) override
 This calls RenderPiece (in a for loop if streaming is necessary). More...
 
void SetVBOShiftScaleMethod (int m) override
 A convenience method for enabling/disabling the VBO's shift+scale transform. More...
 
void SetPauseShiftScale (bool pauseShiftScale) override
 Pause updates of shift-scale parameters based on camera position. More...
 
std::vector< vtkPolyData * > GetRenderedList ()
 Accessor to the ordered list of PolyData that we end last drew. More...
 
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 the selector More...
 
vtkMTimeType GetMTime () override
 Overridden to include vtkCompositeDataDisplayAttributes' mtime. More...
 
bool HasOpaqueGeometry () override
 Some introspection on the type of data the mapper will render used by props to determine if they should invoke the mapper on a specific rendering pass. More...
 
bool HasTranslucentPolygonalGeometry () override
 Some introspection on the type of data the mapper will render used by props to determine if they should invoke the mapper on a specific rendering pass. More...
 
void SetCompositeDataDisplayAttributes (vtkCompositeDataDisplayAttributes *attributes)
 Set/get the composite data set attributes. More...
 
vtkCompositeDataDisplayAttributesGetCompositeDataDisplayAttributes ()
 Set/get the composite data set attributes. More...
 
void SetBlockVisibility (unsigned int index, bool visible)
 Set/get the visibility for a block given its flat index. More...
 
bool GetBlockVisibility (unsigned int index)
 Set/get the visibility for a block given its flat index. More...
 
void RemoveBlockVisibility (unsigned int index)
 Set/get the visibility for a block given its flat index. More...
 
void RemoveBlockVisibilities ()
 Set/get the visibility for a block given its flat index. More...
 
void SetBlockColor (unsigned int index, const double color[3])
 Set/get the color for a block given its flat index. More...
 
void SetBlockColor (unsigned int index, double r, double g, double b)
 Set/get the color for a block given its flat index. More...
 
double * GetBlockColor (unsigned int index)
 Set/get the color for a block given its flat index. More...
 
void RemoveBlockColor (unsigned int index)
 Set/get the color for a block given its flat index. More...
 
void RemoveBlockColors ()
 Set/get the color for a block given its flat index. More...
 
void SetBlockOpacity (unsigned int index, double opacity)
 Set/get the opacity for a block given its flat index. More...
 
double GetBlockOpacity (unsigned int index)
 Set/get the opacity for a block given its flat index. More...
 
void RemoveBlockOpacity (unsigned int index)
 Set/get the opacity for a block given its flat index. More...
 
void RemoveBlockOpacities ()
 Set/get the opacity for a block given its flat index. More...
 
virtual void SetColorMissingArraysWithNanColor (bool)
 If the current 'color by' array is missing on some datasets, color these dataset by the LookupTable's NaN color, if the lookup table supports it. More...
 
virtual bool GetColorMissingArraysWithNanColor ()
 If the current 'color by' array is missing on some datasets, color these dataset by the LookupTable's NaN color, if the lookup table supports it. More...
 
virtual void ColorMissingArraysWithNanColorOn ()
 If the current 'color by' array is missing on some datasets, color these dataset by the LookupTable's NaN color, if the lookup table supports it. More...
 
virtual void ColorMissingArraysWithNanColorOff ()
 If the current 'color by' array is missing on some datasets, color these dataset by the LookupTable's NaN color, if the lookup table supports it. More...
 
void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name) override
 Call SetInputArrayToProcess on helpers. More...
 
void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType) override
 Call SetInputArrayToProcess on helpers. More...
 
void SetInputArrayToProcess (int idx, vtkInformation *info) override
 Call SetInputArrayToProcess on helpers. More...
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name)
 Call SetInputArrayToProcess on helpers. More...
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType)
 Call SetInputArrayToProcess on helpers. More...
 
virtual void SetInputArrayToProcess (int idx, vtkInformation *info)
 Call SetInputArrayToProcess on helpers. More...
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName)
 Call SetInputArrayToProcess on helpers. More...
 

Static Public Member Functions

static vtkCompositePolyDataMapper2New ()
 
static vtkTypeBool IsTypeOf (const char *type)
 
static vtkCompositePolyDataMapper2SafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkCompositePolyDataMapper2 ()
 
 ~vtkCompositePolyDataMapper2 () override
 
vtkExecutiveCreateDefaultExecutive () override
 We need to override this method because the standard streaming demand driven pipeline is not what we want - we are expecting hierarchical data as input. More...
 
int FillInputPortInformation (int port, vtkInformation *info) override
 Need to define the type of data handled by this mapper. More...
 
void ComputeBounds () override
 Need to loop over the hierarchy to compute bounds. More...
 
virtual void InitializeHelpersBeforeRendering (vtkRenderer *vtkNotUsed(ren), vtkActor *vtkNotUsed(act))
 This method is called before RenderPiece is called on helpers. More...
 
virtual vtkCompositeMapperHelper2CreateHelper ()
 
virtual void CopyMapperValuesToHelper (vtkCompositeMapperHelper2 *helper)
 
bool RecursiveHasTranslucentGeometry (vtkDataObject *dobj, unsigned int &flat_index)
 
void BuildRenderValues (vtkRenderer *renderer, vtkActor *actor, vtkDataObject *dobj, unsigned int &flat_index)
 
void RenderBlock (vtkRenderer *renderer, vtkActor *actor, vtkDataObject *dobj, unsigned int &flat_index)
 

Protected Attributes

vtkTimeStamp BoundsMTime
 Time stamp for computation of bounds. More...
 
int CurrentFlatIndex
 
std::map< const std::string, vtkCompositeMapperHelper2 * > Helpers
 
std::map< vtkPolyData *, vtkCompositeMapperHelperData * > HelperDataMap
 
vtkTimeStamp HelperMTime
 
vtkStateStorage TranslucentState
 
bool HasTranslucentGeometry
 
vtkStateStorage RenderValuesState
 
RenderBlockState BlockState
 
vtkSmartPointer< vtkCompositeDataDisplayAttributesCompositeAttributes
 Composite data set attributes. More...
 
bool ColorMissingArraysWithNanColor
 If the current 'color by' array is missing on some datasets, color these dataset by the LookupTable's NaN color, if the lookup table supports it. More...
 
std::vector< vtkPolyData * > RenderedList
 

Friends

class vtkCompositeMapperHelper2
 

Detailed Description

mapper for composite dataset consisting of polygonal data.

vtkCompositePolyDataMapper2 is similar to vtkCompositePolyDataMapper except that instead of creating individual mapper for each block in the composite dataset, it iterates over the blocks internally.

Events:
vtkCommand::EndEvent vtkCommand::StartEvent vtkCommand::UpdateShaderEvent
Online Examples:

Tests:
vtkCompositePolyDataMapper2 (Tests)

Definition at line 78 of file vtkCompositePolyDataMapper2.h.

Member Typedef Documentation

◆ Superclass

Definition at line 84 of file vtkCompositePolyDataMapper2.h.

Constructor & Destructor Documentation

◆ vtkCompositePolyDataMapper2()

vtkCompositePolyDataMapper2::vtkCompositePolyDataMapper2 ( )
protected

◆ ~vtkCompositePolyDataMapper2()

vtkCompositePolyDataMapper2::~vtkCompositePolyDataMapper2 ( )
overrideprotected

Member Function Documentation

◆ New()

static vtkCompositePolyDataMapper2* vtkCompositePolyDataMapper2::New ( )
static

◆ IsTypeOf()

static vtkTypeBool vtkCompositePolyDataMapper2::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual vtkTypeBool vtkCompositePolyDataMapper2::IsA ( const char *  type)
virtual

◆ SafeDownCast()

static vtkCompositePolyDataMapper2* vtkCompositePolyDataMapper2::SafeDownCast ( vtkObjectBase o)
static

◆ NewInstanceInternal()

virtual vtkObjectBase* vtkCompositePolyDataMapper2::NewInstanceInternal ( ) const
protectedvirtual

◆ NewInstance()

vtkCompositePolyDataMapper2* vtkCompositePolyDataMapper2::NewInstance ( ) const

◆ PrintSelf()

void vtkCompositePolyDataMapper2::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
override

◆ HasOpaqueGeometry()

bool vtkCompositePolyDataMapper2::HasOpaqueGeometry ( )
override

Some introspection on the type of data the mapper will render used by props to determine if they should invoke the mapper on a specific rendering pass.

◆ HasTranslucentPolygonalGeometry()

bool vtkCompositePolyDataMapper2::HasTranslucentPolygonalGeometry ( )
override

Some introspection on the type of data the mapper will render used by props to determine if they should invoke the mapper on a specific rendering pass.

◆ SetCompositeDataDisplayAttributes()

void vtkCompositePolyDataMapper2::SetCompositeDataDisplayAttributes ( vtkCompositeDataDisplayAttributes attributes)

Set/get the composite data set attributes.

◆ GetCompositeDataDisplayAttributes()

vtkCompositeDataDisplayAttributes* vtkCompositePolyDataMapper2::GetCompositeDataDisplayAttributes ( )

Set/get the composite data set attributes.

◆ SetBlockVisibility()

void vtkCompositePolyDataMapper2::SetBlockVisibility ( unsigned int  index,
bool  visible 
)

Set/get the visibility for a block given its flat index.

◆ GetBlockVisibility()

bool vtkCompositePolyDataMapper2::GetBlockVisibility ( unsigned int  index)

Set/get the visibility for a block given its flat index.

◆ RemoveBlockVisibility()

void vtkCompositePolyDataMapper2::RemoveBlockVisibility ( unsigned int  index)

Set/get the visibility for a block given its flat index.

◆ RemoveBlockVisibilities()

void vtkCompositePolyDataMapper2::RemoveBlockVisibilities ( )

Set/get the visibility for a block given its flat index.

◆ SetBlockColor() [1/2]

void vtkCompositePolyDataMapper2::SetBlockColor ( unsigned int  index,
const double  color[3] 
)

Set/get the color for a block given its flat index.

◆ SetBlockColor() [2/2]

void vtkCompositePolyDataMapper2::SetBlockColor ( unsigned int  index,
double  r,
double  g,
double  b 
)
inline

Set/get the color for a block given its flat index.

Definition at line 120 of file vtkCompositePolyDataMapper2.h.

◆ GetBlockColor()

double* vtkCompositePolyDataMapper2::GetBlockColor ( unsigned int  index)

Set/get the color for a block given its flat index.

◆ RemoveBlockColor()

void vtkCompositePolyDataMapper2::RemoveBlockColor ( unsigned int  index)

Set/get the color for a block given its flat index.

◆ RemoveBlockColors()

void vtkCompositePolyDataMapper2::RemoveBlockColors ( )

Set/get the color for a block given its flat index.

◆ SetBlockOpacity()

void vtkCompositePolyDataMapper2::SetBlockOpacity ( unsigned int  index,
double  opacity 
)

Set/get the opacity for a block given its flat index.

◆ GetBlockOpacity()

double vtkCompositePolyDataMapper2::GetBlockOpacity ( unsigned int  index)

Set/get the opacity for a block given its flat index.

◆ RemoveBlockOpacity()

void vtkCompositePolyDataMapper2::RemoveBlockOpacity ( unsigned int  index)

Set/get the opacity for a block given its flat index.

◆ RemoveBlockOpacities()

void vtkCompositePolyDataMapper2::RemoveBlockOpacities ( )

Set/get the opacity for a block given its flat index.

◆ SetColorMissingArraysWithNanColor()

virtual void vtkCompositePolyDataMapper2::SetColorMissingArraysWithNanColor ( bool  )
virtual

If the current 'color by' array is missing on some datasets, color these dataset by the LookupTable's NaN color, if the lookup table supports it.

Default is false.

◆ GetColorMissingArraysWithNanColor()

virtual bool vtkCompositePolyDataMapper2::GetColorMissingArraysWithNanColor ( )
virtual

If the current 'color by' array is missing on some datasets, color these dataset by the LookupTable's NaN color, if the lookup table supports it.

Default is false.

◆ ColorMissingArraysWithNanColorOn()

virtual void vtkCompositePolyDataMapper2::ColorMissingArraysWithNanColorOn ( )
virtual

If the current 'color by' array is missing on some datasets, color these dataset by the LookupTable's NaN color, if the lookup table supports it.

Default is false.

◆ ColorMissingArraysWithNanColorOff()

virtual void vtkCompositePolyDataMapper2::ColorMissingArraysWithNanColorOff ( )
virtual

If the current 'color by' array is missing on some datasets, color these dataset by the LookupTable's NaN color, if the lookup table supports it.

Default is false.

◆ ReleaseGraphicsResources()

void vtkCompositePolyDataMapper2::ReleaseGraphicsResources ( vtkWindow )
override

Release any graphics resources that are being consumed by this mapper.

The parameter window could be used to determine which graphic resources to release.

◆ Render()

void vtkCompositePolyDataMapper2::Render ( vtkRenderer ren,
vtkActor act 
)
override

This calls RenderPiece (in a for loop if streaming is necessary).

◆ SetVBOShiftScaleMethod()

void vtkCompositePolyDataMapper2::SetVBOShiftScaleMethod ( int  m)
override

A convenience method for enabling/disabling the VBO's shift+scale transform.

◆ SetPauseShiftScale()

void vtkCompositePolyDataMapper2::SetPauseShiftScale ( bool  pauseShiftScale)
override

Pause updates of shift-scale parameters based on camera position.

This override passes the information to all instances in Helpers .

◆ SetInputArrayToProcess() [1/7]

void vtkCompositePolyDataMapper2::SetInputArrayToProcess ( int  idx,
int  port,
int  connection,
int  fieldAssociation,
const char *  name 
)
override

Call SetInputArrayToProcess on helpers.

◆ SetInputArrayToProcess() [2/7]

void vtkCompositePolyDataMapper2::SetInputArrayToProcess ( int  idx,
int  port,
int  connection,
int  fieldAssociation,
int  fieldAttributeType 
)
override

Call SetInputArrayToProcess on helpers.

◆ SetInputArrayToProcess() [3/7]

void vtkCompositePolyDataMapper2::SetInputArrayToProcess ( int  idx,
vtkInformation info 
)
override

Call SetInputArrayToProcess on helpers.

◆ GetRenderedList()

std::vector<vtkPolyData*> vtkCompositePolyDataMapper2::GetRenderedList ( )
inline

Accessor to the ordered list of PolyData that we end last drew.

Definition at line 189 of file vtkCompositePolyDataMapper2.h.

◆ ProcessSelectorPixelBuffers()

void vtkCompositePolyDataMapper2::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 the selector

◆ GetMTime()

vtkMTimeType vtkCompositePolyDataMapper2::GetMTime ( )
override

Overridden to include vtkCompositeDataDisplayAttributes' mtime.

◆ CreateDefaultExecutive()

vtkExecutive* vtkCompositePolyDataMapper2::CreateDefaultExecutive ( )
overrideprotected

We need to override this method because the standard streaming demand driven pipeline is not what we want - we are expecting hierarchical data as input.

◆ FillInputPortInformation()

int vtkCompositePolyDataMapper2::FillInputPortInformation ( int  port,
vtkInformation info 
)
overrideprotected

Need to define the type of data handled by this mapper.

◆ ComputeBounds()

void vtkCompositePolyDataMapper2::ComputeBounds ( )
overrideprotected

Need to loop over the hierarchy to compute bounds.

◆ InitializeHelpersBeforeRendering()

virtual void vtkCompositePolyDataMapper2::InitializeHelpersBeforeRendering ( vtkRenderer vtkNotUsedren,
vtkActor vtkNotUsedact 
)
inlineprotectedvirtual

This method is called before RenderPiece is called on helpers.

One can override it to initialize the helpers.

Definition at line 228 of file vtkCompositePolyDataMapper2.h.

◆ CreateHelper()

virtual vtkCompositeMapperHelper2* vtkCompositePolyDataMapper2::CreateHelper ( )
protectedvirtual

◆ CopyMapperValuesToHelper()

virtual void vtkCompositePolyDataMapper2::CopyMapperValuesToHelper ( vtkCompositeMapperHelper2 helper)
protectedvirtual

◆ RecursiveHasTranslucentGeometry()

bool vtkCompositePolyDataMapper2::RecursiveHasTranslucentGeometry ( vtkDataObject dobj,
unsigned int &  flat_index 
)
protected

◆ BuildRenderValues()

void vtkCompositePolyDataMapper2::BuildRenderValues ( vtkRenderer renderer,
vtkActor actor,
vtkDataObject dobj,
unsigned int &  flat_index 
)
protected

◆ RenderBlock()

void vtkCompositePolyDataMapper2::RenderBlock ( vtkRenderer renderer,
vtkActor actor,
vtkDataObject dobj,
unsigned int &  flat_index 
)
protected

◆ SetInputArrayToProcess() [4/7]

virtual void vtkAlgorithm::SetInputArrayToProcess

Call SetInputArrayToProcess on helpers.

◆ SetInputArrayToProcess() [5/7]

virtual void vtkAlgorithm::SetInputArrayToProcess

Call SetInputArrayToProcess on helpers.

◆ SetInputArrayToProcess() [6/7]

virtual void vtkAlgorithm::SetInputArrayToProcess

Call SetInputArrayToProcess on helpers.

◆ SetInputArrayToProcess() [7/7]

virtual void vtkAlgorithm::SetInputArrayToProcess

Call SetInputArrayToProcess on helpers.

Friends And Related Function Documentation

◆ vtkCompositeMapperHelper2

friend class vtkCompositeMapperHelper2
friend

Definition at line 279 of file vtkCompositePolyDataMapper2.h.

Member Data Documentation

◆ BoundsMTime

vtkTimeStamp vtkCompositePolyDataMapper2::BoundsMTime
protected

Time stamp for computation of bounds.

Definition at line 236 of file vtkCompositePolyDataMapper2.h.

◆ CurrentFlatIndex

int vtkCompositePolyDataMapper2::CurrentFlatIndex
protected

Definition at line 239 of file vtkCompositePolyDataMapper2.h.

◆ Helpers

std::map<const std::string, vtkCompositeMapperHelper2*> vtkCompositePolyDataMapper2::Helpers
protected

Definition at line 240 of file vtkCompositePolyDataMapper2.h.

◆ HelperDataMap

std::map<vtkPolyData*, vtkCompositeMapperHelperData*> vtkCompositePolyDataMapper2::HelperDataMap
protected

Definition at line 241 of file vtkCompositePolyDataMapper2.h.

◆ HelperMTime

vtkTimeStamp vtkCompositePolyDataMapper2::HelperMTime
protected

Definition at line 242 of file vtkCompositePolyDataMapper2.h.

◆ TranslucentState

vtkStateStorage vtkCompositePolyDataMapper2::TranslucentState
protected

Definition at line 263 of file vtkCompositePolyDataMapper2.h.

◆ HasTranslucentGeometry

bool vtkCompositePolyDataMapper2::HasTranslucentGeometry
protected

Definition at line 264 of file vtkCompositePolyDataMapper2.h.

◆ RenderValuesState

vtkStateStorage vtkCompositePolyDataMapper2::RenderValuesState
protected

Definition at line 268 of file vtkCompositePolyDataMapper2.h.

◆ BlockState

RenderBlockState vtkCompositePolyDataMapper2::BlockState
protected

Definition at line 270 of file vtkCompositePolyDataMapper2.h.

◆ CompositeAttributes

vtkSmartPointer<vtkCompositeDataDisplayAttributes> vtkCompositePolyDataMapper2::CompositeAttributes
protected

Composite data set attributes.

Definition at line 277 of file vtkCompositePolyDataMapper2.h.

◆ ColorMissingArraysWithNanColor

bool vtkCompositePolyDataMapper2::ColorMissingArraysWithNanColor
protected

If the current 'color by' array is missing on some datasets, color these dataset by the LookupTable's NaN color, if the lookup table supports it.

Definition at line 285 of file vtkCompositePolyDataMapper2.h.

◆ RenderedList

std::vector<vtkPolyData*> vtkCompositePolyDataMapper2::RenderedList
protected

Definition at line 287 of file vtkCompositePolyDataMapper2.h.


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