[Roassal2] RTGridView not updating on zoom

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

[Roassal2] RTGridView not updating on zoom

Jan Blizničenko
Hi

I was just passing by DynaCASE once again.
It uses RTGridView and I noticed that when I zoom out camera or resize (enlarge) window too much, grid remains too small in the center of the canvas with empty space around it.

Therefore I used few more events and callbacks which reset grid path in those cases.

mcz file: https://monosnap.com/file/044YyhaPtxCcwsModv7Cb5IotPpXPN

By the way why does RTCanvas use TRResizeCanvasEvent and not TRExtentCallback which would seem to me more uniform with rest of Trachel?

Jan Blizničenko
Reply | Threaded
Open this post in threaded view
|

Re: [Roassal2] RTGridView not updating on zoom

abergel
Hi Jan!

Thanks!!!
We will look into this.

Alexandre


> On Feb 5, 2016, at 9:13 AM, Jan Blizničenko <[hidden email]> wrote:
>
> Hi
>
> I was just passing by DynaCASE once again.
> It uses RTGridView and I noticed that when I zoom out camera or resize
> (enlarge) window too much, grid remains too small in the center of the
> canvas with empty space around it.
>
> Therefore I used few more events and callbacks which reset grid path in
> those cases.
>
> mcz file: https://monosnap.com/file/044YyhaPtxCcwsModv7Cb5IotPpXPN
>
> By the way why does RTCanvas use TRResizeCanvasEvent and not
> TRExtentCallback which would seem to me more uniform with rest of Trachel?
>
> Jan Blizničenko
>
>
>
>
> --
> View this message in context: http://forum.world.st/Roassal2-RTGridView-not-updating-on-zoom-tp4876032.html
> Sent from the Moose mailing list archive at Nabble.com.
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Roassal2] RTGridView not updating on zoom

Peter Uhnak
There was some edge cases when the grid that I didn't cover (such as forceful resizing of windows)… but I finished my studies today so I can finally get back to programmingand look at this (unless Alex has already fixed it).

Peter

On Fri, Feb 5, 2016 at 5:10 PM, Alexandre Bergel <[hidden email]> wrote:
Hi Jan!

Thanks!!!
We will look into this.

Alexandre


> On Feb 5, 2016, at 9:13 AM, Jan Blizničenko <[hidden email]> wrote:
>
> Hi
>
> I was just passing by DynaCASE once again.
> It uses RTGridView and I noticed that when I zoom out camera or resize
> (enlarge) window too much, grid remains too small in the center of the
> canvas with empty space around it.
>
> Therefore I used few more events and callbacks which reset grid path in
> those cases.
>
> mcz file: https://monosnap.com/file/044YyhaPtxCcwsModv7Cb5IotPpXPN
>
> By the way why does RTCanvas use TRResizeCanvasEvent and not
> TRExtentCallback which would seem to me more uniform with rest of Trachel?
>
> Jan Blizničenko
>
>
>
>
> --
> View this message in context: http://forum.world.st/Roassal2-RTGridView-not-updating-on-zoom-tp4876032.html
> Sent from the Moose mailing list archive at Nabble.com.
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Roassal2] RTGridView not updating on zoom

Peter Uhnak
As for the naming (which I didn't create), TRResizeCanvasEvent is an Announcement event, and not a callback. (After all, canvas resizing is much more complex than resizing of a regular shape).

On Tue, Feb 9, 2016 at 4:13 PM, Peter Uhnák <[hidden email]> wrote:
There was some edge cases when the grid that I didn't cover (such as forceful resizing of windows)… but I finished my studies today so I can finally get back to programmingand look at this (unless Alex has already fixed it).

Peter

On Fri, Feb 5, 2016 at 5:10 PM, Alexandre Bergel <[hidden email]> wrote:
Hi Jan!

Thanks!!!
We will look into this.

Alexandre


> On Feb 5, 2016, at 9:13 AM, Jan Blizničenko <[hidden email]> wrote:
>
> Hi
>
> I was just passing by DynaCASE once again.
> It uses RTGridView and I noticed that when I zoom out camera or resize
> (enlarge) window too much, grid remains too small in the center of the
> canvas with empty space around it.
>
> Therefore I used few more events and callbacks which reset grid path in
> those cases.
>
> mcz file: https://monosnap.com/file/044YyhaPtxCcwsModv7Cb5IotPpXPN
>
> By the way why does RTCanvas use TRResizeCanvasEvent and not
> TRExtentCallback which would seem to me more uniform with rest of Trachel?
>
> Jan Blizničenko
>
>
>
>
> --
> View this message in context: http://forum.world.st/Roassal2-RTGridView-not-updating-on-zoom-tp4876032.html
> Sent from the Moose mailing list archive at Nabble.com.
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Roassal2] RTGridView not updating on zoom

