Handle(AIS_InteractiveContext) anAISContext = myViewer->getAISContext();
- if ( anAISContext->IsSelected( thePlane ) )
+ if ( anAISContext->IsSelected( Handle(AIS_InteractiveObject)::DownCast(thePlane) ) )
{
return false;
}
Handle(AIS_InteractiveContext) anAISContext = myViewer->getAISContext();
- if ( !anAISContext->IsSelected( thePlane ) )
+ if ( !anAISContext->IsSelected( Handle(AIS_InteractiveObject)::DownCast(thePlane) ) )
{
return false;
}
// process mouse click on the object
if ( myIsClickable )
{
- myViewer->getAISContext()->SetSelected( aPlane );
+ myViewer->getAISContext()->SetSelected( Handle(AIS_InteractiveObject)::DownCast(aPlane) );
emit planeClicked( aPlane );
}
${CAS_INCLUDE_DIRS}
)
+# libraries to link to
+SET(_link_LIBRARIES ${CAS_KERNEL})
+
ADD_LIBRARY(SalomePrs SALOME_Prs.cxx)
+TARGET_LINK_LIBRARIES(SalomePrs ${_link_LIBRARIES})
+
INSTALL(TARGETS SalomePrs EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(FILES SALOME_Prs.h DESTINATION ${SALOME_INSTALL_HEADERS})