Version: 6.3.1
Public Member Functions | Private Attributes

GEOM_PY.structelem.parts.SubShapeID Class Reference

Public Member Functions

def __init__
def getObj
def __eq__
def __hash__

Private Attributes

 _mainShape
 _id

Detailed Description

This class enables the use of subshapes in sets or as dictionary keys.
It implements __eq__ and __hash__ methods so that subshapes with the same
CORBA object `mainShape` and the same `id` are considered equal.

Constructor & Destructor Documentation

def GEOM_PY.structelem.parts.SubShapeID.__init__ (   self,
  mainShape,
  id 
)

Member Function Documentation

def GEOM_PY.structelem.parts.SubShapeID.getObj (   self,
  geom 
)
Return the subshape (GEOM object). `geom` is a pseudo-geompy object
used to find the geometrical object.
def GEOM_PY.structelem.parts.SubShapeID.__eq__ (   self,
  other 
)
def GEOM_PY.structelem.parts.SubShapeID.__hash__ (   self)

Field Documentation

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS