SHAPER  9.12.0
PartSet_OperationPrs Class Reference

A redefinition of standard AIS Interactive Object in order to provide colored presentation of a list of shapes. More...

Inheritance diagram for PartSet_OperationPrs:
Inheritance graph

Public Member Functions

 PartSet_OperationPrs (ModuleBase_IWorkshop *theWorkshop)
 Constructor. More...
 
bool hasShapes ()
 Returns true if the feature contains shapes or results. More...
 
void setShapeColor (const Quantity_Color &theColor)
 Sets the colors for the presentation compute. More...
 
void useAISWidth ()
 Switch on using of the AIS presentation with of the shape object increased on the delta. More...
 
virtual DEFINE_STANDARD_RTTIEXT(PartSet_OperationPrs, ViewerData_AISShape) protected void ComputeSelection (const Handle &&aSelection, const Standard_Integer aMode)
 Redefinition of virtual function. More...
 

Protected Member Functions

NCollection_DataMap< TopoDS_Shape, Handle > & shapesMap ()
 list of visualized shapes More...
 

Friends

class PartSet_CustomPrs
 

Detailed Description

A redefinition of standard AIS Interactive Object in order to provide colored presentation of a list of shapes.

It contains a shapes where the parameter feature refers. It processes the following types of attributes: ModelAPI_AttributeSelectionList, ModelAPI_AttributeRefAttr, ModelAPI_AttributeSelection and ModelAPI_AttributeReference. The selection for this presentation is absent.

Constructor & Destructor Documentation

◆ PartSet_OperationPrs()

PartSet_OperationPrs::PartSet_OperationPrs ( ModuleBase_IWorkshop theWorkshop)

Constructor.

Member Function Documentation

◆ hasShapes()

bool PartSet_OperationPrs::hasShapes ( )

Returns true if the feature contains shapes or results.

◆ setShapeColor()

void PartSet_OperationPrs::setShapeColor ( const Quantity_Color &  theColor)

Sets the colors for the presentation compute.

Parameters
theColoran argument shapes color

◆ useAISWidth()

void PartSet_OperationPrs::useAISWidth ( )

Switch on using of the AIS presentation with of the shape object increased on the delta.

◆ ComputeSelection()

void PartSet_OperationPrs::ComputeSelection ( const Handle &&  aSelection,
const Standard_Integer  aMode 
)
virtual

Redefinition of virtual function.

◆ shapesMap()

NCollection_DataMap< TopoDS_Shape, Handle > & PartSet_OperationPrs::shapesMap ( )
protected

list of visualized shapes

Returns
a map of shapes