Open CASCADE Technology  7.7.0.dev
Public Member Functions | Protected Member Functions | Protected Attributes

IVtkTools_DisplayModeFilter Class Reference

Cells filter according to the selected display mode by mesh parts types. This filter is used to get parts of a shape according to different display modes. More...

#include <IVtkTools_DisplayModeFilter.hxx>

Inheritance diagram for IVtkTools_DisplayModeFilter:
Inheritance graph
[legend]

Public Member Functions

 vtkTypeMacro (IVtkTools_DisplayModeFilter, IVtkTools_SubPolyDataFilter) static IVtkTools_DisplayModeFilter *New()
 
void PrintSelf (std::ostream &os, vtkIndent indent)
 
void SetDisplayMode (const IVtk_DisplayMode aMode)
 Set display mode to define cells types to be passed through this filter. More...
 
void SetDisplaySharedVertices (const bool doDisplay)
 Display or not shared vertices. More...
 
IVtk_DisplayMode GetDisplayMode () const
 Get current display mode. More...
 
const IVtk_IdTypeMapMeshTypesForMode (IVtk_DisplayMode theMode) const
 Returns list of displaying mesh element types for the given display mode. More...
 
void SetMeshTypesForMode (IVtk_DisplayMode theMode, const IVtk_IdTypeMap &theMeshTypes)
 Set a list of displaying mesh element types for the given display mode. More...
 
void SetFaceBoundaryDraw (bool theToDraw)
 Draw Boundary of faces for shading mode. More...
 
bool FaceBoundaryDraw () const
 Returns True if drawing Boundary of faces for shading mode is defined. More...
 
bool IsSmoothShading () const
 Returns TRUE if vertex normals should be included for smooth shading within DM_Shading mode or not. More...
 
void SetSmoothShading (bool theIsSmooth)
 Set if vertex normals should be included for smooth shading or not. More...
 
- Public Member Functions inherited from IVtkTools_SubPolyDataFilter
 vtkTypeMacro (IVtkTools_SubPolyDataFilter, vtkPolyDataAlgorithm) static IVtkTools_SubPolyDataFilter *New()
 
void PrintSelf (std::ostream &theOs, vtkIndent theIndent)
 
void SetData (const IVtk_IdTypeMap theSet)
 Set ids to be passed through this filter. More...
 
void AddData (const IVtk_IdTypeMap theSet)
 Add ids to be passed through this filter. More...
 
void SetData (const IVtk_ShapeIdList theIds)
 Set ids to be passed through this filter. More...
 
void AddData (const IVtk_ShapeIdList theIds)
 Add ids to be passed through this filter. More...
 
void Clear ()
 Clear ids set to be passed through this filter. More...
 
void SetIdsArrayName (const char *theArrayName)
 Set ids array name. More...
 
void SetDoFiltering (const bool theDoFiltering)
 

Protected Member Functions

virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
 Filter cells according to the given set of ids. More...
 
 IVtkTools_DisplayModeFilter ()
 
virtual ~IVtkTools_DisplayModeFilter ()
 
- Protected Member Functions inherited from IVtkTools_SubPolyDataFilter
 IVtkTools_SubPolyDataFilter ()
 
virtual ~IVtkTools_SubPolyDataFilter ()
 

Protected Attributes

IVtk_DisplayMode myDisplayMode
 Display mode defining mesh types to pass through this filter. More...
 
IVtk_IdTypeMap myModesDefinition [2]
 
bool myDoDisplaySharedVertices
 
bool myDrawFaceBoundaries
 Draw Face boundaries within shading display mode. More...
 
bool myIsSmoothShading
 include vertex normals for smooth shading or not More...
 
- Protected Attributes inherited from IVtkTools_SubPolyDataFilter
IVtk_IdTypeMap myIdsSet
 Set of ids to be passed through this filter. More...
 
const char * myIdsArrayName
 
bool myDoFiltering
 
bool myToCopyNormals
 

Detailed Description

Cells filter according to the selected display mode by mesh parts types. This filter is used to get parts of a shape according to different display modes.

Constructor & Destructor Documentation

◆ IVtkTools_DisplayModeFilter()

IVtkTools_DisplayModeFilter::IVtkTools_DisplayModeFilter ( )
protected

◆ ~IVtkTools_DisplayModeFilter()

virtual IVtkTools_DisplayModeFilter::~IVtkTools_DisplayModeFilter ( )
protectedvirtual

Member Function Documentation

◆ FaceBoundaryDraw()

bool IVtkTools_DisplayModeFilter::FaceBoundaryDraw ( ) const
inline

Returns True if drawing Boundary of faces for shading mode is defined.

◆ GetDisplayMode()

IVtk_DisplayMode IVtkTools_DisplayModeFilter::GetDisplayMode ( ) const

Get current display mode.

◆ IsSmoothShading()

bool IVtkTools_DisplayModeFilter::IsSmoothShading ( ) const
inline

Returns TRUE if vertex normals should be included for smooth shading within DM_Shading mode or not.

◆ MeshTypesForMode()

const IVtk_IdTypeMap& IVtkTools_DisplayModeFilter::MeshTypesForMode ( IVtk_DisplayMode  theMode) const

Returns list of displaying mesh element types for the given display mode.

◆ PrintSelf()

void IVtkTools_DisplayModeFilter::PrintSelf ( std::ostream &  os,
vtkIndent  indent 
)

◆ RequestData()

virtual int IVtkTools_DisplayModeFilter::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
overrideprotectedvirtual

Filter cells according to the given set of ids.

Reimplemented from IVtkTools_SubPolyDataFilter.

◆ SetDisplayMode()

void IVtkTools_DisplayModeFilter::SetDisplayMode ( const IVtk_DisplayMode  aMode)

Set display mode to define cells types to be passed through this filter.

◆ SetDisplaySharedVertices()

void IVtkTools_DisplayModeFilter::SetDisplaySharedVertices ( const bool  doDisplay)

Display or not shared vertices.

◆ SetFaceBoundaryDraw()

void IVtkTools_DisplayModeFilter::SetFaceBoundaryDraw ( bool  theToDraw)

Draw Boundary of faces for shading mode.

◆ SetMeshTypesForMode()

void IVtkTools_DisplayModeFilter::SetMeshTypesForMode ( IVtk_DisplayMode  theMode,
const IVtk_IdTypeMap theMeshTypes 
)

Set a list of displaying mesh element types for the given display mode.

◆ SetSmoothShading()

void IVtkTools_DisplayModeFilter::SetSmoothShading ( bool  theIsSmooth)

Set if vertex normals should be included for smooth shading or not.

◆ vtkTypeMacro()

IVtkTools_DisplayModeFilter::vtkTypeMacro ( IVtkTools_DisplayModeFilter  ,
IVtkTools_SubPolyDataFilter   
)

Field Documentation

◆ myDisplayMode

IVtk_DisplayMode IVtkTools_DisplayModeFilter::myDisplayMode
protected

Display mode defining mesh types to pass through this filter.

◆ myDoDisplaySharedVertices

bool IVtkTools_DisplayModeFilter::myDoDisplaySharedVertices
protected

◆ myDrawFaceBoundaries

bool IVtkTools_DisplayModeFilter::myDrawFaceBoundaries
protected

Draw Face boundaries within shading display mode.

◆ myIsSmoothShading

bool IVtkTools_DisplayModeFilter::myIsSmoothShading
protected

include vertex normals for smooth shading or not

◆ myModesDefinition

IVtk_IdTypeMap IVtkTools_DisplayModeFilter::myModesDefinition[2]
protected

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