Create simple shape editor

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • robak
    New Member
    • Jan 2008
    • 4

    Create simple shape editor

    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?.
  • vishalgupta
    New Member
    • Jun 2007
    • 47

    #2
    Originally posted by robak
    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?.

    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. ..

    Comment

    • robak
      New Member
      • Jan 2008
      • 4

      #3
      And that why it wont be easy to do that ... right ??

      Comment

      • Savage
        Recognized Expert Top Contributor
        • Feb 2007
        • 1759

        #4
        Originally posted by robak
        And that why it wont be easy to do that ... right ??
        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...

        Savage

        Comment

        • robak
          New Member
          • Jan 2008
          • 4

          #5
          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...
          I still dont know how to select :/ and i hope i undestand it when i search the web about bounding box that u mention.

          Comment

          • vishalgupta
            New Member
            • Jun 2007
            • 47

            #6
            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 it

            Comment

            • weaknessforcats
              Recognized Expert Expert
              • Mar 2007
              • 9214

              #7
              Are you using WIndows??

              If so, there is a Visio COM object that does this that's all set to go.

              Comment

              • robak
                New Member
                • Jan 2008
                • 4

                #8
                yes im using Windows

                Comment

                • weaknessforcats
                  Recognized Expert Expert
                  • Mar 2007
                  • 9214

                  #9
                  Then you might research Visio COM add-in objects sold by Micosoft. Your shape editor may already be written.

                  Comment

                  Working...