Rotate about a specific point

I have a script that creates geologic map symbols, positions them, and rotates them into their proper orientation.  However, I do not know how to rotate about a specific point (not the center of the group). The portion of script in question is:
if (dlg.symbol.bedding.value) {
var myLine = stGroup.pathItems.add();
myLine.stroked = true;
myLine.setEntirePath([[posx,posy],[posx+3,posy]]);
myLine.strokeWidth = .75;
var myLine = stGroup.pathItems.add();
myLine.setEntirePath([[posx,posy - 6.75],[posx,posy + 6.75]]);
myLine.stroked = true;
myLine.strokeWidth = .75;
stGroup.rotate(-azi);
and I wish to rotate around the point [posx, posy].  How do I accomplish this?

Thanks!  That worked.  For future reference, here's the modified section of script:
if (dlg.symbol.bedding.value) {
var myLine = stGroup.pathItems.add();
myLine.stroked = true;
myLine.setEntirePath([[posx,posy],[posx+3,posy]]);
myLine.strokeWidth = .75;
var myLine = stGroup.pathItems.add();
myLine.setEntirePath([[posx,posy - 6.75],[posx,posy + 6.75]]);
myLine.stroked = true;
myLine.strokeWidth = .75;
mapDoc.theOrigin = mapDoc.rulerOrigin;
mapDoc.rulerOrigin = [posx,posy];
stGroup.rotate(-azi, undefined,undefined,undefined,undefined,Transformation.DOCUMENTORIGIN);
mapDoc.rulerOrigin = mapDoc.theOrigin;
Another parameter in the rotate method to specify a rotation point would be nice.  Still, this works just fine, so no complaints from me.

Similar Messages

  • Rotating an object about a specific point!

    Hello Guys!
    Have a new Problem!
    I want to rotate an object about a specific point. But up to now i only can rotate something about the x,y,z axis!
    Is this possible to rotate a scene about the point 1,1,1?
         Transform3D rotation = new Transform3D();
         rotation.setRotation(new AxisAngle4d(-x, -y, 0,((Math.PI / 2) - angle)));
    I don't handle it with Alpha because i needn't an animation!
    Please help me!
    Quh

    Hello,
    to rotate an Object A about the Point P you have to do the following:
    1. Get the Transform T which transforms P to Point (0,0,0)
    2. Apply T on A
    3. Rotate A (around (0,0,0))
    4. Transform A with the inverse of T
    leha23.

  • Rotate an image about it centre point

    Can some one please tell me how to rotate an image about its
    centre point in flex 2.0?
    I've tried using .rotation and looked at matrix
    transformation but I can't find a way to set the roatation to the
    centre of the image :(

    You can combine <mx:Move> with <mx:Rotate>
    effects together.
    http://livedocs.adobe.com/flex/201/html/behaviors_068_18.html
    ps
    I would LOVE to see example of applying matrix transformation
    to achieve the similar effect, cannot figure out yet by myself how
    to achieve it...

  • On my Mac Pro how can I get voiceover to start reading at a specific point on a document?, on my Mac Pro how can I get voiceover to start reading at a specific point on a document?

    On my Mac Pro how can I get voiceover to start reading at a specific point in a document, and then continue on to the next paragraph and so on?  Thank you.  Ed

    Welcome to the Apple family!!!! 
    How can I cause the VO cursor(box) show-up/start?
    Press Control-Option and F5.   The F5 key is located on the top row of keys 6th key over.  This is a toggling "Keyboard Shortcut" for turning VoiceOver on and off.
    How can I move the VO cursor to various sentences or paragraphs of an article and have it start reading ... and perhaps even continue reading on to the next paragraph(s) ... even to the end of the article?
    How to read a website with VoiceOver
    Step 1:  Go to the Website
    A quick keyboard shortcut is Command-L.  This will jump you up to the address bar.  Start typing where you want to go.  i.e "www.thewebsite.com"
    Step 2:  Working with Webpage
    VoiceOver will automatically start reading the website.  You can pause the speech by hitting the 'Control Button'. 
    If VoiceOver does not being reading the webpage, then you might have to "Interact" with it.  If VoiceOver say "HTML Content" then press Control-Option-Space-Down Arrow to interact with the webpage.
    Use Control-Option-Right Arrow to move throught the website.  This will speak "EVERYTHING" on the page.
    Most website that I've found have their articles labeled as 'Heading'.  You can jump from heading to heading, by pressing Control-Option-Shift-H.
    If you'd like an itemized alphabetical listing of the site, press Control-Option-I 
    Press Control-Option-Space on the link or article you want to view.
    Step 3.  Reading from Top to Bottom
    Once you found and clicked on the the article/link, use the same 'Heading' command, Control-Option-Shift-H to find the title. 
    After finding the title, press Control-Option-A will start reading from the title on. 
    Note:  If there are any other items (ads, pictures, etc) it will read those too. 
    Tip:  You might be able to activate a feature called the 'Reader'.  The Reader isolates the article and elimanates the ads  The keyboard command is Shift-Command-R.  You can also find it in the Menu Bar (Command-Option-M) under the word 'View' then 'Show Reader'. 
    I am using a MACPro with OSX, probably Mavericks 10.9 (where would I look to see if that is the correct information?)
    You can find this information under the 'Apple menu' in the Menu Bar.  To access the Menu Bar, press Control-Option-M. 
    Go to Apple Menu > About This Mac.  This will open up another window.  Use Control-Option-Right Arrow until you hear 'Version'.  If you purchased it brand new from Apple within the last six month, more than likely you have Mavericks. 
    Recommanded Articles. 
    AppleVis- Commonly used Keyboard Commands
    Chapter 2: Learning VoiceOver Basics
    Chapter 6: Browsing the internet
    Apple Accessibility Resource Page
    The  'Commands Help' Voiceover Menu. Control-Option-H-H.  (hit H twice)  is my best friend.  It's a searchable VoiceOver Menu with most of the VoiceOver command.  Example:  You are looking for the 'Read Current Paragraph' keyboard command.   Press Control-Option-H-H and then type Paragraph.  It will then bring up all the commands with the word paragraph.  I believe there are three.   
    As from the Trackpad Commands, I've copied and pasted below from Appendix A: Commands and Gestures
    VoiceOver standard gestures
    If you’re using a Multi-Touch trackpad, you can use VoiceOver gestures. VoiceOver provides a set of standard gestures for navigating and interacting with items on the screen. You can’t modify this set of gestures.
    NOTE:Gestures that don’t mention a specific number of fingers are single-finger gestures.
    General
    Enable the Trackpad Commander and VoiceOver gestures
    VO-Two-finger rotate clockwise
    Disable the Trackpad Commander and VoiceOver gestures
    VO-Two-finger rotate counterclockwise
    Turn the screen curtain on or off
    Three-finger triple-tap
    Mute or unmute VoiceOver
    Three-finger double-tap
    Navigation
    Force the VoiceOver cursor into a horizontal or vertical line when you drag a finger across the trackpad
    Hold down the Shift key and drag a finger horizontally or vertically
    Move the VoiceOver cursor to the next item
    Flick right
    Move the VoiceOver cursor to the previous item
    Flick left
    Move content or the scroll bar (depending on the Trackpad Commander setting)
    Three-finger flick in any direction
    Go to the Dock
    This gesture moves the VoiceOver cursor to the Dock wherever it’s positioned on the screen
    Two-finger double-tap near the bottom of the trackpad
    Go to the menu bar
    Two-finger double-tap near the top of the trackpad
    Open the Application Chooser
    Two-finger double-tap on the left side of the trackpad
    Open the Window Chooser
    Two-finger double-tap on the right side of the trackpad
    Jump to another area of the current application
    Press Control while touching a finger on the trackpad
    Interaction
    Speak the item in the VoiceOver cursor or, if there isn’t an item, play a sound effect to indicate a blank area
    Touch (includes tap or dragging)
    Select an item
    Double-tap anywhere on the trackpad
    You can also split-tap (touch one finger and then tap with a second finger on the trackpad)
    Start interacting with the item in the VoiceOver cursor
    Two-finger flick right
    Stop interacting with the item in the VoiceOver cursor
    Two-finger flick left
    Scroll one page up or down
    Three-finger flick up or down
    Escape (close a menu without making a selection)
    Two-finger scrub back and forth
    Increase or decrease the value of a slider, splitter, stepper, or other control
    Flick up (increase) or flick down (decrease)
    Text
    Read the current page, starting at the top
    Two-finger flick up
    Read from the VoiceOver cursor to the end of the current page
    Two-finger flick down
    Pause or resume speaking
    Two-finger tap
    Describe what’s in the VoiceOver cursor
    Three-finger tap
    Change how VoiceOver reads text (by word, line, sentence, or paragraph)
    Press the Command key while touching a finger on the trackpad
    Rotor
    Change the rotor settings
    Two-finger rotate
    Move to the previous item based on the rotor setting
    Flick up
    Move to the next item based on the rotor setting
    Flick down
    To customize other gestures by assigning VoiceOver commands to them, use the Trackpad Commander.
    Assigning VoiceOver commands to gestures
    If you need a reminder about what a gesture does, press VO-K to start keyboard help, and then use the gesture on the trackpad and listen to the description.
    Learning about keys, keyboard shortcuts, and gestures
    Sorry lots of information.  Enjoy.  You

  • Model rotation about multiple axis

    Can anyone tell me how I can limit the rotation of a model to
    a specific angle without using camera rotation?
    I do know how to limit the rotation when the model has only
    been rotated in one axis (simple maths comparison of either x, y,
    or z depending on which axis I've rotated the model about).
    But, how do you limit rotation when the model has already
    been rotated about 1 or 2 of the other axes given that x, y, and z
    keep changing their values and axisAngle doesn't always give
    appropriate values?

    Using parent/childs is one way to work around relative
    rotation problems. Parent the model you are trying to limit
    rotation on to a dummy model (or group). Keep the dummy at
    rotation(0, 0, 0), and rotate the target model to its correct
    orientation in your scene. Then monitor the dummy's rotation to
    keep it within your limits.

  • Who do contact about a specific Labview Driver (Stanford Research SR785)

    Hello,
    I'm not sure if this is the right place to go, but how would one find out more about a specific Labview driver if the manufacture doesn't provide support?
    In my case, I have a Labview 8 driver for a Stanford Research SRS785. The driver works great except for one thing, and I'm trying to make sure I'm using it correctly. When I contact Stanford Research, they inform me that they cannot provide support as they did not write the driver.
    How would I find out where the driver came from, where I can get more information, etc.?
    Just for your information, the driver works in every method except for one. If I want to use the "Upload Capture Buffer" (GPIB command is "CGET") it doesn't seem to work and I'm not sure why. No matter how many data points I've captured (In my case, 2 channels at 64,000 points each), when I call the "Upload Capture Buffer" VI, it returns 256,000 values of what appears to be random numbers, but exactly the same for both channels.  Sorry for giving too many details.
    All other driver functions appear to work just fine, as I've used it for other things.
    I'm just wondering, from any LV developers, how you would go about finding the author and asking questions about a driver such as this?
    Regards,
    Jeff

    I'm assuming you are talking about the driver that is available on NI's site? Then the author is someone at NI. At the download page, there is a 'Comments' link. The best forum for discussing drivers is the Instrument Control one. I'm not familiar with the instrument but if you wanted to try a little troubleshooting on your own, you might want to see what the programming manual has to say about the CGET command and what else may need to done prior to getting any valid data. The command being issued by the driver is CGET? channel#,mode and assuming that the channel number and mode are correct, the VI is returning something so it just may be a matter of doing some other inititialization to get valid data. A good way to debug instrument communication is with MAX. There you can experiment with the different commands and queries.
    Just to add a little more, Stanford Research may not provide any support for the driver but they should support the instrument and remote programming. If you say you issue the command CGET? 0,0 and get garbage data, they should be able to tell you why. You don't even need to mention LabVIEW. The commands are the same with whatever programming language you use.
    Message Edited by Dennis Knutson on 07-07-2006 07:48 AM

  • How do I move video clips to specific points on a music track in iMovie?

    I am trying to make a lip synch video and need to move my video clips to specific points on a musci track so that the words are in time with people singing - does anyone know how to do this? At the moment, I only seem able to put the clips in one after the other...

    Hi
    IMovie is Video clip oriented - meaning that Audio can not be put in first and video/photos added later.
    So to do this I use black photos that I fill up the Video with first
    Then Add audio
    Then add Video/photos by Cutaway function or exact replacement (in time).
    This is so much easier in any version of FINALCUT where one can build Audio first then create the video ontop of this.
    Yours Bengt W

  • How to find all those list of SAP standard and custom objects that are changed from a specific point of time

    Hi all,
    Please let me know the process to track or find all the SAP Standard and custom objects. that got changed from a specific point of time.
    Is there any function module or any table where this change log is maintained.?
    I just only need the details ,wheather that SAP standard or Custom object has got changed or not.
    Thanks in advance

    Hi RK v ,
    I really don't know what your actual requirement is , but if you want to know the objects as per the modification , then transport request will be much help to you .
    Have a look into table E070 and E071 .
    Regards ,
    Yogendra Bhaskar

  • Hyperlink to a specific point on a page

    I am trying to insert a hyperlink which jumps to a specific point on a page. The way I would like it to work is so that I have a list of headings - an index - and when you click on a heading it jumps to that particular chapter in a text.
    So far I have only been able to get a hyperlink to jump to the top of a page.

    Anchor
    Search is your friend

  • QuickTime: can't move to a specific point when playing .WMA audio files

    I use a lot of .WMA audio files recorded on my Olympus Digital Voice recorder. Since the latest update of QuickTime I cannot move to a specific point in a file. When I click and drag on the diamond cursor it won't move. The only way to move through the file is to play it or 'fast' forward it - which takes ages.

    I have the same problem. when playing wma or wmv file, simply just cannot drag the progress bar to a specific position. Just have to progress from the very beginning to the end. Once it has been played to the end, I can move the progress bar. Very weird
    I have both flip4Mac and perian installed with the latest version.
    Could anybody please help.
    cheers

  • How to rewind to a specific point?

    I have a 30 gig. Ipod on which I like to listen to audible.com books. I just got a new Nano. On my 30 gig Ipod, I can rewind or fast forward to a SPECIFIC point of the book, not just to the very beginning or to the end. I can't seem to do this with the Nano, which allows me to go only to the very beginning or to the very end. What am I doing wrong? Thanks so much in advance.

    Whilst listening to the audiobook, and the iPod is in the 'Now Playing' screen, press the centre button once. A small diamond will appear in the time scroller ad the current time point. Just use the scrollwheel to get to the time where you want to listen to.
    Hope that helps

  • Zoom into a specific point on a clip

    How do I zoom to a specific point on a clip or picture?
    Whenever I try to use this feature it just goes to the centre of the clip.
    Thank-you.

    Make sure Image + Wireframe is selected in the Canvas:
    Select the clip you want to zoom in on and reposition on the timeline by clicking on it. Once it is selected on the timeline, the turquoise box and cross hairs should appear in the canvas.
    If you click and drag on one of the boxes on the corner, you can resize your image:
    And if you click and drag on the image itself, you can change the clips position:
    You may need to change the canvas display scale to see the handles after you zoom in:
    MtD

  • Jumping to a specific point in a clip

    How can I jump to a specific point/frame in a clip? Example: I know a clip is exactly 3:40 long. How could I go to 3:37?
    Thanks.

    If you have the clip loaded in the Viewer window and the Viewer window highlighted, it will take you to that point in the clip, if you have the Timeline highlighted, it will take you to that point in the Timeline. You can also save a few keystrokes by just hitting "3.37." to skip to 3 minutes and 37 seconds, for example.
    -Zap

  • Is there a way to draw gridlines at a specific point on a bubble chart?

    I'm using Xcelsius 4.5 and (trying to) creating a bubble chart.  I am using static min/max values for the x and y axes, but rather than drawing the gridlines in 1 or 2 divisions (i.e. the midpoint), I want to draw a grid line (both x and y) at a specific point -- is there any way to designate this point in Xcelsius?

    I figured it out - I just adjusted my formula to draw the min/max such that my intersection is always the midpoint

  • Can I set a specific point on the page to go with a button?

    I got a page of 1024x3072 and i need set a button to go on a specific point of the page, for example, from 650px to 724px just using a button.
    So, my question is ¿can i do that?, ¿how?...Thanks

    Not supported.
    Bob

Maybe you are looking for

  • Memory Upgrade on ASA5520

    Just bought an ASA5520, opened the box to upgrade the memory to 2 GB to support 8.3, and discovered that the unit only has 1 memory module slot.  I thought all the ASA5520 units came with 4 slot?  There are hole patterns for the other 3 slots, but no

  • Remote front panels

    when I use remote front panels in LAbVIew 6.1, The Web Server and the client interact using DataSocket Technology through the ActiveX controls embebed in the web page?

  • Abap TIME_OUT sequencial read of table D010INC

    Dear all, I installed SAP ECC 6.0 SR3 in Linux SLES10 with Oracle 10.2.0.2.0. Most of the SAP transactions hangs. If I check transaction SM50 I find that SAP is making a sequential read of table D010INC. The programs dumps with timeout in instruction

  • Calling a componet fron the parent class

    Hi all, I'm currently developing a flex application where i need to pass the data from the login form to a parent state. Does any body know how i should go about doing that??

  • Apple rss feeds on my site

    on my site I would like to have apple's hot news feeds on my site which I receive in mail