Version: 9.12.0
VTKViewer_ExtractUnstructuredGrid Class Reference

#include <VTKViewer_ExtractUnstructuredGrid.h>

Inheritance diagram for VTKViewer_ExtractUnstructuredGrid:
Inheritance graph

Public Types

enum  EExtraction { eCells , ePoints }
 
enum  EChanging { ePassAll , eAdding , eRemoving }
 
typedef std::vector< vtkIdType > TVectorId
 Gets the output id by input id. More...
 
typedef std::map< vtkIdType, vtkIdType > TMapId
 
typedef std::set< vtkIdType > TSetId
 

Public Member Functions

 vtkTypeMacro (VTKViewer_ExtractUnstructuredGrid, vtkUnstructuredGridAlgorithm) static VTKViewer_ExtractUnstructuredGrid *New()
 VTK type macros. More...
 
void SetModeOfExtraction (EExtraction theExtractionMode)
 Sets mode of extraction to theExtractionMode. More...
 
EExtraction GetModeOfExtraction ()
 Get Extraction mode (Return: myExtractionMode field) More...
 
void SetModeOfChanging (EChanging theChangeMode)
 Sets mode of changing to theChangeMode. More...
 
EChanging GetModeOfChanging ()
 Return myChangeMode field. More...
 
void RegisterCell (vtkIdType theCellId)
 Add cell id to myCellIds std::set. More...
 
int IsCellsRegistered ()
 Check if myCellIds is empty. More...
 
void ClearRegisteredCells ()
 Remove the cell from the output. More...
 
void RegisterCellsWithType (vtkIdType theCellType)
 Add cell type to myCellTypes std::set. More...
 
int IsCellsWithTypeRegistered ()
 Check if myCellTypes is empty. More...
 
void ClearRegisteredCellsWithType ()
 Remove every cells with the type from the output. More...
 
int IsChanging ()
 Do the filter do some real work. More...
 
void SetStoreMapping (int theStoreMapping)
 Do it keep the mapping between input's and output's UnstructuredGrid. More...
 
int GetStoreMapping ()
 Get myStoreMapping. More...
 
void BuildOut2InMap ()
 Computes a map out IDs to in IDs. Call it before GetInputId()!!! More...
 
vtkIdType GetInputId (vtkIdType theOutId) const
 Gets the input id by output id. Call BuildOut2InMap() before. More...
 

Protected Member Functions

 VTKViewer_ExtractUnstructuredGrid ()
 
 ~VTKViewer_ExtractUnstructuredGrid ()
 
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 

Protected Attributes

EExtraction myExtractionMode
 
EChanging myChangeMode
 
TSetId myCellIds
 
TSetId myCellTypes
 
bool myStoreMapping
 
bool myPassAll
 
TVectorId myOut2InId
 

Private Member Functions

 VTKViewer_ExtractUnstructuredGrid (const VTKViewer_ExtractUnstructuredGrid &)
 Not implemented. More...
 
void operator= (const VTKViewer_ExtractUnstructuredGrid &)
 Not implemented. More...
 

Member Typedef Documentation

◆ TMapId

typedef std::map<vtkIdType,vtkIdType> VTKViewer_ExtractUnstructuredGrid::TMapId

◆ TSetId

typedef std::set<vtkIdType> VTKViewer_ExtractUnstructuredGrid::TSetId

◆ TVectorId

typedef std::vector<vtkIdType> VTKViewer_ExtractUnstructuredGrid::TVectorId

Gets the output id by input id.

Member Enumeration Documentation

◆ EChanging

Enumerator
ePassAll 
eAdding 
eRemoving 

◆ EExtraction

Enumerator
eCells 
ePoints 

Constructor & Destructor Documentation

◆ VTKViewer_ExtractUnstructuredGrid() [1/2]

VTKViewer_ExtractUnstructuredGrid::VTKViewer_ExtractUnstructuredGrid ( )
protected

◆ ~VTKViewer_ExtractUnstructuredGrid()

VTKViewer_ExtractUnstructuredGrid::~VTKViewer_ExtractUnstructuredGrid ( )
protected

◆ VTKViewer_ExtractUnstructuredGrid() [2/2]

VTKViewer_ExtractUnstructuredGrid::VTKViewer_ExtractUnstructuredGrid ( const VTKViewer_ExtractUnstructuredGrid )
private

Not implemented.

Member Function Documentation

◆ BuildOut2InMap()

