Version: 6.3.1
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions

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
typedef std::map< vtkIdType,
vtkIdType > 
TMapId

Public Member Functions

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

Static Public Member Functions

static
VTKViewer_ExtractUnstructuredGrid
New ()
 Construct with all types of clipping turned off.

Protected Types

typedef std::set< vtkIdType > TSetId

Protected Member Functions

 VTKViewer_ExtractUnstructuredGrid ()
 ~VTKViewer_ExtractUnstructuredGrid ()
virtual void Execute ()
 Main method, which calculate output.

Protected Attributes

EExtraction myExtractionMode
EChanging myChangeMode
TSetId myCellIds
TSetId myCellTypes
bool myStoreMapping
TVectorId myOut2InId
TMapId myIn2OutId

Private Member Functions

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

Member Typedef Documentation

typedef std::vector<vtkIdType> VTKViewer_ExtractUnstructuredGrid.TVectorId
typedef std::map<vtkIdType,vtkIdType> VTKViewer_ExtractUnstructuredGrid.TMapId
typedef std::set<vtkIdType> VTKViewer_ExtractUnstructuredGrid.TSetId [protected]

Member Enumeration Documentation

Enumerator:
eCells 
ePoints 
Enumerator:
ePassAll 
eAdding 
eRemoving 

Constructor & Destructor Documentation

VTKViewer_ExtractUnstructuredGrid::VTKViewer_ExtractUnstructuredGrid ( ) [protected]
VTKViewer_ExtractUnstructuredGrid::~VTKViewer_ExtractUnstructuredGrid ( ) [protected]
VTKViewer_ExtractUnstructuredGrid.VTKViewer_ExtractUnstructuredGrid ( const VTKViewer_ExtractUnstructuredGrid ) [private]

Member Function Documentation

VTKViewer_ExtractUnstructuredGrid.vtkTypeMacro ( VTKViewer_ExtractUnstructuredGrid  ,
vtkUnstructuredGridToUnstructuredGridFilter   
)
static VTKViewer_ExtractUnstructuredGrid* VTKViewer_ExtractUnstructuredGrid.New ( ) [static]
void VTKViewer_ExtractUnstructuredGrid.SetModeOfExtraction ( EExtraction  theExtractionMode)
EExtraction VTKViewer_ExtractUnstructuredGrid.GetModeOfExtraction ( )
void VTKViewer_ExtractUnstructuredGrid.SetModeOfChanging ( EChanging  theChangeMode)
EChanging VTKViewer_ExtractUnstructuredGrid.GetModeOfChanging ( )
void VTKViewer_ExtractUnstructuredGrid::RegisterCell ( vtkIdType  theCellId)

References myCellIds.

int VTKViewer_ExtractUnstructuredGrid.IsCellsRegistered ( )
void VTKViewer_ExtractUnstructuredGrid.ClearRegisteredCells ( )
void VTKViewer_ExtractUnstructuredGrid::RegisterCellsWithType ( vtkIdType  theCellType)

References myCellTypes.

int VTKViewer_ExtractUnstructuredGrid.IsCellsWithTypeRegistered ( )
void VTKViewer_ExtractUnstructuredGrid.ClearRegisteredCellsWithType ( )
int VTKViewer_ExtractUnstructuredGrid.IsChanging ( )
void VTKViewer_ExtractUnstructuredGrid::SetStoreMapping ( int  theStoreMapping)

References myStoreMapping.

int VTKViewer_ExtractUnstructuredGrid.GetStoreMapping ( )
vtkIdType VTKViewer_ExtractUnstructuredGrid::GetInputId ( int  theOutId) const

References myCellIds, myCellTypes, and myOut2InId.

vtkIdType VTKViewer_ExtractUnstructuredGrid::GetOutputId ( int  theInId) const

References myCellIds, myCellTypes, and myIn2OutId.

void VTKViewer_ExtractUnstructuredGrid::Execute ( ) [protected, virtual]
void VTKViewer_ExtractUnstructuredGrid.operator= ( const VTKViewer_ExtractUnstructuredGrid ) [private]

Field Documentation

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS