Re: Re : Re: [openmeetings-user] Precision about variables

5 views
Skip to first unread message

seba....@gmail.com

unread,
Jun 27, 2011, 11:10:33 AM6/27/11
to openmeet...@googlegroups.com
its necessary to calculate the boundingbox of the line-object.

If you draw something on the whiteboard the object is relative drawn to the ORIGIN of the whiteboard.

In order to select the object later on I need to know the *virtual box* the boundingbox of the object.

Example:
Initial ULine (Origin): x1=400,y1=400, x2:500,y2:500

=> Bounding Box: x:400,y:400,width:100,height:100
ULine-Object: x1:0,y1:0, x2:100, y2:100

minx/miny is necessary to calc the shift of the object to its actual position.


Sebastian

2011/6/27 Guillaume <guigui...@gmail.com>
Ok, its at the beginning of the method endUline, you have :

"Get Bounds of that object"
 var minx = this.width+2;
 var miny = this.height+2;

and after :
" this.currentlayer = new lz.drawViewNew(this,{
                name:tempName,x:minx-1-(this.currentulinelineWidth,
                y:miny-1-(this.currentulinelineWidth),
                width:(width+this.currentlinelineWidth),
                height:(width+this.currentlinelineWidth),
                opacity:this.currentulineOpacity}); "

I don't know if theses variables are responsible of the shifting of the Uline or maybe the update of variables x1,y1,x2,y2.

This is my question.

Any idea about that ?

Thanks



--
You received this message because you are subscribed to the Google Groups "OpenMeetings User" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openmeetings-user/-/g5F_MWuqn-0J.
To post to this group, send email to openmeet...@googlegroups.com.
To unsubscribe from this group, send email to openmeetings-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openmeetings-user?hl=en.



--
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.wagner-sebastian.com
seba....@gmail.com

Guillaume

unread,
Jun 27, 2011, 11:34:03 AM6/27/11
to openmeet...@googlegroups.com
Ok I understand better why you have implemented this like that.

I tried to compare the 2 codes between drawUline and drawline and they are very similar.

I wondered if it is possible or not to have the same behavior of the object line which it doesn't move after the drawing ?

Maybe it will affect the update of bounding box..

Thanks



Reply all
Reply to author
Forward
0 new messages