VTK
9.3.0
|
mapper for composite dataset consisting of polygonal data. More...
#include <vtkCompositePolyDataMapper2.h>
Inherits vtkOpenGLPolyDataMapperImplementation.
Classes | |
class | RenderBlockState |
Public Types | |
typedef vtkOpenGLPolyDataMapperImplementation | Superclass |
Public Member Functions | |
virtual vtkTypeBool | IsA (const char *type) |
vtkCompositePolyDataMapper2 * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | ReleaseGraphicsResources (vtkWindow *) override |
Release any graphics resources that are being consumed by this mapper. | |
void | Render (vtkRenderer *ren, vtkActor *act) override |
This calls RenderPiece (in a for loop if streaming is necessary). | |
void | SetVBOShiftScaleMethod (int m) override |
A convenience method for enabling/disabling the VBO's shift+scale transform. | |
void | SetPauseShiftScale (bool pauseShiftScale) override |
Pause updates of shift-scale parameters based on camera position. | |
std::vector< vtkPolyData * > | GetRenderedList () |
Accessor to the ordered list of PolyData that we end last drew. | |
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 | |
vtkMTimeType | GetMTime () override |
Overridden to include vtkCompositeDataDisplayAttributes' mtime. | |
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. | |
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. | |
void | SetCompositeDataDisplayAttributes (vtkCompositeDataDisplayAttributes *attributes) |
Set/get the composite data set attributes. | |
vtkCompositeDataDisplayAttributes * | GetCompositeDataDisplayAttributes () |
Set/get the composite data set attributes. | |
void | SetBlockVisibility (unsigned int index, bool visible) |
Set/get the visibility for a block given its flat index. | |
bool | GetBlockVisibility (unsigned int index) |
Set/get the visibility for a block given its flat index. | |
void | RemoveBlockVisibility (unsigned int index) |
Set/get the visibility for a block given its flat index. | |
void | RemoveBlockVisibilities () |
Set/get the visibility for a block given its flat index. | |
void | SetBlockColor (unsigned int index, const double color[3]) |
Set/get the color for a block given its flat index. | |
void | SetBlockColor (unsigned int index, double r, double g, double b) |
Set/get the color for a block given its flat index. | |
double * | GetBlockColor (unsigned int index) |
Set/get the color for a block given its flat index. | |
void | RemoveBlockColor (unsigned int index) |
Set/get the color for a block given its flat index. | |
void | RemoveBlockColors () |
Set/get the color for a block given its flat index. | |
void | SetBlockOpacity (unsigned int index, double opacity) |
Set/get the opacity for a block given its flat index. | |
double | GetBlockOpacity (unsigned int index) |
Set/get the opacity for a block given its flat index. | |
void | RemoveBlockOpacity (unsigned int index) |
Set/get the opacity for a block given its flat index. | |
void | RemoveBlockOpacities () |
Set/get the opacity for a block given its flat index. | |
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. | |
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. | |
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. | |
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. | |
void | SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name) override |
Call SetInputArrayToProcess on helpers. | |
void | SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType) override |
Call SetInputArrayToProcess on helpers. | |
void | SetInputArrayToProcess (int idx, vtkInformation *info) override |
Call SetInputArrayToProcess on helpers. | |
virtual void | SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name) |
Call SetInputArrayToProcess on helpers. | |
virtual void | SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType) |
Call SetInputArrayToProcess on helpers. | |
virtual void | SetInputArrayToProcess (int idx, vtkInformation *info) |
Call SetInputArrayToProcess on helpers. | |
virtual void | SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName) |
Call SetInputArrayToProcess on helpers. | |
Static Public Member Functions | |
static vtkCompositePolyDataMapper2 * | New () |
static vtkTypeBool | IsTypeOf (const char *type) |
static vtkCompositePolyDataMapper2 * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkCompositePolyDataMapper2 () | |
~vtkCompositePolyDataMapper2 () override | |
vtkExecutive * | CreateDefaultExecutive () 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. | |
int | FillInputPortInformation (int port, vtkInformation *info) override |
Need to define the type of data handled by this mapper. | |
void | ComputeBounds () override |
Need to loop over the hierarchy to compute bounds. | |
virtual void | InitializeHelpersBeforeRendering (vtkRenderer *vtkNotUsed(ren), vtkActor *vtkNotUsed(act)) |
This method is called before RenderPiece is called on helpers. | |
virtual vtkCompositeMapperHelper2 * | CreateHelper () |
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. | |
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< vtkCompositeDataDisplayAttributes > | CompositeAttributes |
Composite data set attributes. | |
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. | |
std::vector< vtkPolyData * > | RenderedList |
Friends | |
class | vtkCompositeMapperHelper2 |
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.
Definition at line 44 of file vtkCompositePolyDataMapper2.h.
Definition at line 50 of file vtkCompositePolyDataMapper2.h.
|
protected |
|
overrideprotected |
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkCompositePolyDataMapper2 * vtkCompositePolyDataMapper2::NewInstance | ( | ) | const |
|
override |
|
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.
|
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.
void vtkCompositePolyDataMapper2::SetCompositeDataDisplayAttributes | ( | vtkCompositeDataDisplayAttributes * | attributes | ) |
Set/get the composite data set attributes.
vtkCompositeDataDisplayAttributes * vtkCompositePolyDataMapper2::GetCompositeDataDisplayAttributes | ( | ) |
Set/get the composite data set attributes.
void vtkCompositePolyDataMapper2::SetBlockVisibility | ( | unsigned int | index, |
bool | visible | ||
) |
Set/get the visibility for a block given its flat index.
bool vtkCompositePolyDataMapper2::GetBlockVisibility | ( | unsigned int | index | ) |
Set/get the visibility for a block given its flat index.
void vtkCompositePolyDataMapper2::RemoveBlockVisibility | ( | unsigned int | index | ) |
Set/get the visibility for a block given its flat index.
void vtkCompositePolyDataMapper2::RemoveBlockVisibilities | ( | ) |
Set/get the visibility for a block given its flat index.
void vtkCompositePolyDataMapper2::SetBlockColor | ( | unsigned int | index, |
const double | color[3] | ||
) |
Set/get the color for a block given its flat index.
|
inline |
Set/get the color for a block given its flat index.
Definition at line 86 of file vtkCompositePolyDataMapper2.h.
double * vtkCompositePolyDataMapper2::GetBlockColor | ( | unsigned int | index | ) |
Set/get the color for a block given its flat index.
void vtkCompositePolyDataMapper2::RemoveBlockColor | ( | unsigned int | index | ) |
Set/get the color for a block given its flat index.
void vtkCompositePolyDataMapper2::RemoveBlockColors | ( | ) |
Set/get the color for a block given its flat index.
void vtkCompositePolyDataMapper2::SetBlockOpacity | ( | unsigned int | index, |
double | opacity | ||
) |
Set/get the opacity for a block given its flat index.
double vtkCompositePolyDataMapper2::GetBlockOpacity | ( | unsigned int | index | ) |
Set/get the opacity for a block given its flat index.
void vtkCompositePolyDataMapper2::RemoveBlockOpacity | ( | unsigned int | index | ) |
Set/get the opacity for a block given its flat index.
void vtkCompositePolyDataMapper2::RemoveBlockOpacities | ( | ) |
Set/get the opacity for a block given its flat index.
|
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.
|
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.
|
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.
|
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.
|
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.
|
override |
This calls RenderPiece (in a for loop if streaming is necessary).
|
override |
A convenience method for enabling/disabling the VBO's shift+scale transform.
|
override |
Pause updates of shift-scale parameters based on camera position.
This override passes the information to all instances in Helpers .
|
override |
Call SetInputArrayToProcess on helpers.
|
override |
Call SetInputArrayToProcess on helpers.
|
override |
Call SetInputArrayToProcess on helpers.
|
inline |
Accessor to the ordered list of PolyData that we end last drew.
Definition at line 155 of file vtkCompositePolyDataMapper2.h.
|
override |
allows a mapper to update a selections color buffers Called from a prop which in turn is called from the selector
|
override |
Overridden to include vtkCompositeDataDisplayAttributes' mtime.
|
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.
|
overrideprotected |
Need to define the type of data handled by this mapper.
|
overrideprotected |
Need to loop over the hierarchy to compute bounds.
|
inlineprotectedvirtual |
This method is called before RenderPiece is called on helpers.
One can override it to initialize the helpers.
Definition at line 194 of file vtkCompositePolyDataMapper2.h.
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
virtual void vtkAlgorithm::SetInputArrayToProcess | ( | int | idx, |
int | port, | ||
int | connection, | ||
int | fieldAssociation, | ||
const char * | name | ||
) |
Call SetInputArrayToProcess on helpers.
virtual void vtkAlgorithm::SetInputArrayToProcess | ( | int | idx, |
int | port, | ||
int | connection, | ||
int | fieldAssociation, | ||
int | fieldAttributeType | ||
) |
Call SetInputArrayToProcess on helpers.
virtual void vtkAlgorithm::SetInputArrayToProcess | ( | int | idx, |
vtkInformation * | info | ||
) |
Call SetInputArrayToProcess on helpers.
virtual void vtkAlgorithm::SetInputArrayToProcess | ( | int | idx, |
int | port, | ||
int | connection, | ||
const char * | fieldAssociation, | ||
const char * | attributeTypeorName | ||
) |
Call SetInputArrayToProcess on helpers.
|
friend |
Definition at line 245 of file vtkCompositePolyDataMapper2.h.
|
protected |
Time stamp for computation of bounds.
Definition at line 202 of file vtkCompositePolyDataMapper2.h.
|
protected |
Definition at line 205 of file vtkCompositePolyDataMapper2.h.
|
protected |
Definition at line 206 of file vtkCompositePolyDataMapper2.h.
|
protected |
Definition at line 207 of file vtkCompositePolyDataMapper2.h.
|
protected |
Definition at line 208 of file vtkCompositePolyDataMapper2.h.
|
protected |
Definition at line 229 of file vtkCompositePolyDataMapper2.h.
|
protected |
Definition at line 230 of file vtkCompositePolyDataMapper2.h.
|
protected |
Definition at line 234 of file vtkCompositePolyDataMapper2.h.
|
protected |
Definition at line 236 of file vtkCompositePolyDataMapper2.h.
|
protected |
Composite data set attributes.
Definition at line 243 of file vtkCompositePolyDataMapper2.h.
|
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 251 of file vtkCompositePolyDataMapper2.h.
|
protected |
Definition at line 253 of file vtkCompositePolyDataMapper2.h.