Version: 9.12.0
VTKViewer_GeometryFilter Class Reference

This class used same as vtkGeometryFilter. See documentation on VTK for more information. More...

#include <VTKViewer_GeometryFilter.h>

Inheritance diagram for VTKViewer_GeometryFilter:
Inheritance graph

Public Types

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

Public Member Functions

int GetInside ()
 Return value of myShowInside. More...
 
int GetAppendCoincident3D () const
 Return value of myAppendCoincident3D. More...
 
void SetAppendCoincident3D (int theFlag)
 Sets myAppendCoincident3D flag. If this flag is true, filter append to the result data set coincident 3D elements. More...
 
void SetWireframeMode (int theIsWireframeMode)
 Sets myIsWireframeMode flag. myIsWireframeMode is changed, call this->Modified(). More...
 
int GetWireframeMode ()
 Return value of myIsWireframeMode. More...
 
void SetStoreMapping (int theStoreMapping)
 Sets myStoreMapping flag and call this->Modified() More...
 
int GetStoreMapping ()
 Return value of myStoreMapping. More...
 
virtual vtkIdType GetNodeObjId (vtkIdType theVtkID)
 Return input value theVtkID. More...
 
virtual vtkIdType GetElemObjId (vtkIdType theVtkID)
 Return object ID by VTK ID cell. More...
 
virtual void SetQuadraticArcMode (bool theFlag)
 
virtual bool GetQuadraticArcMode () const
 
virtual void SetQuadraticArcAngle (double theMaxAngle)
 
virtual double GetQuadraticArcAngle () const
 

Static Public Member Functions

static VTKViewer_GeometryFilterNew ()
 
static void InsertId (const vtkIdType theCellId, const vtkIdType theCellType, TVectorId &, TMapOfVectorId &theDimension2VTK2ObjIds)
 

Protected Member Functions

 VTKViewer_GeometryFilter ()
 Constructor which sets myShowInside = 0 and myStoreMapping = 0. More...
 
 ~VTKViewer_GeometryFilter ()
 Destructor. More...
 
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
 
int UnstructuredGridExecute (vtkDataSet *, vtkPolyData *, vtkInformation *)
 Filter calculation method for data object type is VTK_UNSTRUCTURED_GRID. More...
 
void BuildArcedPolygon (vtkIdType cellId, vtkUnstructuredGrid *input, vtkPolyData *output, TMapOfVectorId &theDimension2VTK2ObjIds, bool triangulate=false)
 
void FillVTK2ObjIds (vtkPolyData *output)
 fill myVTK2ObjIds to get the correspondence between vtk ids (displayed edges and faces computed in vtkGeometryFilter::UnstructuredGridExecute) and original cell ids (mesh cells) More...
 

Protected Attributes

bool delegateToVtk = false
 

Private Attributes

TVectorId myVTK2ObjIds
 
int myShowInside
 
int myStoreMapping
 
int myIsWireframeMode
 
int myAppendCoincident3D
 
double myMaxArcAngle
 
bool myIsBuildArc
 

Detailed Description

This class used same as vtkGeometryFilter. See documentation on VTK for more information.

Member Typedef Documentation

◆ TMapOfVectorId

◆ TVectorId

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

Constructor & Destructor Documentation

◆ VTKViewer_GeometryFilter()

VTKViewer_GeometryFilter::VTKViewer_GeometryFilter ( )
protected

Constructor which sets myShowInside = 0 and myStoreMapping = 0.

◆ ~VTKViewer_GeometryFilter()

VTKViewer_GeometryFilter::~VTKViewer_GeometryFilter ( )
protected

Destructor.

Member Function Documentation

◆ BuildArcedPolygon()

void VTKViewer_GeometryFilter::BuildArcedPolygon ( vtkIdType  cellId,
vtkUnstructuredGrid *  input,
vtkPolyData *  output,
TMapOfVectorId theDimension2VTK2ObjIds,
bool  triangulate = false 
)
protected

◆ FillVTK2ObjIds()

void VTKViewer_GeometryFilter::FillVTK2ObjIds ( vtkPolyData *  output)
protected

fill myVTK2ObjIds to get the correspondence between vtk ids (displayed edges and faces computed in vtkGeometryFilter::UnstructuredGridExecute) and original cell ids (mesh cells)

◆ GetAppendCoincident3D()

