Hello and sorry for my bad english :). I need to create simple editor (geometry basic shapes like lines, rectangles, ellipse). I have a little problem. I know how to create simple shape but dont know how to select it and then edit. Can someone help me?.
Create simple shape editor
Collapse
X
-
Originally posted by robakHello and sorry for my bad english :). I need to create simple editor (geometry basic shapes like lines, rectangles, ellipse). I have a little problem. I know how to create simple shape but dont know how to select it and then edit. Can someone help me?.
selecting them and editing them will require mouse programming where you will have to campare the co-ordiantes of your figure and that of mouse and program accordingly. .. -
Originally posted by robakAnd that why it wont be easy to do that ... right ??
SavageComment
-
Selecting the figures is the easier part.Every figure should have bounding rect(or box in 3d),which helps you select it.Instead checking whether you have clicked inside the figure,you check whether you have clicked inside it's bounding object.If you ever used Photoshop,Corel or other similiar software you know what am I talking about.Now, on those bounding objects are controls,like rotation,transl ation,pivot control,scale control...Comment
-
if you have a drawn a figure
you know its coordinates
you know the present coordinates of the mouse
by comparing these coordinates ..u get to know whenever the user has selected the figure and then you accordingly draw some figures and lines or clear some figures and lines to present it in such a way that the user has selected the picture and edited itComment
-
Comment
-
Then you might research Visio COM add-in objects sold by Micosoft. Your shape editor may already be written.Comment
Comment