bugpyFormex - Bugs: bug #42368, Carpet example does not work due...

 
 

bug #42368: Carpet example does not work due to wrong input of canvas.removeDecorations

Submitted by:  francesco <francio>
Submitted on:  Thu 15 May 2014 09:51:39 AM UTC  
 
Category: ExamplesSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Benedict Verhegghe <bverheg>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 22 May 2014 07:49:26 AM UTC, comment #3:

About the color legend the problem is not
surface_menu.showSurfaceValue. this function call drawFiels which draw the colorscale by default. so we may add parameter in drawField to suppress the visualization of the color scale

francesco <francio>
Project Member
Thu 15 May 2014 06:04:38 PM UTC, comment #2:

In 0e09c9d, Carpetry is fixed by avoiding the use of removeDecoration.

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
Thu 15 May 2014 10:18:06 AM UTC, comment #1:

In the old engine, removeDecoration without arguments removed all decorations. Since this is the only place in pyFormex where this is used, I think we can do without it. Just add the proper argument: pf.canvas.scene.decorations.
We will probably later change all remove* to removeAny.

Notice that ther is another error in the example: the color legend should not be displayed. You may have to look to
surface_menu.showSurfaceValue to fix that.

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
Thu 15 May 2014 09:51:39 AM UTC, original submission:

in line 106 pf.canvas.removeDecoration() raise an error

pf.canvas.removeDecoration()
TypeError: removeAny() takes exactly 2 arguments (1 given)

as remove any need an actor argument. I dont know how to fix it as I dont know which is the actor to pass.

francesco <francio>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 22 May 2014 02:42:55 PM UTCbverhegAssigned toNone=>bverheg
      Open/ClosedOpen=>Closed
    Thu 15 May 2014 06:04:38 PM UTCbverhegStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1