mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-04 07:40:33 +05:00
Fix: restore "Show/Hide/Show Only" for GEOM component.
This commit is contained in:
parent
1dd8f0e9e6
commit
078431b1ad
@ -1701,8 +1701,9 @@ void GEOM_Displayer::setShape( const TopoDS_Shape& theShape )
|
|||||||
bool GEOM_Displayer::canBeDisplayed( const QString& entry, const QString& viewer_type ) const
|
bool GEOM_Displayer::canBeDisplayed( const QString& entry, const QString& viewer_type ) const
|
||||||
{
|
{
|
||||||
_PTR(SObject) anObj = getStudy()->studyDS()->FindObjectID( (const char*)entry.toLatin1() );
|
_PTR(SObject) anObj = getStudy()->studyDS()->FindObjectID( (const char*)entry.toLatin1() );
|
||||||
GEOM::GEOM_Object_var aGeomObj = GEOM::GEOM_Object::_narrow(GeometryGUI::ClientSObjectToObject(anObj)); // enable displaying of GEOM objects only
|
GEOM::GEOM_Object_var aGeomObj = GEOM::GEOM_Object::_narrow(GeometryGUI::ClientSObjectToObject(anObj)); // enable displaying of GEOM objects
|
||||||
return !CORBA::is_nil( aGeomObj ) && (viewer_type == SOCC_Viewer::Type() || viewer_type == SVTK_Viewer::Type());
|
GEOM::GEOM_Gen_var aCompObj = GEOM::GEOM_Gen::_narrow(GeometryGUI::ClientSObjectToObject(anObj)); // enable displaying of whole GEOM component
|
||||||
|
return ( !CORBA::is_nil( aGeomObj ) || !CORBA::is_nil( aCompObj ) ) && (viewer_type == SOCC_Viewer::Type() || viewer_type == SVTK_Viewer::Type());
|
||||||
}
|
}
|
||||||
|
|
||||||
int GEOM_Displayer::SetDisplayMode( const int theMode )
|
int GEOM_Displayer::SetDisplayMode( const int theMode )
|
||||||
|
Loading…
Reference in New Issue
Block a user