*/
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,
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);