Difference between revisions of "Assignment 2 (Fall 2013) Q & A"
(→Q&A About the CFrame Class) |
|||
Line 33: | Line 33: | ||
== Q&A About the CFrame Class == | == Q&A About the CFrame Class == | ||
− | * Q&A Fall 2012 | + | * Read Q&A Fall 2012. |
* Alek's Questions (Fall 2013) | * Alek's Questions (Fall 2013) | ||
+ | ** In the specifications, it says ”If the constructor receives a negative height, the frame is full screen no matter what values of row, col, or width the caller specifies”. What if the passed-in width is negative? Shouldn’t the frame be considered full screen in this case as well? | ||
+ | *** Answer: Yes, the frame should be full screen if the width is negative. | ||
+ | ** The fifth parameter on the constructor is a bool that indicates the frame’s visibility. But when I read the description of the draw() function, it says “... and that border is visible”. These two statements seem to contradict each other. One talks about the visibility of the frame and the other talks about the visibility of the border. In other words, I’m not sure what the visibility parameter refers to (border or the frame). I believe that visibility refers to the visibility of the border, not the frame. Can you please clarify? | ||
+ | *** Answer: Yes, your conclusion is valid. The fifth parameter in the CFrame constructor defines the frame's BORDER VISIBILITY, not the frame's visibility. | ||
+ | ** For the draw(int = C_FULL_FRAME) function, I don't understand the purpose of its parameter. Is this intended to override the visibility of the border? If the frame is not bordered and if this parameter says C_FULL_FRAME, then should we draw the border anyways? What if the frame is full screen and this parameter says C_FULL_FRAME? Should it draw a border? | ||
+ | *** Answer:The function draws the frame if a) the frame is bordered AND b) the value of the parameter is not equal to C_NO_FRAME. |
Revision as of 15:44, 23 October 2013
How to setup SVN for the assignment
(Team 7, Yiqi, Oct 12, 2013)
- The assignment is to be done using SVN server on svn://zenit.senecac.on.ca/. We need the following to set it up:
1. Account info
The professor has sent the SVN accounts, user ids, and passwords to all team members. Format:
#btp300_xxxxrep7 btp300_xxxxX1=xxxxxxxx btp300_xxxxX2=xxxxxxxx btp300_xxxxX3=xxxxxxxx
- Where the first line is the account, which is also the project directory on Zenit.
- The 2nd, 3rd and 4th lines are user ids and passwords for 3 members (in this case).
(the portion before '=' is the user id, after '=' is the password.)
2. A SVN client
3. Setup connection between local computer and the server
- Install the SVN client on your local computer, make a dir for your project, then point your SVN client to this dir as well as the url on Zenit:
- The url should be something like this: svn://zenit.senecac.on.ca/btp300_xxxxrep7
- (Tip:) It may not work if you copy-and-paste the UID and PW to your SVN client's fields. If so, type them in.
Q&A About the CFrame Class
- Read Q&A Fall 2012.
- Alek's Questions (Fall 2013)
- In the specifications, it says ”If the constructor receives a negative height, the frame is full screen no matter what values of row, col, or width the caller specifies”. What if the passed-in width is negative? Shouldn’t the frame be considered full screen in this case as well?
- Answer: Yes, the frame should be full screen if the width is negative.
- The fifth parameter on the constructor is a bool that indicates the frame’s visibility. But when I read the description of the draw() function, it says “... and that border is visible”. These two statements seem to contradict each other. One talks about the visibility of the frame and the other talks about the visibility of the border. In other words, I’m not sure what the visibility parameter refers to (border or the frame). I believe that visibility refers to the visibility of the border, not the frame. Can you please clarify?
- Answer: Yes, your conclusion is valid. The fifth parameter in the CFrame constructor defines the frame's BORDER VISIBILITY, not the frame's visibility.
- For the draw(int = C_FULL_FRAME) function, I don't understand the purpose of its parameter. Is this intended to override the visibility of the border? If the frame is not bordered and if this parameter says C_FULL_FRAME, then should we draw the border anyways? What if the frame is full screen and this parameter says C_FULL_FRAME? Should it draw a border?
- Answer:The function draws the frame if a) the frame is bordered AND b) the value of the parameter is not equal to C_NO_FRAME.
- In the specifications, it says ”If the constructor receives a negative height, the frame is full screen no matter what values of row, col, or width the caller specifies”. What if the passed-in width is negative? Shouldn’t the frame be considered full screen in this case as well?