VTK  9.4.20250130
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkCellGraphicsPrimitiveMap Class Reference

Maps cell connectivity and offsets from VTK data model into primitives that graphics libraries expect (points, lines and triangles) More...

#include <vtkCellGraphicsPrimitiveMap.h>

Inheritance diagram for vtkCellGraphicsPrimitiveMap:
[legend]
Collaboration diagram for vtkCellGraphicsPrimitiveMap:
[legend]

Classes

struct  CellTypeMapperOffsets
 
struct  PrimitiveDescriptor
 

Public Types

typedef vtkObject Superclass
 

Public Member Functions

virtual vtkTypeBool IsA (const char *type)
 Return 1 if this class is the same type of (or a subclass of) the named class.
 
vtkCellGraphicsPrimitiveMapNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent) override
 Methods invoked by print to print information about the object including superclasses.
 

Static Public Member Functions

static vtkCellGraphicsPrimitiveMapNew ()
 
static vtkTypeBool IsTypeOf (const char *type)
 
static vtkCellGraphicsPrimitiveMapSafeDownCast (vtkObjectBase *o)
 
static PrimitiveDescriptor ProcessVertices (vtkPolyData *mesh)
 break down and tag vertices with their vtk cell id.
 
static PrimitiveDescriptor ProcessLines (vtkPolyData *mesh)
 break down and tag lines with their vtk cell id.
 
static PrimitiveDescriptor ProcessPolygons (vtkPolyData *mesh)
 break down (into triangles) and tag polygons with their vtk cell id.
 
static PrimitiveDescriptor ProcessStrips (vtkPolyData *mesh)
 break down (into triangles) and tag strips with their vtk cell id.
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkCellGraphicsPrimitiveMap ()
 
 ~vtkCellGraphicsPrimitiveMap () override
 

Detailed Description

Maps cell connectivity and offsets from VTK data model into primitives that graphics libraries expect (points, lines and triangles)

When given only vertices, lines and triangles and using 32-bit integer IDs, this class opts into low memory code paths, i.e, does not copy indices into new arrays. When input has poly-vertices, poly-lines and polygons or triangle strips or uses 64-bit integer IDs, this class makes an additional copy of the indices. A message is logged in the console to warn about potential OOM errors.

Definition at line 28 of file vtkCellGraphicsPrimitiveMap.h.

Member Typedef Documentation

◆ Superclass

Definition at line 32 of file vtkCellGraphicsPrimitiveMap.h.

Constructor & Destructor Documentation

◆ vtkCellGraphicsPrimitiveMap()

vtkCellGraphicsPrimitiveMap::vtkCellGraphicsPrimitiveMap ( )
protected

◆ ~vtkCellGraphicsPrimitiveMap()

vtkCellGraphicsPrimitiveMap::~vtkCellGraphicsPrimitiveMap ( )
overrideprotected

Member Function Documentation

◆ New()

static vtkCellGraphicsPrimitiveMap * vtkCellGraphicsPrimitiveMap::New ( )
static

◆ IsTypeOf()

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

◆ IsA()

virtual vtkTypeBool vtkCellGraphicsPrimitiveMap::IsA ( const char *  name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class.

Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObjectBase.

◆ SafeDownCast()

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

◆ NewInstanceInternal()

virtual vtkObjectBase * vtkCellGraphicsPrimitiveMap::NewInstanceInternal ( ) const
protectedvirtual

◆ NewInstance()

vtkCellGraphicsPrimitiveMap * vtkCellGraphicsPrimitiveMap::NewInstance ( ) const

◆ PrintSelf()

void vtkCellGraphicsPrimitiveMap::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
overridevirtual

Methods invoked by print to print information about the object including superclasses.

Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObjectBase.

◆ ProcessVertices()

static PrimitiveDescriptor vtkCellGraphicsPrimitiveMap::ProcessVertices ( vtkPolyData mesh)
static

break down and tag vertices with their vtk cell id.

◆ ProcessLines()

static PrimitiveDescriptor vtkCellGraphicsPrimitiveMap::ProcessLines ( vtkPolyData mesh)
static

break down and tag lines with their vtk cell id.

◆ ProcessPolygons()

static PrimitiveDescriptor vtkCellGraphicsPrimitiveMap::ProcessPolygons ( vtkPolyData mesh)
static

break down (into triangles) and tag polygons with their vtk cell id.

Also generates edge masks used to hide internal edges of the polygon.

◆ ProcessStrips()

static PrimitiveDescriptor vtkCellGraphicsPrimitiveMap::ProcessStrips ( vtkPolyData mesh)
static

break down (into triangles) and tag strips with their vtk cell id.


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