void VTKViewer_ExtractUnstructuredGrid::BuildOut2InMap ( )

Computes a map out IDs to in IDs. Call it before GetInputId()!!!

References eAdding, eCells, ePassAll, eRemoving, myCellIds, myCellTypes, myChangeMode, myExtractionMode, myOut2InId, and myPassAll.

◆ ClearRegisteredCells()

void VTKViewer_ExtractUnstructuredGrid::ClearRegisteredCells ( )
inline

Remove the cell from the output.

◆ ClearRegisteredCellsWithType()

void VTKViewer_ExtractUnstructuredGrid::ClearRegisteredCellsWithType ( )
inline

Remove every cells with the type from the output.

◆ GetInputId()

vtkIdType VTKViewer_ExtractUnstructuredGrid::GetInputId ( vtkIdType  theOutId) const

Gets the input id by output id. Call BuildOut2InMap() before.

References myCellIds, myCellTypes, myOut2InId, and myPassAll.

◆ GetModeOfChanging()

EChanging VTKViewer_ExtractUnstructuredGrid::GetModeOfChanging ( )
inline

Return myChangeMode field.

◆ GetModeOfExtraction()

EExtraction VTKViewer_ExtractUnstructuredGrid::GetModeOfExtraction ( )
inline

Get Extraction mode (Return: myExtractionMode field)

◆ GetStoreMapping()

int VTKViewer_ExtractUnstructuredGrid::GetStoreMapping ( )
inline

Get myStoreMapping.

◆ IsCellsRegistered()

int VTKViewer_ExtractUnstructuredGrid::IsCellsRegistered ( )
inline

Check if myCellIds is empty.

◆ IsCellsWithTypeRegistered()

int VTKViewer_ExtractUnstructuredGrid::IsCellsWithTypeRegistered ( )
inline

Check if myCellTypes is empty.

◆ IsChanging()

int VTKViewer_ExtractUnstructuredGrid::IsChanging ( )
inline

Do the filter do some real work.

◆ operator=()

void VTKViewer_ExtractUnstructuredGrid::operator= ( const VTKViewer_ExtractUnstructuredGrid )
private

Not implemented.

◆ RegisterCell()

void VTKViewer_ExtractUnstructuredGrid::RegisterCell ( vtkIdType  theCellId)

Add cell id to myCellIds std::set.

References myCellIds.

◆ RegisterCellsWithType()

void VTKViewer_ExtractUnstructuredGrid::RegisterCellsWithType ( vtkIdType  theCellType)

Add cell type to myCellTypes std::set.

References myCellTypes.

◆ RequestData()

int VTKViewer_ExtractUnstructuredGrid::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protectedvirtual

◆ SetModeOfChanging()

void VTKViewer_ExtractUnstructuredGrid::SetModeOfChanging ( EChanging  theChangeMode)
inline

Sets mode of changing to theChangeMode.

◆ SetModeOfExtraction()

void VTKViewer_ExtractUnstructuredGrid::SetModeOfExtraction ( EExtraction  theExtractionMode)
inline

Sets mode of extraction to theExtractionMode.

◆ SetStoreMapping()

void VTKViewer_ExtractUnstructuredGrid::SetStoreMapping ( int  theStoreMapping)

Do it keep the mapping between input's and output's UnstructuredGrid.

References myStoreMapping.

◆ vtkTypeMacro()

VTKViewer_ExtractUnstructuredGrid::vtkTypeMacro ( VTKViewer_ExtractUnstructuredGrid  ,
vtkUnstructuredGridAlgorithm   
)

VTK type macros.

Construct with all types of clipping turned off.

Member Data Documentation

◆ myCellIds

TSetId VTKViewer_ExtractUnstructuredGrid::myCellIds
protected

◆ myCellTypes

TSetId VTKViewer_ExtractUnstructuredGrid::myCellTypes
protected

◆ myChangeMode

EChanging VTKViewer_ExtractUnstructuredGrid::myChangeMode
protected

◆ myExtractionMode

EExtraction VTKViewer_ExtractUnstructuredGrid::myExtractionMode
protected

◆ myOut2InId

TVectorId VTKViewer_ExtractUnstructuredGrid::myOut2InId
protected

◆ myPassAll

bool VTKViewer_ExtractUnstructuredGrid::myPassAll
protected

◆ myStoreMapping

bool VTKViewer_ExtractUnstructuredGrid::myStoreMapping
protected

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