On 04.07.2012 09:59, William Chu wrote:
Great! Thank you!

I have another question: 

Is it possible for a plugin to change the graphics view layout? I mean switching from the SingleView mode to the DoubleView, Grid or HSplit modes as defined in QtMultiViewLayout.

With regards,
William Chu
Hi,

include the RPC Interface to your plugin:
http://openflipper.org/Daily-Builds/Doc/Developer/RPCInterfacePage.html

Now you can call all scripting functions. The one you are looking for is:
  RPC::callFunction ("core", "multiViewMode", 1);

To get a list of these functions, start OF and go to
Scripting->Show Script Editor

Search for your function and click on it to show the usage information.

Best,
Jan Möbius


2012/7/4 Jan Möbius <moebius@cs.rwth-aachen.de>
On 29.06.2012 11:31, William Chu wrote:
> Hi Jan,
>
> Thank you for your help!
>
> I am trying to get a hand on these integrated viewers and I have a
> question now:
> If I want my plugin to use and to setup an integrated viewer (called an
> "examiner_widget" if I'm not wrong), how can I get a handler on the 2nd
> examiner_widget, for example? I searched the PluginFunctions and
> couldn't find a public function allowing me to do this.

Hi,

You should not get direcect access to the widget itself. Use the
Pluginfunctions (Especially in ViewControl) to setup the required
orthogonal view.

Best,
Jan Möbius

>
> With regards,
> William Chu
>
> 2012/6/25 Jan Möbius <moebius@cs.rwth-aachen.de
> <mailto:moebius@cs.rwth-aachen.de>>
>
>     On 20.06.2012 09:50, William Chu wrote:
>     > Hello,
>     >
>     > One month ago I discovered OpenFlipper and I started working on a
>     plugin.
>     > I am currently striving for adding a new scene viewer and I wish you
>     > could help me since I am having some difficulties.
>     >
>     > Here are the features I want to implement that give me troubles:
>     > My plugin can open a new popup window which shows a 2D-planar-view of
>     > the 3D-mesh currently loaded in the main OpenFlipper's viewport.
>     > In this popup, the user is provided with some features already
>     available
>     > in the main Openflipper's viewport such as zoom/pan and pick.
>     >
>     > Actually, I digged into OpenMesh's Core and CoreWidget source code to
>     > check the main viewport's display and try to adapt it to my plugin.
>     > At this point, I am trying to copy the main scenegraph's structure and
>     > to create another scenegraph, handled by my plugin so that my plugin
>     > doesn't mess with OpenFlipper's own scenegraph.
>     >
>     > I am wondering if I am currently heading in the good direction or if
>     > it's possible to achieve my goals by the mean of adding nodes in
>     > Openflipper's main scenegraph, or any other way you could indicate me.
>     >
>     > Thanks for your help!
>     > William Chu
>     >
>     >
>     > _______________________________________________
>     > Openflipper mailing list
>     > Openflipper@lists.rwth-aachen.de
>     <mailto:Openflipper@lists.rwth-aachen.de>
>     > http://mailman.rwth-aachen.de/mailman/listinfo/openflipper
>
>     Hi,
>
>     maybe you can just use one of the integrated viewers (Hit space to
>     activate them). You can set one of them to orthogonal projection and
>     setup the modelview and projection. Then you can use all integrated
>     features of the standard viewer.
>
>     Best,
>     Jan
>
>     --
>     Dipl.Inform. Jan Möbius
>     Department of Computer Science VIII
>     Aachen University of Technology (RWTH)
>     Ahornstrasse 55, 52074 Aachen, Germany
>
>     Phone   ++49 (0)241 80-21817
>     Fax     ++49 (0)241 80-22899
>     mailto:moebius@cs.rwth-aachen.de <mailto:moebius@cs.rwth-aachen.de>
>     http://www.rwth-graphics.de
>     _______________________________________________
>     Openflipper mailing list
>     Openflipper@lists.rwth-aachen.de
>     <mailto:Openflipper@lists.rwth-aachen.de>
>     http://mailman.rwth-aachen.de/mailman/listinfo/openflipper
>
>
>
>
> _______________________________________________
> Openflipper mailing list
> Openflipper@lists.rwth-aachen.de
> http://mailman.rwth-aachen.de/mailman/listinfo/openflipper


--
Dipl.Inform. Jan Möbius
Department of Computer Science VIII
Aachen University of Technology (RWTH)
Ahornstrasse 55, 52074 Aachen, Germany

Phone   ++49 (0)241 80-21817
Fax     ++49 (0)241 80-22899
mailto:moebius@cs.rwth-aachen.de
http://www.rwth-graphics.de
_______________________________________________
Openflipper mailing list
Openflipper@lists.rwth-aachen.de
http://mailman.rwth-aachen.de/mailman/listinfo/openflipper



_______________________________________________
Openflipper mailing list
Openflipper@lists.rwth-aachen.de
http://mailman.rwth-aachen.de/mailman/listinfo/openflipper


-- 
Dipl.Inform. Jan Möbius
Department of Computer Science VIII
Aachen University of Technology (RWTH)
Ahornstrasse 55, 52074 Aachen, Germany

Phone   ++49 (0)241 80-21817
Fax     ++49 (0)241 80-22899
mailto:moebius@cs.rwth-aachen.de
http://www.rwth-graphics.de