I am in doubt with the usage of MVC in context to the example as follows :
Consider an example of a little drawing application.
Now say for example, there is a textbox where user can enter ANGLE for selected shape, Expected result should be, that each selected shape should get rotated as per the angle specified in textbox.
Say I have a shape object that is a View named as ShapeView The given view has its own data like its position, current angle of rotation , stroke color, fill color, etc... So I have a model for the shape as ShapeModel
So now I have Controller, that handles this textbox and the multiple shape views. A change in textbox value lets controller take necessary steps to rotate the shape.
QUESTION:
So the doubt is , should the controller directly access the shapeview's shapeModel and call the rotate method? OR should the Controller call shapeView's rotate method, that internally calls shapeModel's rotate method?
In short, should any outside entity access a view's model directly? Or should it go through View only? Is it a good idea to access model directly? Any issues or concerns if I access so.?