Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
ChingYen  
#1 Posted : Sunday, July 19, 2009 6:56:23 PM(UTC)
ChingYen

Rank: Advanced Member

Groups: Member
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.
Dmitry  
#2 Posted : Sunday, July 19, 2009 9:03:08 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
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.
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
mzhao  
#3 Posted : Thursday, September 16, 2010 5:19:46 AM(UTC)
mzhao

Rank: Advanced Member

Groups: Member
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
ChingYen  
#4 Posted : Friday, September 17, 2010 1:11:16 AM(UTC)
ChingYen

Rank: Advanced Member

Groups: Member
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?
Alex Kon  
#5 Posted : Sunday, September 19, 2010 3:32:27 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups: Member
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
mzhao  
#6 Posted : Monday, September 20, 2010 11:56:38 PM(UTC)
mzhao

Rank: Advanced Member

Groups: Member
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):
sample1.png
Alex Kon  
#7 Posted : Tuesday, September 21, 2010 5:41:05 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups: Member
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.

Users browsing this topic
Similar Topics
Snap to Grid (Discussions – Graphics Mill)
by BadJasper 4/30/2007 12:56:46 AM(UTC)
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.