mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 10:08:35 +05:00
Eliminate useless GetSubShape() lines in the python dump
This commit is contained in:
parent
bf697caef8
commit
68aba60ffd
@ -325,6 +325,12 @@ module GEOM
|
||||
*/
|
||||
boolean IsShape();
|
||||
|
||||
/*
|
||||
* Return true if passed object is identical to this object
|
||||
* \param other object being compared with this one
|
||||
*/
|
||||
boolean IsSame(in GEOM_Object other);
|
||||
|
||||
/*!
|
||||
* Set list of parameters
|
||||
* \param theParameters is a string containing the notebook variables separated by ":" symbol,
|
||||
|
@ -491,6 +491,18 @@ bool GEOM_Object_i::IsShape()
|
||||
return !_impl->GetValue().IsNull() && _impl->GetType() != GEOM_MARKER;
|
||||
}
|
||||
|
||||
bool GEOM_Object_i::IsSame(GEOM::GEOM_Object_ptr other)
|
||||
{
|
||||
TopoDS_Shape thisShape = _impl->GetValue();
|
||||
TopoDS_Shape otherShape;
|
||||
if ( !CORBA::is_nil( other ) ) {
|
||||
Handle(GEOM_Object) otherObject = GEOM_Engine::GetEngine()->GetObject( other->GetStudyID(), other->GetEntry(), false );
|
||||
if ( !otherObject.IsNull() )
|
||||
otherShape = otherObject->GetValue();
|
||||
}
|
||||
return thisShape.IsSame( otherShape );
|
||||
}
|
||||
|
||||
void GEOM_Object_i::SetParameters(const char* theParameters)
|
||||
{
|
||||
_impl->SetParameters((char*)theParameters);
|
||||
|
@ -97,6 +97,8 @@ class GEOM_I_EXPORT GEOM_Object_i : public virtual POA_GEOM::GEOM_Object, public
|
||||
|
||||
virtual GEOM::GEOM_Object_ptr GetMainShape();
|
||||
|
||||
virtual bool IsSame(GEOM::GEOM_Object_ptr other);
|
||||
|
||||
virtual bool IsShape();
|
||||
|
||||
virtual void SetParameters(const char* theParameters);
|
||||
|
Loading…
Reference in New Issue
Block a user