PageItem Co-ordinate w.r.t. Spread Co-ordinate System

Hi All,<br /><br />I am trying to get coordinates of text frame with respect to spread co-ordinate system.<br />I have used following code for this:<br /><br />InterfacePtr<IGeometry> frameGeometry(textFrame, IID_IGEOMETRY);<br />PMRect frmRect = frameGeometry->GetPathBoundingBox();<br />::InnerToParent(textFrame, &frmRect);<br /><br />Here textFrame is the ITextFrame pointer of which I want to get coordiantes w.r.t. Spread. The problem is dimensions in frmRect doesnot change even after transformation using InnerToParent().<br /><br />Can anyone suggest me in this regard, where I am wrong?<br /><br />- Pete

Hi Pete,
I think your problem is that the parent of kMultiColumnItemBoss or kFrameItemBoss (the only bosses that could store the ITextFrame interface you start from) is kSplineItemBoss and not kSpreadBoss. With your call to TransformUtils::InnerToParent you are likely getting the coords in the spline item's coordinate space and not in the spread's one. The SDK documentation specifies that "The parent coordinate space is the first ancestor boss object on IHierarchy that has an IGeometry interface".
HTH,
Emanuele.

Similar Messages

  • Drawing quadratic equations on a 2D cartesian co-ordinate system

    Hi,
    I need to design a 2D cartesian co-ordinate system to plot quadratic equations on the graph using pure action script. Quadratic equations are of the form y = ax^2 + bx + c where a,b and c are the variables for which the values need to accepted from the user as input. Accordingly, the curve needs to be plotted on the graph.
    Could anybody kindly help me to write an action script 3.0 code to suffice the above requirement?
    Thanks in advance.
    Cheers,
    Pratik.

    that will take more work than doable in a forum.  to start, you need to find the roots of your equation (use the quadratic formula) and make sure the real roots are towards the center of your x-axis.  the two parts where y tends towards (+infinity or -infinity) do not require much display.
    if there is only 1 or 0 roots, put that equation in vertex form and use an x-axis centered around the vertex.
    for a sample of how this can be done:  http://www.kglad.com > snippets > function graphs.

  • AWT co-ordinate system

    Hello.
    I still can't figure out. I'm plotting graph co-ordinates on an AWT Canvas component. i.e (x,y) values
    However, due to the AWT co-ordinate system, the origin (0,0) is at the top left hand corner of the screen.
    What trick can I do to plot my points with
    respect to the origin at the BOTTOM left hand corner of the canvas?
    I am using the fillOval() method to display the points on the canvas. (See code below)
    All I want to do is reverse the direction
    of the y axis. Some sample code would be very much appreciated.
    A.
    My paint code is as follows ...
    <code>
    public void paint(Graphics g)
    // Paint the means
    g.clearRect(0, 0, 600, 500);
              if (firststep)
              db.paint(g);
    else
    for(int i = 0; i < nk; i++) {
    g.setColor(cl);                                        
    Point p = (Point) means.elementAt(i);
    //           System.out.println("mean = "+p);
                                            g.fillOval( (int) (p.xVal()*600)-PtSize/2, (int) (p.yVal()*500)-PtSize/2, PtSize, PtSize);                    //      Draw an oval
                             String s = "k= "+ i+ "[" + round(p.x, 2) + " , "+ round(p.y, 2) + "]" ;
                             g.drawString(s, (int) (p.xVal()*600)-PtSize/2 + 10 , (int) (p.yVal()*500)-PtSize/2 + 15 );
    // Print the cluster
    Vector cluster = (Vector) clusters.elementAt(i);
    int size = cluster.size();
    for (int j = 0; j < size ; j++ )
              p = (Point) cluster.elementAt(j);
    //     g.setColor(Color.green);
    //     g.fillRect( (int) (p.xVal()*600)-PtSize/4,(int) (p.yVal()*500)-PtSize/4,PtSize/2,PtSize/2);
    //     g.setColor(cl[i]);
                                            g.fillOval( (int) (p.xVal()*600)-PtSize/4, (int) (p.yVal()*500) -PtSize/4,PtSize/2,PtSize/2);               //      Draw circles to represent the points                
    //          g.drawString(i+"",(int)p.xVal(), (int)p.yVal());
    }</code>

    An example without axises or labels:import java.awt.*;
    import javax.swing.*;
    public class Test extends JFrame {
        public Test () {
            setContentPane (new GraphPanel ());
            setDefaultCloseOperation (EXIT_ON_CLOSE);
            setTitle ("Graph example");
            pack ();
            setLocationRelativeTo (null);
            show ();
        public class GraphPanel extends JPanel {
            public void paintComponent (Graphics graphics) {
                super.paintComponent (graphics);
                // y = x^2
                Point previousPoint = null;
                for (int x = 0; x <= getWidth () / 10; x ++) {
                    int y = x * x;
                    Point point = new Point (x * 10, getHeight () - y);
                    if (previousPoint != null) {
                        graphics.drawLine (previousPoint.x, previousPoint.y, point.x, point.y);
                    previousPoint = point;
            public Dimension getPreferredSize () {
                return new Dimension (200, 400);
        public static void main (String[] parameters) {
            new Test ();
    }Kind regards,
      Levi

  • Georeference cartesian co-ordinates to standard co-ordinate system

    We have set of old maps which do not follow any standard co-ordinate system and they are just cartesian grid co-ordinates (for example lat,long 40.733828,-73.988414 corresponds to cartesian co-ordinates 1610350, 1114450) . I want to explore a possibility of applying simple transformation and geo-reference it to standard co-ordinate system. I can have little compromise on positional accuracy. What is best available method to do it oracle spatial?
    Thanks

    Well...
    One approach would be via EPSG method 9621. Unfortunately, 9621 is not yet implemented, at this point.
    Another approach is via NADCON, although NADCON was not semantically meant to be used in this way. If you can determine (lat, lon) and (x,y) exactly along the 4 corners of your unknown map, we could use the NADCON method. It is difficult to say how much accuracy you would get with these 4 points. The accuracy would increase with an equi-spaced grid of n x m known points.
    Yet another approach would be that we simply assume a transverse mercator projection. Since your map only covers Manhattan - who will see the difference between transverse mercator or anything else (assuming that the projection center is near Manhattan)? But it is a little more complex, of course. First, we would need to perform a datum transformation with the required rotation. This would simulate the rotation of the map you talked about. Then we would perform a transverse mercator projection with its center near Manhattan. We would have to assume that your unknown projection also had its center near Manhattan (resulting in minimal distortion, there). This assumption is reasonable for a map of this scale.
    If you give me approximately 5 points for which you know lat/lon and x/y, I will see what I can do. Usually, we do not do this, and it will certainly take a few days, for I will have to fit it into my schedule.
    Also, a reasonable result will only come out if our assumptions regarding this unknown projection are mostly true.

  • Support for Co-ordinate system?

    Does anyone know whether Oracle Spatial supports the mapping co-ordinate system used in Romania (Stereo70)?

    Yes, this SRID is based on the EPSG projection method 9809 ("Oblique Stereographic"). If you are not sure whether this is the SRID you need, do you also have some numeric parameters?
    SQL> select wktext from cs_srs where srid = 31700;
    WKTEXT
    PROJCS["Dealul Piscului 1970/ Stereo 70", GEOGCS [ "Dealul Piscului 1970", DATUM
    ["Dealul Piscului 1970 (EPSG ID 6317)", SPHEROID ["Krassowsky 1940 (EPSG ID 702
    4)", 6378245, 298.3]], PRIMEM [ "Greenwich", 0.000000 ], UNIT ["Decimal Degree",
    0.01745329251994328]], PROJECTION ["Stereo 70 (EPSG OP 19926)"], UNIT ["Meter",
    1]]
    SQL>
    By the way: the WKT is relatively short, and does not contain projection parameters. This is because the 9809 method is not mapped to a legacy projection, and thus the legacy parameters for this projection are not available. The EPSG parameters are in the SDO_COORD_OP_PARAM_VALS table.

  • Interactive X-Y Co-ordinate system

    Hi
    Actually I want to have an Interactive x-y Co-ordinate system(having adjustable grid) where I can place arcs and lines at specified angles and position. Along with that we can also can fill out each grid cell with some value.
    Is that much interaction is possible with LabVIEW. Please help me out.
    Regards
    Gaurav Sharma

    Use this javascript:
    var mouseX = 0;
    var mouseY = 0;
    function mouseXY(e) {
       if (IE) {
          mouseX = event.clientX + document.body.scrollLeft
          mouseY = event.clientY + document.body.scrollTop
       } else {
          mouseX = e.pageX;
          mouseY = e.pageY;
    // set up mouse movement capture for tool tip placement
    var IE = document.all?true:false
    document.onmousemove=mouseXY;Then just use mouseX and mouseY wherever you want to find out the current mouse position.

  • Shifting of GUI Co-ordinate system when Mouse clicked

    In my JDK 1.2.2 / Swing based application I have this problem of change in coordinate values (x,y) when a mouse click is used. This problem occurs sometimes and reason cannot be traced.
    For e.g. If a user clicks "on" a Button the button is not affected , but the Button is pressed when the user clicks just "above" the button. When this problem arises it happens for all GUI components in the screen like textfield , combobox , table rows etc.
    I hope the forum has answer / hint for this untraceable & intermittent problem.
    Thanks in advance

    1) What OS are you using?
    2) Did you try the app on a different machine?
    - If yes, and it worked OK, make sure you have the newest video drivers installed on your system.
    - If no, then beg/steal/borrow another machine to try it on, or:
    3) (better still) post your entire code if it's not too big, or failing that, post a compilable/runnable subset of your code which shows the same behavior, so we can try it out.

  • Creating ETRS 89 co-ordinate system

    hi ,
    Has anybody created ETRS 89 (European terestrial refrence system 1989) in oracle ??
    where can i find the values for ellipsoid,datum and other values in WKTEXT field in mdsys.cs_srs.
    thanks
    vikesh

    try following:
    this is the projection system for ETRS89 based on the GRS80 which is described in "Longitude / Latitude (NAD 83)";
    This will work for UK and parts of western europe; please remind:
    6 deg stripes; middle meridian for stripe 31 by 3 deg; for stripe 32 by 9 deg and so on...
    INSERT INTO CS_SRS VALUES
    ('ETRS89(31), ITRF Zone 31 (GRS80)', 600000, 600000, 'Oracle',
    'PROJCS["ETRS89(31), ITRF Zone 31 (GRS80)",
    GEOGCS [ "Longitude / Latitude (NAD 83)",
    DATUM ["NAD 83",
    SPHEROID ["GRS 80", 6378137.000000, 298.257222]],
    PRIMEM [ "Greenwich", 0.000000 ],
    UNIT ["Decimal Degree", 0.01745329251994330]]
    GEOGCS [ "WGS 84",
    PROJECTION ["Transverse Mercator"],
    PARAMETER ["Scale_Factor", 0.999600],
    PARAMETER ["Central_Meridian", 3.000000],
    PARAMETER ["False_Easting", 500000.000000],
    UNIT ["Meter", 1.000000000000]]')

  • Flex co-ordinate system

    Hi,
    I have a vbox of size 100, 100. When I mouse over that vbox, I'm able to read the x, y coordinates of the mouse pointer.
    How can I get the coordinates of the vbox.

    You can find the answer here
    http://livedocs.adobe.com/flex/3/html/help.html?content=containers_intro_5.html
    It explains very well how you can find your components coordinates.

  • Learning Co-ordinate System - Problem

    Hi
    I created a sample project to epxlain my problem.
    There are two canvases in the main application. outerspace canvas and innerspace canvas.
    innerspace canvas has a visual component "mainBox"
    and there is also a visual component in outerspace canvas named "overBox"
    now i want user to map the x-xis and y-xis of overBox to mainBox, so when user will click re-arrange, overbox will completely cover the mainBox.
    This is actually a problem of different co-oridatane systems and i dont know how to map them into one.
    Here is the code.
    Application File
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="*">
         <mx:Script>
              <![CDATA[
                        private function arrange(event:MouseEvent):void{
                             var point:Point = mainBox.localToGlobal(new Point());
                             overBox.x = point.x;
                             overBox.y = point.y;
              ]]>
         </mx:Script>
         <mx:Canvas width="80%" height="80%" horizontalCenter="0" verticalCenter="0" id="outerSpace" backgroundColor="#A9A9A9">
              <mx:Canvas width="80%" height="80%" horizontalCenter="0" verticalCenter="0" id="innerSpace" backgroundColor="#8DB5FF">
                   <ns1:Node horizontalCenter="0" verticalCenter="0" width="100" height="100" id="mainBox">
                   </ns1:Node>
              </mx:Canvas>
              <ns1:Node x="21" y="10" id="overBox" width="100" height="100" backgroundColor="#FFA352">
              </ns1:Node>
         </mx:Canvas>
         <mx:Button label="Re-Arrange" click="arrange(event)" left="10" top="10"/>
    </mx:Application>
    Project is also attached.
    Thanks

    Just see below. But it won't work if you resize the view, as one is centered
    private
    function arrange(event:MouseEvent):void
    // Get mainbox coord in local system - i.e. relative to innerSpace
    var p1:Point = new Point(mainBox.x,mainBox.y); 
    // Convert it to global coord from innerSpace
    var p2:Point = innerSpace.localToGlobal(p1); 
    // Convert it to local coord - relative to outerSpace
    var p3:Point = outerSpace.globalToLocal(p2); 
    overBox.x=p3.x;
    overBox.y=p3.y;

  • Convert page co-ordinate to page item co-ordinate

    Hello All,
    I have problem regarding co-ordinate system.
    I have Rects in page co-ordinate system  and want to convert with respect to pageItem co-ordinate.
    This Rects are resides within a frame, my requirement is to convert pagecoordinateRect to innerRect.
    I have tried using TransformParentRectToInner Or TransformPasteboardRectToInner  using IGeometry interface of page item.
    Left and Right points are converted but Top and Bottom points are not updated.
    Please help me to sort out above problem.
    Thanks
    Govind

    Not sure if this question should be asked in scripting or SDK forum, but this is definitely not the right place. The folks who hang out here don't do much coding.

  • Co-ordinates of reports layout

    i have a doubt with the co-ordinates of report layout. In forms, we have the 'co-ordinate system' property of forms. In same way, how can we switch between inches & the other smaller unit in the grid.
    I hope, my question is clear. Please help, in solving the doubt.
    regards.

    Hi,
    In Reports 6i: Format->Layout Options->Rulers. Reports 10g: Tools->Options->Rulers. Also, click on the report name in the Object Navigator, open Property Palette and take a look at "Unit of Mesurement" property.
    Regards,
    Andrew Velitchko
    BrainBench MVP for Oracle Developer
    http://www.brainbench.com

  • Is there a method for actually rotating the co-ordinates of 2D shapes?

    Hallo
    I'm trying to create a Graphics2D-powered program that needs to include polygons that can rotate. Now, as far as I can tell, affinetransform's methods will only ever transform the co-ordinate system of the User Space. So, for example, a GeneralPath object's co-ordinates will not change at all. Its useful only for rotating the Graphics2D display, not the underlying object.
    But I want to actually transform the co-ordinates of the Shape - e.g. select a rotation point (the centroid) of a Shape, and get a new set of co-ordinates for its points that rotates it by x radians. This is because I'm not using it just for display - it will be used to check what points are inside it, and needs to stick to the sprite it's used by.
    Is there any way of doing this - using a Shape object persistently, and just moving it and rotating it? Or do I need to make a new one every time, with new co-ordinates? Will I need to write my own rotate function? (Doable, just basic trig, but I kinda hoped there'd be a method somewhere...!)
    Cheers...

    sorry, the 'would you mind' wasn't meant to sound
    snotty! its amazing how bad forums can be for getting
    feeling across. I meant to say something like 'oh
    hell, I can't see how to do this. I don't suppose you
    happen to have an example lying around the place, do
    you?'
    I'll give it a go...I sounded a bit harsh perhaps. Sorry.
    I only saw someone give an answer and a couple of minutes later a follow-up asking for "example code", which lead me to believe you did not do any research/googling on what was suggested. I now read your original post and saw that you already knew of the AffineTransform class.
    Anyway, when I want to see some classes "in action" I always go to http://www.exampledepot.com . It also has some snippets on how to use the AffineTransform class:
    http://www.google.com/custom?domains=exampledepot.com&q=AffineTransform&sa=Google+Search&sitesearch=exampledepot.com&client=pub-6001183370374757&forid=1&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3A336699%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BFORID%3A1%3B&hl=en
    Good luck.

  • Unable to transform the co ordinates....

    HI
    I am not able to transform from one co-ordinate system to other .
    Sample query
    SELECT c.stname, SDO_CS.TRANSFORM(c.geometry, m.diminfo, 8309)*
    FROM county c, user_sdo_geom_metadata m*
    WHERE m.table_name = 'county' AND m.column_name = 'geometry'*
    AND c.msa_id = 1560;*
    I have checked the srid value in mdsys.sdo_cs_srs.
    but i am not able to conver.
    can any one help me...Plzz

    Select * from mdsys.sdo_cs_srs where srid=9932775
    result is
    CS_NAME:Equal Area Projection (XXX cm) SRID: 9932775 AUTH_SRID:32775 AUTH_NAME:XXX .... Inc
    WKTEXT:PROJCS["XXX_ALBERS_FEET",GEOGCS ["NAD 83 (Continental US)",DATUM ["NAD 83 (Continental US)",SPHEROID ["GRS 80",6378137,298.2572221009113]],PRIMEM ["Greenwich", 0.000000],UNIT ["Decimal Degree",0.01745329251994330]],PROJECTION["Albers Conical Equal Area"],PARAMETER["Standard_Parallel_1",45.5],PARAMETER["Standard_Parallel_2",29.5],PARAMETER["Central_Meridian", -96.000000],PARAMETER["Latitude_Of_Origin", 37.500000],PARAMETER["False_Easting", 304800000],PARAMETER["False_Northing", 152400000],UNIT ["Centimeter", 0.01000000]]
    Is this the information you need.Please let me know if you need anything else........
    Thanks Siva

  • Part Comparision with spread sheet to Oracle system

    My client receives Quotation (BOM) from customers.
    They check all the BOM parts exist in the system, if not they create Item code in Oracle system. client sometimes sends customer part number, or client part number, every Bill of materials contains 500-700 parts, currently they are verifying all the part numbers in the system and creating new item codes in the system.
    Client wants to automate this process with interace programs.
    Is there any other options to check, report, concurrent program to check spread sheet to system part numbers.
    And
    Also client wants to verify the part number has any valid pricing, agreement, sourcing rule exist in the system, how to acheive in the oracle system.
    for above scenarios client receives 500-700 parts in BOM, if client has valid pricing, agreement will use same agreement, pricing otherwise they go for RFQ, agreement with supplier..
    How to compare or report to achieve this?
    Highly appreciate your response..
    Thanks

    Hello,
    There're a couple of choices;
    - use external files
    - use xmldb
    - use a look-a-like upload like in apex but then in your application for ex.: Excel Upload.
    or on a blog: http://advait.wordpress.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://apex-evangelists.com/
    -- http://apexblogs.info/

Maybe you are looking for

  • DDIC_ACTIVATION

    Dear All, i have checked in TRBAT and TRJOB no entries are there. when i am applying  Basis Patch SAPKB70008. Throwing the following Error: The import was stopped, since an error occurred during the phase DDIC_ACTIVATION, which the Support Package Ma

  • MacBook Air not reading USB Super Drive

    My new MacBook Air is not reading the external USB Super Drive

  • EchoSign iOS 2.2.0 is Available on Apple Store

    I wanted to continue to keep the community updated on some of the new product innovations we're delivering. EchoSign 2.2.0 is now available for download on Apple Store. Highlights of the release Supports documents with calculated fields, online or of

  • KH399 selection is not possible at this level

    Hi Experts, I am facing error while executing COPA Report KE30, which created by KE94 line item report. please help me on that. Regards, Ram

  • Synchronise tables problem

    Hi Guys I have a fresh install of SSM 7.5 and the synchronise table is not working. My UME seems to be working because if I remove pipadmin from the "strategy" group the logon is no longer authorised to access the SSM admin screen. When I put him bac