Open CASCADE Technology 7.8.0
|
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>
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. | |
void | SetDisplaySharedVertices (const bool doDisplay) |
Display or not shared vertices. | |
IVtk_DisplayMode | GetDisplayMode () const |
Get current display mode. | |
const IVtk_IdTypeMap & | MeshTypesForMode (IVtk_DisplayMode theMode) const |
Returns list of displaying mesh element types for the given display mode. | |
void | SetMeshTypesForMode (IVtk_DisplayMode theMode, const IVtk_IdTypeMap &theMeshTypes) |
Set a list of displaying mesh element types for the given display mode. | |
void | SetFaceBoundaryDraw (bool theToDraw) |
Draw Boundary of faces for shading mode. | |
bool | FaceBoundaryDraw () const |
Returns True if drawing Boundary of faces for shading mode is defined. | |
bool | IsSmoothShading () const |
Returns TRUE if vertex normals should be included for smooth shading within DM_Shading mode or not. | |
void | SetSmoothShading (bool theIsSmooth) |
Set if vertex normals should be included for smooth shading or not. | |
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. | |
void | AddData (const IVtk_IdTypeMap theSet) |
Add ids to be passed through this filter. | |
void | SetData (const IVtk_ShapeIdList theIds) |
Set ids to be passed through this filter. | |
void | AddData (const IVtk_ShapeIdList theIds) |
Add ids to be passed through this filter. | |
void | Clear () |
Clear ids set to be passed through this filter. | |
void | SetIdsArrayName (const char *theArrayName) |
Set ids array name. | |
void | SetDoFiltering (const bool theDoFiltering) |
Protected Member Functions | |
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override |
Filter cells according to the given set of ids. | |
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. | |
IVtk_IdTypeMap | myModesDefinition [2] |
bool | myDoDisplaySharedVertices |
bool | myDrawFaceBoundaries |
Draw Face boundaries within shading display mode. | |
bool | myIsSmoothShading |
include vertex normals for smooth shading or not | |
Protected Attributes inherited from IVtkTools_SubPolyDataFilter | |
IVtk_IdTypeMap | myIdsSet |
Set of ids to be passed through this filter. | |
const char * | myIdsArrayName |
bool | myDoFiltering |
bool | myToCopyNormals |
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.
|
protected |
|
protectedvirtual |
|
inline |
Returns True if drawing Boundary of faces for shading mode is defined.
IVtk_DisplayMode IVtkTools_DisplayModeFilter::GetDisplayMode | ( | ) | const |
Get current display mode.
|
inline |
Returns TRUE if vertex normals should be included for smooth shading within DM_Shading mode or not.
const IVtk_IdTypeMap & IVtkTools_DisplayModeFilter::MeshTypesForMode | ( | IVtk_DisplayMode | theMode | ) | const |
Returns list of displaying mesh element types for the given display mode.
void IVtkTools_DisplayModeFilter::PrintSelf | ( | std::ostream & | os, |
vtkIndent | indent | ||
) |
|
overrideprotectedvirtual |
Filter cells according to the given set of ids.
Reimplemented from IVtkTools_SubPolyDataFilter.
void IVtkTools_DisplayModeFilter::SetDisplayMode | ( | const IVtk_DisplayMode | aMode | ) |
Set display mode to define cells types to be passed through this filter.
Display or not shared vertices.
void IVtkTools_DisplayModeFilter::SetFaceBoundaryDraw | ( | bool | theToDraw | ) |
Draw Boundary of faces for shading mode.
void IVtkTools_DisplayModeFilter::SetMeshTypesForMode | ( | IVtk_DisplayMode | theMode, |
const IVtk_IdTypeMap & | theMeshTypes | ||
) |
Set a list of displaying mesh element types for the given display mode.
void IVtkTools_DisplayModeFilter::SetSmoothShading | ( | bool | theIsSmooth | ) |
Set if vertex normals should be included for smooth shading or not.
IVtkTools_DisplayModeFilter::vtkTypeMacro | ( | IVtkTools_DisplayModeFilter | , |
IVtkTools_SubPolyDataFilter | |||
) |
|
protected |
Display mode defining mesh types to pass through this filter.
|
protected |
|
protected |
Draw Face boundaries within shading display mode.
|
protected |
include vertex normals for smooth shading or not
|
protected |