<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19088"></HEAD>
<BODY>
<DIV><FONT size=2 face=Arial><SPAN
class=189055510-04072011>Hi,</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=189055510-04072011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=189055510-04072011>I need to extend the
pq3DWidget class by adding another type of widget (like the "Spline" widget
already present). Looking at the ParaView source code, the pq3DWidget
method createWidgets() initially cycles through all the interfaces loaded as
plugins, which are found using the command </SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=189055510-04072011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=189055510-04072011><FONT
size=2>QList<pq3DWidgetInterface*> interfaces =
pqApplicationCore::instance()->getPluginManager()->findInterfaces<pq3DWidgetInterface*>();</FONT></SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=189055510-04072011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=189055510-04072011>My question is, how
do I add interfaces of type pq3DWidgetInterface, so that I can implement my own
3D Widget subclass? Is there a CMake macro to do this? Can anyone
point me towards a relevant example?</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=189055510-04072011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=189055510-04072011>Thanks,</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV align=left>
<DIV align=left><FONT size=2 face=Arial>Michael</FONT></DIV>
<DIV align=left><FONT size=2 face=Arial></FONT> </DIV></DIV>
<DIV> </DIV> <br>
********************************************************************<br>
This email and any attachments are confidential to the intended<br>
recipient and may also be privileged. If you are not the intended<br>
recipient please delete it from your system and notify the sender.<br>
You should not copy it or use it for any purpose nor disclose or<br>
distribute its contents to any other person.<br>
********************************************************************<br>
<br>
</body></HTML>