Dear Jan Möbius,
Address: 504 Room, SEIEE buiding 3#, 800 Dongchuan Rd,Min Hang,Shanghai,200240,China
Dear Jan Möbius,Thanks for your helpful answers.Concerning to topic: About the plugin desing : one host and other slaved.We still have our different view.Firstly, We do not want to put the host class and the slave classes into different folders,instead, we prefer to keeping them together in the same project, because they focus on the same 'business'.We split them because we want to make the 'business' looks clear;We make them inherit by LogInterface, RPCInterface and others because we need to call external functions, like log, rpc, within them.Secondly, let me state the problems with our current design.For example, we have a subclass named :GeometricSignature.cpp.We put Q_EXPORT_PLUGIN2( lmgcgeometricsignature , LMGCGeometricSignature); at the bottom of it.however, we got the following building eorrs2>Linking...2>LMGCPlugin.obj : error LNK2005: _qt_plugin_query_verification_data already defined in GeometricSignature.obj2>LMGCPlugin.obj : error LNK2005: _qt_plugin_instance already defined in GeometricSignature.objif we remvoved Q_EXPORT_PLUGIN2( lmgcgeometricsignature , LMGCGeometricSignature); out of it,Building is fine, but calls to those external functions do not work; that is say, no errors, no feedbacks;From the log window, we can see only the main class is loaded; other subclasses do not loaded as plugins even they have the same inheritance as the main class.We are looking forward to hearing suggestions from you.Best Regards,
Xianyong Liu
Shanghai JiaoTong UniversityOffice: +86 021 34204586
E-mail: xyliu80@gmail.comAddress: 504 Room, SEIEE buiding 3#, 800 Dongchuan Rd,Min Hang,Shanghai,200240,China
From: openflipper-requestDate: 2012-10-18 18:00To: openflipperSubject: Openflipper Digest, Vol 32, Issue 2Send Openflipper mailing list submissions toTo subscribe or unsubscribe via the World Wide Web, visitor, via email, send a message with subject or body 'help' toYou can reach the person managing the list atWhen replying, please edit your Subject line so it is more specificthan "Re: Contents of Openflipper digest..."Today's Topics:1. About Gaussian curvature computation (xyliu80@gmail.com)2. About the plugin desing : one host and other slaved.3. Re: About the plugin desing : one host and other slaved.(Jan Möbius)4. Re: About Gaussian curvature computation (Jan Möbius)----------------------------------------------------------------------Message: 1Date: Wed, 17 Oct 2012 23:01:20 +0800From: "xyliu80@gmail.com" <xyliu80@gmail.com>To: openflipper <openflipper@lists.rwth-aachen.de>Subject: [Openflipper] About Gaussian curvature computationMessage-ID: <201210172301158434251@gmail.com>Content-Type: text/plain; charset="gb2312"Dear Openflipper developer,We saw that, in openflipper,the initial Guassian curvature for each vetex is :double gauss_curv( 2.0*M_PI);However, in lots of papers, they set the initial value to M_PI, if it is a boundary vertex.Could you please explain such difference?Thank you for your great work in graphics community!Best Regards,Xianyong LiuShanghai JiaoTong UniversityOffice: +86 021 34204586E-mail: xyliu80@gmail.comAddress: 504 Room, SEIEE buiding 3#, 800 Dongchuan Rd,Min Hang,Shanghai,200240,China-------------- next part --------------An HTML attachment was scrubbed...------------------------------Message: 2Date: Thu, 18 Oct 2012 12:15:01 +0800From: "xyliu80@gmail.com" <xyliu80@gmail.com>To: openflipper <openflipper@lists.rwth-aachen.de>Subject: [Openflipper] About the plugin desing : one host and otherslaved.Message-ID: <201210181214589375012@gmail.com>Content-Type: text/plain; charset="gb2312"Dear Openflipper developer,Suppose we have built up a plugin, but we want to split it into a classes and other slaved ones.Every inherits from QObject, BaseInterface, LoggingInterface, StatusbarInterface, RPCInterfacesuch that they can call other plugin functions, like log, rpc::callFunction, by themselves.The problem is that we found such design does not work,because they can not work as we imagine;Only the primary one works fine.Therefore, we want to ask for suggestions for the support team!Best Regards,Xianyong LiuShanghai JiaoTong UniversityOffice: +86 021 34204586E-mail: xyliu80@gmail.comAddress: 504 Room, SEIEE buiding 3#, 800 Dongchuan Rd,Min Hang,Shanghai,200240,China-------------- next part --------------An HTML attachment was scrubbed...------------------------------Message: 3Date: Thu, 18 Oct 2012 09:19:02 +0200From: Jan Möbius <moebius@cs.rwth-aachen.de>Subject: Re: [Openflipper] About the plugin desing : one host andother slaved.Message-ID: <507FAD66.10801@cs.rwth-aachen.de>Content-Type: text/plain; charset=ISO-8859-1Hi,On 18.10.2012 06:15, xyliu80@gmail.com wrote:> Dear Openflipper developer,> Suppose we have built up a plugin, but we want to split it into> a classes and other slaved ones.> Every inherits from> QObject, BaseInterface, LoggingInterface, StatusbarInterface, RPCInterface> such that they can call other plugin functions, like log,> rpc::callFunction, by themselves.This setup is fine. Usually we also split the functionality into basicplugins. You have to put the plugins into separate folders atOpenFlippers top level directory. Additionally you have to make sure,that they have different names (especially the plugin name returned hasto be different).You can only have one class handling the interfaces in your plugin. Allother classes can be derived from QObject but have to communicate to thecore via the main plugin class (But you can connect the signals of yoursubclass directly to the signals of your ain class).> The problem is that we found such design does not work,> because they can not work as we imagine;Do you get any error message?> Only the primary one works fine.Take a look at the log window. When OpenFlipper starts, it shows whichplugins get loaded in the log window. Check for messages regardingplugins that are not loaded. If you use linux, you can start OpenFlipperwith the command line option "-c" which will print the full log to yourconsole.Best,Jan Möbius--Dipl.Inform. Jan MöbiusDepartment of Computer Science VIIIAachen University of Technology (RWTH)Ahornstrasse 55, 52074 Aachen, GermanyPhone ++49 (0)241 80-21817Fax ++49 (0)241 80-22899mailto:moebius@cs.rwth-aachen.de------------------------------Message: 4Date: Thu, 18 Oct 2012 09:28:32 +0200From: Jan Möbius <moebius@cs.rwth-aachen.de>Subject: Re: [Openflipper] About Gaussian curvature computationMessage-ID: <507FAFA0.1020203@cs.rwth-aachen.de>Content-Type: text/plain; charset=ISO-8859-1On 17.10.2012 17:01, xyliu80@gmail.com wrote:> Dear Openflipper developer,>> We saw that, in openflipper,> the initial Guassian curvature for each vetex is :> double gauss_curv( 2.0*M_PI);> However, in lots of papers, they set the initial value to M_PI, if it is> a boundary vertex.>> Could you please explain such difference?Was a bug. Boundary vertices where not handled at all. -> Fixed in svn.Best,Jan Möbius--Dipl.Inform. Jan MöbiusDepartment of Computer Science VIIIAachen University of Technology (RWTH)Ahornstrasse 55, 52074 Aachen, GermanyPhone ++49 (0)241 80-21817Fax ++49 (0)241 80-22899mailto:moebius@cs.rwth-aachen.de------------------------------_______________________________________________Openflipper mailing listEnd of Openflipper Digest, Vol 32, Issue 2******************************************