int VTKViewer_GeometryFilter::GetAppendCoincident3D ( ) const

Return value of myAppendCoincident3D.

Return values
myAppendCoincident3D

References myAppendCoincident3D.

◆ GetElemObjId()

vtkIdType VTKViewer_GeometryFilter::GetElemObjId ( vtkIdType  theVtkID)
virtual

Return object ID by VTK ID cell.

Return values
myVTK2ObjIds[theVtkID]

References myVTK2ObjIds.

◆ GetInside()

int VTKViewer_GeometryFilter::GetInside ( )

Return value of myShowInside.

Return values
myShowInside

◆ GetNodeObjId()

vtkIdType VTKViewer_GeometryFilter::GetNodeObjId ( vtkIdType  theVtkID)
inlinevirtual

Return input value theVtkID.

Return values
theVtkID

◆ GetQuadraticArcAngle()

double VTKViewer_GeometryFilter::GetQuadraticArcAngle ( ) const
virtual

References myMaxArcAngle.

◆ GetQuadraticArcMode()

bool VTKViewer_GeometryFilter::GetQuadraticArcMode ( ) const
virtual

References myIsBuildArc.

◆ GetStoreMapping()

int VTKViewer_GeometryFilter::GetStoreMapping ( )

Return value of myStoreMapping.

Return values
myStoreMapping

◆ GetWireframeMode()

int VTKViewer_GeometryFilter::GetWireframeMode ( )

Return value of myIsWireframeMode.

Return values
myIsWireframeMode

◆ InsertId()

void VTKViewer_GeometryFilter::InsertId ( const vtkIdType  theCellId,
const vtkIdType  theCellType,
TVectorId ,
TMapOfVectorId theDimension2VTK2ObjIds 
)
static

◆ New()

static VTKViewer_GeometryFilter * VTKViewer_GeometryFilter::New ( )
static

◆ RequestData()

int VTKViewer_GeometryFilter::RequestData ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
overrideprotected

◆ SetAppendCoincident3D()

void VTKViewer_GeometryFilter::SetAppendCoincident3D ( int  theFlag)

Sets myAppendCoincident3D flag. If this flag is true, filter append to the result data set coincident 3D elements.

References myAppendCoincident3D.

◆ SetQuadraticArcAngle()

void VTKViewer_GeometryFilter::SetQuadraticArcAngle ( double  theMaxAngle)
virtual

References myMaxArcAngle.

◆ SetQuadraticArcMode()

void VTKViewer_GeometryFilter::SetQuadraticArcMode ( bool  theFlag)
virtual

References myIsBuildArc.

◆ SetStoreMapping()

void VTKViewer_GeometryFilter::SetStoreMapping ( int  theStoreMapping)

Sets myStoreMapping flag and call this->Modified()

Parameters
theStoreMapping- used for changing value of myStoreMapping variable.

◆ SetWireframeMode()

void VTKViewer_GeometryFilter::SetWireframeMode ( int  theIsWireframeMode)

Sets myIsWireframeMode flag. myIsWireframeMode is changed, call this->Modified().

Parameters
theIsWireframeMode- used for changing value of myIsWireframeMode variable.

◆ UnstructuredGridExecute()

void VTKViewer_GeometryFilter::UnstructuredGridExecute ( vtkDataSet *  dataSetInput,
vtkPolyData *  output,
vtkInformation *   
)
protected

Filter calculation method for data object type is VTK_UNSTRUCTURED_GRID.

References Build1DArc(), VTKViewer_Triangulator::Execute(), and toShowEdge().

Member Data Documentation

◆ delegateToVtk

bool VTKViewer_GeometryFilter::delegateToVtk = false
protected

◆ myAppendCoincident3D

int VTKViewer_GeometryFilter::myAppendCoincident3D
private

◆ myIsBuildArc

bool VTKViewer_GeometryFilter::myIsBuildArc
private

◆ myIsWireframeMode

int VTKViewer_GeometryFilter::myIsWireframeMode
private

◆ myMaxArcAngle

double VTKViewer_GeometryFilter::myMaxArcAngle
private

◆ myShowInside

int VTKViewer_GeometryFilter::myShowInside
private

◆ myStoreMapping

int VTKViewer_GeometryFilter::myStoreMapping
private

◆ myVTK2ObjIds

TVectorId VTKViewer_GeometryFilter::myVTK2ObjIds
private

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