mainpyFormex - Support: sr #108707, avoid zoomAll on subsequent draw

 
 

sr #108707: avoid zoomAll on subsequent draw

Submitter:  francesco <francio>
Submitted:  Sat 20 Dec 2014 03:00:17 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  2 - Minor Privacy:  Public
Assigned to:  None Open/Closed:  Open
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 20 Dec 2014 03:17:22 PM UTC, comment #3: 

The following are standard pyFormex techniques:



# Draw without changing the camera view:
draw(F,bbox='last')

# Keep the same camera view for all subsequent draws:
setDrawOptions({'bbox':'last'})

# Undo the previous (activate automatic zoom again):
setDrawOptions({'bbox':'auto'})

# Lock the camera (this also prevents interactive changes)
pf.canvas.camera.lock()

# Undo the previous:
pf.canvas.camera.lock(False)


Benedict Verhegghe <bverheg>
Group administrator
Sat 20 Dec 2014 03:13:40 PM UTC, comment #2: 

The following are standard pyFormex techniques:



# Draw without changing the camera view:
draw(F,bbox='last')

# Keep the same camera view for all subsequent draws:
setDrawOptions({'bbox':'last'})

# Undo the previous (activate automatic zoom again):
setDrawOptions({'bbox':'auto'})

# Lock the camera (this also prevents interactive changes)
pf.canvas.camera.lock()

# Undo the previous:
pf.canvas.camera.lock(False)

-vertbatim-

Benedict Verhegghe <bverheg>
Group administrator
Sat 20 Dec 2014 03:00:17 PM UTC, comment #1: 

This item has been reassigned from the project pyFormex bugs tracker to your tracker.

The original report is still available at bugs #43856

Following are the information included in the original report:

[field #0]                  Item ID: 43856
[field #1]                 Group ID: 10866
[field #2]              Open/Closed: Open
[field #3]                 Severity: 2 - Minor
[field #4]                  Privacy: Public
[field #9]                 Category: Rendering
[field #10]             Submitted by: francio
[field #11]              Assigned to: None
[field #12]             Submitted on: Sat 20 Dec 2014 03:17:03 PM CET
[field #13]                  Summary: avoid zoomAll on subsequent draw
[field #14]      Original Submission: I have some models of which I need to take pictures. I need to keep teh same camera distance to have teh dimension to be comparable. every time the draw makes a zoomAll to the new model. For the moment I use a fixed bbox value, but is there a better way or some command to switch off the zooming when using draw?
[field #16]               Item Group: None
[field #17]                   Status: None
[field #18]        Component Version: None
[field #19]         Operating System: None
[field #20]          Reproducibility: None
[field #21]               Size (loc): None
[field #22]            Fixed Release: None
[field #23]          Planned Release: None
[field #24]                   Effort: 0.00
[field #28]                 Priority: 5 - Normal
[field #31]         Percent Complete: 0%
[field #33]                  Release: None
[field #58]     Custom Select Box #1: None
[field #59]     Custom Select Box #2: None
[field #60]     Custom Select Box #3: None
[field #61]     Custom Select Box #4: None
[field #62]     Custom Select Box #5: None
[field #63]     Custom Select Box #6: None
[field #64]     Custom Select Box #7: None
[field #65]     Custom Select Box #8: None
[field #66]     Custom Select Box #9: None
[field #67]    Custom Select Box #10: None

Benedict Verhegghe <bverheg>
Group administrator
Sat 20 Dec 2014 03:00:17 PM UTC, original submission:  

I have some models of which I need to take pictures. I need to keep teh same camera distance to have teh dimension to be comparable. every time the draw makes a zoomAll to the new model. For the moment I use a fixed bbox value, but is there a better way or some command to switch off the zooming when using draw?

francesco <francio>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bverheg (Posted a comment)
  • -email is unavailable- added by francio (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-12-20 bverheg Reassign itempyFormex, bug #43856 pyFormex, sr #108707

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code