Version: 8.3.0
Home
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
SubShapeID Class Reference

This class enables the use of sub-shapes in sets or as dictionary keys. More...

Public Member Functions

def __init__
 
def getObj
 Return the sub-shape (GEOM object). More...
 
def __eq__
 
def __hash__
 

Private Attributes

 _mainShape
 
 _id
 

Detailed Description

This class enables the use of sub-shapes in sets or as dictionary keys.

It implements eq and hash methods so that sub-shapes with the same CORBA object mainShape and the same id are considered equal.

Constructor & Destructor Documentation

def __init__ (   self,
  mainShape,
  id 
)

Member Function Documentation

def getObj (   self,
  geom 
)

Return the sub-shape (GEOM object).

geom is a pseudo-geompy object used to find the geometrical object.

References SubShapeID._id, and SubShapeID._mainShape.

def __eq__ (   self,
  other 
)

References SubShapeID._id.

def __hash__ (   self)

References SubShapeID._id.

Field Documentation

_mainShape
private
_id
private