Rank: Advanced Member
Groups: Guest
Joined: 3/3/2008(UTC) Posts: 185
Thanks: 8 times
|
Hi,
Just wondering is that possible to implement Snap to Grid for the multilayerviewer and vobejct?
Please advice.
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 8/3/2003(UTC) Posts: 1,070
Thanks: 1 times Was thanked: 12 time(s) in 12 post(s)
|
Hello Ching-Yen,
Thanks for your suggestion. We have this feature in our wish-list. It will be implemented in one of the future releases. |
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 9/10/2010(UTC) Posts: 57
Thanks: 1 times
|
Can following be done for Grid:
1. Change background color of Grid 2. Change Grid's grid interval size
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 3/3/2008(UTC) Posts: 185
Thanks: 8 times
|
mzhao wrote:Can following be done for Grid:
1. Change background color of Grid 2. Change Grid's grid interval size Has grid being implemented yet?
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 1/31/2005(UTC) Posts: 458
Was thanked: 5 time(s) in 5 post(s)
|
Hello, 'Snap to grid' feature is still only in wish-list and hasn't implemented yet. However if you are talking about grid background texture - you may change it's colors, but not it's size. To change colors please use these properties: WorkspaceBackColor1 & WorkspaceBackColor2 |
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 9/10/2010(UTC) Posts: 57
Thanks: 1 times
|
Hello, Alex, We tried to implement our own version of grid. We add the features of changing grid size interval and snapping to grid. We tried two ways to add grid : 1) use LineVObject 2) override draw method. The first method seems to work in the tested codes, but a little bit slow when updating grid property, in particular, changing from a large grid size interval to a smaller one. The second one is reasonable as regarding to speed of drawing grid. But the problem for the second one is that when we edit an object on the grid ( such as moving), the grid is wipped out ( see attached image). What can be the proper way to do this second one so that the grids are not wiped out when editing the objects on it? Thanks. mzhao attached the following image(s):
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 1/31/2005(UTC) Posts: 458
Was thanked: 5 time(s) in 5 post(s)
|
Hello,
I've looked through source code of MultiLayerViewer - unfortunately it is not very flexible and not intended to be extended via inheritance. I recommend you to try another way. What do you think about creating special custom Grid object? It will be like SolidBackgroundVObject from MultiLayerImageEditor sample?
In that case you shouldn't think about invalidation rectangles and double-buffering, just render grid in VObject's paint method.
|
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.