Jan Blizničenko
In reply to this post by Peter Uhnak
Congratulations, Peter :)

I wouldn't call resizing windows "forceful" - it's one of basic functions of windows. Zooming by mouse wheel has been already handled, but not by directly calling TRCamera methods (zooming by DynaCASE buttons in our case). That mcz I linked in original message should fix it, although it would be better if you verified it of course.

Jan

Peter Uhnák wrote
There was some edge cases when the grid that I didn't cover (such as
forceful resizing of windows)… but I finished my studies today so I can
finally get back to programmingand look at this (unless Alex has already
fixed it).

Peter

On Fri, Feb 5, 2016 at 5:10 PM, Alexandre Bergel <[hidden email]>
wrote:

> Hi Jan!
>
> Thanks!!!
> We will look into this.
>
> Alexandre
>
>
> > On Feb 5, 2016, at 9:13 AM, Jan Blizničenko <[hidden email]>
> wrote:
> >
> > Hi
> >
> > I was just passing by DynaCASE once again.
> > It uses RTGridView and I noticed that when I zoom out camera or resize
> > (enlarge) window too much, grid remains too small in the center of the
> > canvas with empty space around it.
> >
> > Therefore I used few more events and callbacks which reset grid path in
> > those cases.
> >
> > mcz file: https://monosnap.com/file/044YyhaPtxCcwsModv7Cb5IotPpXPN
> >
> > By the way why does RTCanvas use TRResizeCanvasEvent and not
> > TRExtentCallback which would seem to me more uniform with rest of
> Trachel?
> >
> > Jan Blizničenko
> >
> >
> >
> >
> > --
> > View this message in context:
> http://forum.world.st/Roassal2-RTGridView-not-updating-on-zoom-tp4876032.html
> > Sent from the Moose mailing list archive at Nabble.com.
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.list.inf.unibe.ch/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev
>

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Roassal2] RTGridView not updating on zoom

Peter Uhnak
On Tue, Feb 9, 2016 at 3:59 PM, Jan Blizničenko <[hidden email]> wrote:
Congratulations, Peter :)

Thanks :)
 

I wouldn't call resizing windows "forceful" - it's one of basic functions of
windows. Zooming by mouse wheel has been already handled, but not by
directly calling TRCamera methods (zooming by DynaCASE buttons in our case).
That mcz I linked in original message should fix it, although it would be
better if you verified it of course.

Yes, the buttons are broken I'm aware of that, I just ignored it when I was creating RTGridView as I don't use the buttons themselves. (Unless your mouse or system is broken, there is really no reason to even have the buttons there...)
But I'll add it to my (currently infinite) todo queue. :)

Peter
 

Jan


Peter Uhnák wrote
> There was some edge cases when the grid that I didn't cover (such as
> forceful resizing of windows)… but I finished my studies today so I can
> finally get back to programmingand look at this (unless Alex has already
> fixed it).
>
> Peter
>
> On Fri, Feb 5, 2016 at 5:10 PM, Alexandre Bergel &lt;

> alexandre.bergel@

> &gt;
> wrote:
>
>> Hi Jan!
>>
>> Thanks!!!
>> We will look into this.
>>
>> Alexandre
>>
>>
>> > On Feb 5, 2016, at 9:13 AM, Jan Blizničenko &lt;

> bliznjan@.cvut

> &gt;
>> wrote:
>> >
>> > Hi
>> >
>> > I was just passing by DynaCASE once again.
>> > It uses RTGridView and I noticed that when I zoom out camera or resize
>> > (enlarge) window too much, grid remains too small in the center of the
>> > canvas with empty space around it.
>> >
>> > Therefore I used few more events and callbacks which reset grid path in
>> > those cases.
>> >
>> > mcz file: https://monosnap.com/file/044YyhaPtxCcwsModv7Cb5IotPpXPN
>> >
>> > By the way why does RTCanvas use TRResizeCanvasEvent and not
>> > TRExtentCallback which would seem to me more uniform with rest of
>> Trachel?
>> >
>> > Jan Blizničenko
>> >
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://forum.world.st/Roassal2-RTGridView-not-updating-on-zoom-tp4876032.html
>> > Sent from the Moose mailing list archive at Nabble.com.
>> > _______________________________________________
>> > Moose-dev mailing list
>> >

