module()->removeObjectShape( (size_t)aViewer, anObj );
}
+ aViewer->update();
}
HYDROGUI_Shape* HYDROGUI_OCCDisplayer::createShape( const int theViewerId,
if ( theContext.IsNull() || theObject.IsNull() )
return aResShape;
- ObjectKind anObjectKind = theObject->GetKind();
- if ( anObjectKind != KIND_IMAGE &&
- anObjectKind != KIND_POLYLINE &&
- anObjectKind != KIND_IMMERSIBLE_ZONE &&
- anObjectKind != KIND_REGION &&
- anObjectKind != KIND_ZONE &&
- anObjectKind != KIND_OBSTACLE )
+ if ( !HYDROGUI_Tool::IsObjectHasPresentation( theObject, OCCViewer_Viewer::Type() ) )
return aResShape;
aResShape = new HYDROGUI_Shape( theContext, theObject );
}
}
-
+QString HYDROGUI_OCCDisplayer::GetType() const
+{
+ return OCCViewer_Viewer::Type();
+}