Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Visibility of objects.
Re: Visibility of objects. [message #28799 is a reply to message #28786] Fri, 17 September 2010 10:14 Go to previous message
281264 is currently offline  281264
Messages: 270
Registered: June 2010
Location: Spain
Experienced Member
I think that what you are suggesting is more suitable for multi-user applications. In my case things are simpler. There are few messages that one GLctrl has to pass the other GLCtrl (views), being Refresh() the most important one. So far I do not see the actual benefit of a more complex configuration.

Accessibility to the geometrical model is simple for I have declared it global (so far the model consist on points and lines in 3D, so I am using simple structs with few variable and Vectors to storage and manipulation). This is fine, for the time being.

With a single central GLCtrl this works fine. But when I implement several views with Docking, things change:

1.- depiction of the geom. in different views as it is being created in the central view is ok and straight forward. It woks fine.

2.- rotation and pan of views is ok.

3.- Zoom with associated window: problems. This works fine for the central view. But when I try to make a zoom (this requires the dynamic drawing of a zoom-window) on a secondary view, sometimes do work, others don’t, without apparent reason. It is weird to see, that when a view is docked in top position, it works, whereas when it is relocated in bottom position, it doesn’t. When it is floating, it works. I have spotted that, in some cases, Paint() function is not called correctly, for a reason that escapes to me. Paint() function is supposed to be called continuously, but when you have several views, how does it work?

4.- The auto-hide does not work. The auto-hide view destroys its hRC and then calls its Resize function, but with the central GLCtrl being the current hRC. Then glviewport function is directed toward the central GLCtrl, causing a deformation in the geometrical model. Ok, I shall not use it.

5.- Another alien thing is the behaviour of Key function for views. For example, when a view is floating (supposedly it is a new TopWindow, in addition to the main TopWindow), its Key method does not work, even if the view has the focus (i.e. it has been clicked). No idea why.

Although Docking is superb, it is evident that to work with Docking and several GLCtrls is not that simple. Also the lack of multithreading penalizes the combination of these features. Perhaps when Docking was not designed taking this scenario into account.

Please, if you have hints let me know them.

Many thanks.

Cheers,

Javier
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GLCtrl and Docking: do they work together as expected?
Next Topic: Debugger: access to global variables.
Goto Forum:
  


Current Time: Sat May 11 09:04:29 CEST 2024

Total time taken to generate the page: 0.01701 seconds