> Moose-dev@.unibe

>> > https://www.list.inf.unibe.ch/listinfo/moose-dev
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>>

> Moose-dev@.unibe

>> https://www.list.inf.unibe.ch/listinfo/moose-dev
>>
>
> _______________________________________________
> Moose-dev mailing list

> Moose-dev@.unibe

> https://www.list.inf.unibe.ch/listinfo/moose-dev





--
View this message in context: http://forum.world.st/Roassal2-RTGridView-not-updating-on-zoom-tp4876032p4876585.html
Sent from the Moose mailing list archive at Nabble.com.
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Roassal2] RTGridView not updating on zoom

akevalion
In reply to this post by Jan Blizničenko
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: [Roassal2] RTGridView not updating on zoom

abergel
In reply to this post by Peter Uhnak
Hi!

I am a bit lost since it is not clear which action we can take on this.
Is there a new piece of code we can try?

Cheers,
Alexandre


> On Feb 9, 2016, at 12:34 PM, Peter Uhnák <[hidden email]> wrote:
>
> On Tue, Feb 9, 2016 at 3:59 PM, Jan Blizničenko <[hidden email]> wrote:
> Congratulations, Peter :)
>
> Thanks :)
>  
>
> I wouldn't call resizing windows "forceful" - it's one of basic functions of
> windows. Zooming by mouse wheel has been already handled, but not by
> directly calling TRCamera methods (zooming by DynaCASE buttons in our case).
> That mcz I linked in original message should fix it, although it would be
> better if you verified it of course.
>
> Yes, the buttons are broken I'm aware of that, I just ignored it when I was creating RTGridView as I don't use the buttons themselves. (Unless your mouse or system is broken, there is really no reason to even have the buttons there...)
> But I'll add it to my (currently infinite) todo queue. :)
>
> Peter
>  
>
> Jan
>
>
> Peter Uhnák wrote
> > There was some edge cases when the grid that I didn't cover (such as
> > forceful resizing of windows)… but I finished my studies today so I can
> > finally get back to programmingand look at this (unless Alex has already
> > fixed it).
> >
> > Peter
> >
> > On Fri, Feb 5, 2016 at 5:10 PM, Alexandre Bergel &lt;
>
> > alexandre.bergel@
>
> > &gt;
> > wrote:
> >
> >> Hi Jan!
> >>
> >> Thanks!!!
> >> We will look into this.
> >>
> >> Alexandre
> >>
> >>
> >> > On Feb 5, 2016, at 9:13 AM, Jan Blizničenko &lt;
>
> > bliznjan@.cvut
>
> > &gt;
> >> wrote:
> >> >
> >> > Hi
> >> >
> >> > I was just passing by DynaCASE once again.
> >> > It uses RTGridView and I noticed that when I zoom out camera or resize
> >> > (enlarge) window too much, grid remains too small in the center of the
> >> > canvas with empty space around it.
> >> >
> >> > Therefore I used few more events and callbacks which reset grid path in
> >> > those cases.
> >> >
> >> > mcz file: https://monosnap.com/file/044YyhaPtxCcwsModv7Cb5IotPpXPN
> >> >
> >> > By the way why does RTCanvas use TRResizeCanvasEvent and not
> >> > TRExtentCallback which would seem to me more uniform with rest of
> >> Trachel?
> >> >
> >> > Jan Blizničenko
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > View this message in context:
> >> http://forum.world.st/Roassal2-RTGridView-not-updating-on-zoom-tp4876032.html
> >> > Sent from the Moose mailing list archive at Nabble.com.
> >> > _______________________________________________
> >> > Moose-dev mailing list
> >> >
>
> > Moose-dev@.unibe
>
> >> > https://www.list.inf.unibe.ch/listinfo/moose-dev
> >>
> >> --
> >> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> >> Alexandre Bergel  http://www.bergel.eu
> >> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >>
> >>
> >>
> >> _______________________________________________
> >> Moose-dev mailing list
> >>
>
> > Moose-dev@.unibe
>
> >> https://www.list.inf.unibe.ch/listinfo/moose-dev
> >>
> >
> > _______________________________________________
> > Moose-dev mailing list
>
> > Moose-dev@.unibe
>
> > https://www.list.inf.unibe.ch/listinfo/moose-dev
>
>
>
>
>
> --
> View this message in context: http://forum.world.st/Roassal2-RTGridView-not-updating-on-zoom-tp4876032p4876585.html
> Sent from the Moose mailing list archive at Nabble.com.
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev