|
SHAPER
9.15.0
|
Class for filling ModelAPI_AttributeSelection. More...

Public Types | |
| enum | VariantType { VT_Empty , VT_ResultSubShapePair , VT_TypeSubShapeNamePair , VT_TypeInnerPointPair , VT_WeakNamingPair , VT_Filtering } |
Public Member Functions | |
| ModelHighAPI_Selection () | |
| Default constructor with empty selection. More... | |
| ModelHighAPI_Selection (const std::shared_ptr< ModelAPI_Result > &theContext, const std::shared_ptr< GeomAPI_Shape > &theSubShape=std::shared_ptr< GeomAPI_Shape >()) | |
| Constructor for result and sub-shape. More... | |
| ModelHighAPI_Selection (const std::string &theType, const std::wstring &theSubShapeName) | |
| Constructor for sub-shape by the textual Name. More... | |
| ModelHighAPI_Selection (const std::string &theType, const std::shared_ptr< GeomAPI_Pnt > &theSubShapeInnerPoint) | |
| Constructor for sub-shape by inner point coordinates. More... | |
| ModelHighAPI_Selection (const std::string &theType, const std::list< double > &theSubShapeInnerPoint) | |
| Constructor for sub-shape by inner point coordinates given by a tuple. More... | |
| ModelHighAPI_Selection (const std::string &theType, const std::wstring &theContextName, const int theIndex) | |
| Constructor for sub-shape by weak naming identifier. More... | |
| virtual | ~ModelHighAPI_Selection () |
| Destructor. More... | |
| virtual void | fillAttribute (const std::shared_ptr< ModelAPI_AttributeSelection > &theAttribute) const |
| Fill attribute values. More... | |
| virtual void | appendToList (const std::shared_ptr< ModelAPI_AttributeSelectionList > &theAttribute) const |
| Append to list attribute. More... | |
| virtual VariantType | variantType () const |
| virtual ResultSubShapePair | resultSubShapePair () const |
| virtual TypeSubShapeNamePair | typeSubShapeNamePair () const |
| virtual TypeInnerPointPair | typeInnerPointPair () const |
| virtual TypeWeakNamingPair | typeWeakNamingPair () const |
| virtual std::string | shapeType () const |
| void | setName (const std::wstring &theName) |
| Shortcut for result()->data()->setName() More... | |
| std::wstring | name () const |
| Shortcut for result()->data()->name() More... | |
| void | setColor (int theRed=0, int theGreen=0, int theBlue=0, bool random=false) |
| Change result's color. More... | |
| void | setSubShapeColor (const ModelHighAPI_Selection &theShape, int theRed, int theGreen, int theBlue) |
| Change subShape' color. More... | |
| std::list< int > | getSubShapeColor (const ModelHighAPI_Selection &theShape) |
| Get subShape' color. More... | |
| void | setDeflection (double theValue) |
| Change result's deflection. More... | |
| void | setTransparency (double theValue) |
| Change result's transparency. More... | |
| int | numberOfSubs () const |
| Returns the number of sub-elements. More... | |
| ModelHighAPI_Selection | subResult (int theIndex) const |
| Returns the sub-result by zero-base index. More... | |
Protected Attributes | |
| VariantType | myVariantType |
| ResultSubShapePair | myResultSubShapePair |
| TypeSubShapeNamePair | myTypeSubShapeNamePair |
| TypeInnerPointPair | myTypeInnerPointPair |
| TypeWeakNamingPair | myWeakNamingPair |
| std::shared_ptr< ModelAPI_FiltersFeature > | myFilterFeature |
Class for filling ModelAPI_AttributeSelection.
| ModelHighAPI_Selection::ModelHighAPI_Selection | ( | ) |
Default constructor with empty selection.
| ModelHighAPI_Selection::ModelHighAPI_Selection | ( | const std::shared_ptr< ModelAPI_Result > & | theContext, |
| const std::shared_ptr< GeomAPI_Shape > & | theSubShape = std::shared_ptr<GeomAPI_Shape>() |
||
| ) |
Constructor for result and sub-shape.
| ModelHighAPI_Selection::ModelHighAPI_Selection | ( | const std::string & | theType, |
| const std::wstring & | theSubShapeName | ||
| ) |
Constructor for sub-shape by the textual Name.
| ModelHighAPI_Selection::ModelHighAPI_Selection | ( | const std::string & | theType, |
| const std::shared_ptr< GeomAPI_Pnt > & | theSubShapeInnerPoint | ||
| ) |
Constructor for sub-shape by inner point coordinates.
| ModelHighAPI_Selection::ModelHighAPI_Selection | ( | const std::string & | theType, |
| const std::list< double > & | theSubShapeInnerPoint | ||
| ) |
Constructor for sub-shape by inner point coordinates given by a tuple.
| ModelHighAPI_Selection::ModelHighAPI_Selection | ( | const std::string & | theType, |
| const std::wstring & | theContextName, | ||
| const int | theIndex | ||
| ) |
Constructor for sub-shape by weak naming identifier.
|
virtual |
Destructor.
|
virtual |
Fill attribute values.
|
virtual |
Append to list attribute.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| void ModelHighAPI_Selection::setName | ( | const std::wstring & | theName | ) |
Shortcut for result()->data()->setName()
| std::wstring ModelHighAPI_Selection::name | ( | ) | const |
Shortcut for result()->data()->name()
| void ModelHighAPI_Selection::setColor | ( | int | theRed = 0, |
| int | theGreen = 0, |
||
| int | theBlue = 0, |
||
| bool | random = false |
||
| ) |
Change result's color.
| void ModelHighAPI_Selection::setSubShapeColor | ( | const ModelHighAPI_Selection & | theShape, |
| int | theRed, | ||
| int | theGreen, | ||
| int | theBlue | ||
| ) |
Change subShape' color.
| std::list< int > ModelHighAPI_Selection::getSubShapeColor | ( | const ModelHighAPI_Selection & | theShape | ) |
Get subShape' color.
| void ModelHighAPI_Selection::setDeflection | ( | double | theValue | ) |
Change result's deflection.
| void ModelHighAPI_Selection::setTransparency | ( | double | theValue | ) |
Change result's transparency.
| int ModelHighAPI_Selection::numberOfSubs | ( | ) | const |
Returns the number of sub-elements.
| ModelHighAPI_Selection ModelHighAPI_Selection::subResult | ( | int | theIndex | ) | const |
Returns the sub-result by zero-base index.