How to obtain coordinates of each point in a polygon?

How can we obtain the coordinates of each point in a polygon (say 6 sides)?
Using pageitemref I had used GetPathBoundingBox method of IGeometry to get a PMRect as follows:
InterfacePtr<IGeometry> geometry(pageitemRef, UseDefaultIID());
geometry->GetPathBoundingBox(::InnerToPasteboardMatrix(geometry));
I am only able to get the leftTop, rightTop, etc. of the frame that contains the polygon.
How to obtain the coordinates of each point in a polygon?

Hi,
you can use the IPathGeometry interface.
Markus

Similar Messages

  • DETECT THE BOUNDARY OBTAIN THE COORDINATE OF ALL POINTS IN THE BOUNDARY

    HI EVERY BODY, HAPPY NEW YEAR,,,,,
    I AM RECENTLY USE LABVIEW 9.0 IN ORDER TO CREATE  A PROGRAM THROUGH WHICH I CAN OBTAIN PARTICLE CHARACTERISTICS ( RADIUS, CENTER, LOCAL GRAY LEVEL, MINIMUM GRAY LEVEL), BUT NOW I AM FACING A PROBLEM THAT WHILE I AM TRACKING THE BOUNDARY OF THE PARTICLES IN THE THRESHOLD IMAGE, THE PROGRAM GIVE ME A 2D ARRAY CONTAINS ALL VALUES OF THE BOUNDARY OF ALL PARTICLES,. UNFORTUNATELY I CAN NOT TO DETERMINE THE COORDINATE OF EACH POINT IN THE BOUNDARY.
    SO, HOW CAN I OBTAINED POSITION OF EVERY VALUE IN THE BOUNDARY....
    THANKS FOR YOUR HELP

    2D ARRAY CONTAINS THE VALUES OF THE PARTICLE BOUNDARY...........

  • How to enter coordinates when drawing Pen Tool?

    Hello and immediately apologize for my bad English.
    I have a question - how to enter coordinates for a point that has been applied to a drawing? For example:
    1 point
    X = Y = 37 cm 22 cm
    2.point
    X = Y = 38 cm 35 cm
    ETC

    Can you give any details on this?

  • How do I convert a power point document to a pdf where it will show the notes for each slide?

    How do I convert a power point document to a pdf where it will show the notes for each slide?

    To get the 'handout view' with a slide and the speaker notes on the same page, you have to save the PDF file directly from PowerPoint (the later versions of Microsoft Office can make PDF files without the help of Acrobat).

  • How to obtain JNIEnv pointer and jobject reference in arbitrary contexts?

    Hi,
    I need your hand. How to obtain JNIEnv pointer and jobject reference in arbitrary contexts? (See below source codes for details)
    I made some tries according to JNI spec, but still failed to get it work. Could you please provide your solutions? Better show me some source codes.
    Thank you very much !!!
    #include <jni.h>
    #include "MessageThread.h"
    #include "MyServer.h"
    // this is callback function called by the native C++ library
    void processEvent(int progress)
       in this function, i want to get "env", "obj" ( HOW? ),
       then i can do below to invoke Java function "updateUI":
       cls = env->GetObjectClass(obj);
       mid = env->GetMethodID(cls, "updateUI", "(I)V");
       env->CallVoidMethod(obj, mid, progress); 
    JNIEXPORT void JNICALL
    Java_MessageThread_handleMessageQ(JNIEnv *env, jobject obj)
      MyServer* server = MTMServer::Instance();
      if (server != NULL)
        // must register a callback function before "QueryProgress"
        server->RegisterCallback(processEvent);
        // query message within a loop, and callback "processEvent" frequently
        server->QueryProgress();
      return; 
    }

    jschell, thanks for your suggestions.
    And caching the second is definitely wrong. Arguments are passed as local references. The reference lifetime is only guaranteed for the lifetime of the method call.In my case, it just works, because my "callback" is only called before the "handleMessageQ" returns, which means it's within the lifetime of "jobject", etc.
    Use GetEnv to get the environment.Could you please provide some sample codes?
    Create a static java method which returns the object reference. In your callback call that method to get the reference that you want to work with. I didn't really understand. Could you please show me some sample codes?
    Thanks a lot!

  • I have a vector file of country map. How can I get file of just coordinates of each of country region?

    I want to have a Russian map on my site which I could zoom and set different backgrounds for each region.
    I see the best way for it in drawing it by javascript and canvas.
    I've found a vector file of Russian map.
    http://commons.wikimedia.org/wiki/File:Map_of_Russian_subjects,_2008-01-01.png#mediaviewer /File:Map_of_Russian_Subjects_old.svg
    For each region I want to have a plaint txt file with coordinates of each new "dot" of path in a new line
    so that I could use JavaScript "lineto" function to draw it in canvas.
    How can I do that?

    You might script that in the SVG.
    Controlling Scalable Vector Graphics (SVG) using Javascript

  • How can I display different error bars for each point on a scatter graph?

    I have a scatter chart in Numbers and I need to add error bars to the points along both the x and y axes, however, the size of the error bars for each point need to be of different sizes. Is there a way to accomplish this or is there some kind of work around to acheieve a similar result? So far the only way I can find to add error bars only allows a standard amount for each point.

    I found the answer here https://discussions.apple.com/message/16440653#16441393

  • How to obtain corner points of rotated rectangle?

    Am drawing a rectangle, then using an Affine Transform to rotate the angle. After rotating and drawing the rectangle, I need to obtain the 4 corner points of the rectangle. This is (psuedocode) for what I've tried:
    Rectangle r = new Rectangle (x, y, width, height);
    AffineTransform at = new AffineTransform();
    at.rotate (angleInDegrees*Math.PI/180);
    Shape s = at.createTransformedShape (r);
    PathIterator pi = s.getPathIterator(at);
    while (pi.isDone() == false)
    fetchCornerPoint (pi);
    pi.next();
    g2.draw(s);
    The shape is being correctly drawn on the screen, so I know the transofmr is working. But the path appears to contain the 4 corner points of the rectangle prior to rotation, not the 4 corner points after the rotation.
    It's got to be a "doh moment", but I can't see it.

    I notice you call getPathIterator on 's', which is already transformed. I have not verified this, but maybe you should call getPathIterator(at) on the original shape ('r')?

  • I can't seem to get rid of OR use Adobe Reader after I let it into Safari 7.  How do I get to the point where Reader is not my preferred anything, but can still be used if Preview won't open something?

    I can't seem to get rid of OR use Adobe Reader after I let it into Safari 7.  How do I get to the point where Reader is not my preferred anything, but can still be used if Preview won't open something?

    Back up all data before making any changes. Please take each of the following steps until the problem is resolved.
    Step 1
    If Adobe Reader or Acrobat is installed, and the problem is just that you can't print or save PDF's displayed in Safari, you may be able to do so by moving the cursor to the the bottom edge of the page, somewhere near the middle. A black toolbar should appear under the cursor. Click the printer or disk icon.
    Step 2
    There should be a setting in its preferences of the Adobe application such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected.
    Step 3
    If you get a message such as ""Adobe Reader blocked for this website," then from the Safari menu bar, select
              Safari ▹ Preferences... ▹ Security
    and check the box marked
              Allow Plug-ins
    Then click
              Manage Website Settings...
    and make any required changes to the security settings for the Adobe PDF plugin.
    Step 4
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard by pressing the key combination command-C:
    /Library/Internet Plug-ins
    In the Finder, select
              Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens by pressing command-V, then press return.
    From the folder that opens, move to the Trash any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari.
    Step 5
    The "Silverlight" web plugin distributed by Microsoft can interfere with PDF display in Safari, so you may need to remove it, if it's present. The same goes for a plugin called "iGetter," and perhaps others—I don't have a complete list. Don't remove Silverlight if you use the "Netflix" video-streaming service.
    Step 6
    Do as in Step 4 with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari.

  • How to obtain the Java environment in the already loaded dll

    Hi all!
    I try to implement a client GUI in Java. I load the static (c++) dll from the Java code, this work fine. But, I want to call also from the loaded dll to the client GUI, make a two-directional communication. How can I obtain the valid environment pointer in the c++ code?
    Can you please help me?
    Thanks very much
    JAttila

    There is a method that returns the environment.
    But, I want to call also from the loaded dll to the client GUI,In response to what? If a thread then you have to also register the thread.

  • How to obtain a case number for License transfer process

    How to obtain a case number for License transfer process.

    Good to know - Here you have the user-2-user forum for "Adobe Reader".
    For anything "License" related you will want to be using the "contact" feature to meander about until you can get a "licensing work group" point of contact.
    The path starts here:
    Contact Customer Care
    Be well...

  • A very simple question: how to obtain the mail server name?

    In our JSP application, at one point an email will be sent to notify one event. Currently, that is done by using the html tag: mailto. To have more control on the email in tems of context format (a bad layout right now) and others. I would like to have it processed at servlet by using the JavaMail API, so that it have a nice format and have the sender's email address right in case email client is not installed in the machine where the browser in. The JavaMail API is straight forward. The question is how to obtain the mail server name, and the sender's email address if there is one?
    Thanks.
    v.

    How to obtain the mail server's name? It's your server, you should know its name. Or if it isn't your server, you should ask the administrator for its name. Point is, you need to decide in advance what server you are going to use and hard-code its name into the program or into a properties file.
    And how to obtain the client's e-mail address? You have to ask the client, probably by putting a box in the HTML and asking them to type it.

  • How do you determine transportation planning point

    Hi Gurus,
    Badly need your help.  How do you determine transportation planning point?
    Thanks,
    Paul

    Dear John
    It is based on routes and route schedules are determined based on the following conditions:-
    => Shipping point
         Where are the goods coming from?
    => Ship-to party and unloading point
         Where are the goods going to?
    => Shipping condition
         How are the goods being shipped?
    => Transportation group
         Which goods are shipped?
         --> For example, which type of goods?
    => Calendar week / year
          When are the goods to be shipped?
    If you do not explicitly enter the week and the year, the entry applies for each calendar week. If you enter a week and a year, the route schedule only applies for this week.
    You can only use route schedules if you have maintained the working times and therefore at least one of the following times in minutes:
           -> Transportation planning time
           -> Pick/pack time
           -> Loading time
           -> Transit time
    A route schedule can leave the warehouse exactly once in a week. If a route schedule runs several times, either on several days or several times a day, it must be copied to another route schedule.
    Thanks
    G. Lakshmipathi

  • Associate text to each point in a graph

    I must associate text to each point in my graph. The graph has 10000 points and annotations are very slow. How can I do that ?

    Unfortunately, annotations are the only way to associate text with points in CNiGraph. If using the Measurement Studio .NET graphs is an option, there is another way to do it with the .NET graph's custom drawing services that would probably be much faster in this scenario. Let me know if that is an option for you and I can post an example.
    - Elton

  • How to Obtain all FRM code/Messages in 9i

    Background:
    Within Forms Developer, I can pull up a list of all FRM messages.
    If I want detail on one of these, I can click on it and it provides the text with the code.
    for example 'FRM-10000: Validation error on item.'.
    Requirement;
    I need a softcopy list of all FRM codes with the text (not one at a time).
    Reason:
    We are in the process of creating a centralized message handler. So, we need a comprehensive lsit to determine which are relevant.
    Problem:
    I have searched OTN, metalink, asktom, oracle faq and have not found such a list.
    Question:
    Can anyone give me advice on how to obtain such a list ?
    Thanks
    Paul Quick
    Oracle Developer

    It's not quite a single file with all of the FRM errors, but it might be easier for you than using the online help.
    Go to the Forms page on OTN.
    Click Documentation, on the right hand side.
    Click on the "Oracle Forms Developer Online Help" link.
    Click Reference.
    Click the "All Oracle Forms Error Messages (FRM-XXXXXX)" link.
    There is a list of the messages, but you have to click the one you want. With a bit of time you could probably decode the javascript that displays the message, but it looks like each one is in it's own HTML file, so you would still have to consolidate them anyway.
    Regards,
    Robin.

Maybe you are looking for

  • Issue : with CIN configuration

    Hello frinds     After finishing of cin configuration ,Actualy where do link  in fico and start  in(FICO) Plz let me know this. thanks priyarani Moderator: Please, respect the rules: don't use SMS language, post in proper forums and the most importan

  • Illustrator text won't resize.

    Hi there, I am using Illustrator CS2. I want to be able to tpye and then resize and change the font. I thought I would just have to type the words and then click the selection tool which would select all the text and allow me to pull the side to resi

  • Query about Temporary Tablespaces

    Why Data Manipulation Language (DML) locks are never acquired on the data of temporary tables? Any detailed explanations with justifications will be great. Thanks in advance.

  • How to replace RTC(CMOS) battery in Satellite A50-432

    Hi to everyone! I've a SA50-432: which Satellite model is my notebook? I should replace the rtc (cmos) battery. Should I open all my notebook? Or which parts? Thanks! Ale.

  • Cannot import settings from previous version because of "beta participation"

    I have just upgraded to v3.6.8 and all bookmarks, add-ins, etc are lost. Message at start-up says "beta participation detected" and my old firefox-3.5 directory is renamed to firefox-3.5.abandoned. I am not aware of ever loading a beta version.