Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
wiki:designimplementation:layout:item [2015/01/30 16:43]
juliana.coelho
wiki:designimplementation:layout:item [2015/01/30 16:45] (current)
juliana.coelho
Line 5: Line 5:
 ==== ObjectItem ==== ==== ObjectItem ====
  
-Abstract class that represents a graphic item. This object is of type QGraphicsObject. Its coordinate system is the same of scene (millimeters). Knows rotate and resize. Stores a pixmap drawn by model. This is also son of ItemObserver,​ so it can become observer of a model (Observable). This class will be inherited and will became the view part of the MVC component.+Abstract class that represents a graphic item. This object is of type QGraphicsObject. Its coordinate system is the same of scene (millimeters). Knows rotate and resize. Stores a pixmap drawn by model. This is also child of ItemObserver,​ so it can become observer of a model (Observable). This class will be inherited and will became the view part of the MVC component.
  
 ==== MapItem ==== ==== MapItem ====
  
-This class is a proxy MapDisplay. This makes it possible to add a MapDisplay as item of a scene. This object is of type QGraphicsProxyWidget. He have a directly interaction by user. The transformation matrix is inverted, that is, the inverse of the matrix of the scene, so its coordinate system is screen (pixel), but its position in the scene remains in millimeters. This is also son of ItemObserver,​ so it can become observer of a model (Observable). "​View"​ part of MVC component.+This class is a proxy MapDisplay. This makes it possible to add a MapDisplay as item of a scene. This object is of type QGraphicsProxyWidget. He have a directly interaction by user. The transformation matrix is inverted, that is, the inverse of the matrix of the scene, so its coordinate system is screen (pixel), but its position in the scene remains in millimeters. This is also child of ItemObserver,​ so it can become observer of a model (Observable). "​View"​ part of MVC component.
        
 ==== TextItem ==== ==== TextItem ====
  
-Class that represents text. This object is of type QGraphicsTextItem. He is directly editable via user interaction. The transformation matrix is inverted, that is, the inverse of the matrix of the scene, so its coordinate system is screen (pixel), but its position in the scene remains in millimeters. This is also son of ItemObserver,​ so it can become observer of a model (Observable). "​View"​ part of MVC component.+Class that represents text. This object is of type QGraphicsTextItem. He is directly editable via user interaction. The transformation matrix is inverted, that is, the inverse of the matrix of the scene, so its coordinate system is screen (pixel), but its position in the scene remains in millimeters. This is also child of ItemObserver,​ so it can become observer of a model (Observable). "​View"​ part of MVC component.
  
 ==== ItemGroup ==== ==== ItemGroup ====
  
-Class that represents the grouping of objects of type QGraphicsItem,​ MVC components. Its coordinate system is the same of scene (millimeters). This is also the son of ItemObserver and ObjectItem, so it can become observer of a model (Observable). ​+Class that represents the grouping of objects of type QGraphicsItem,​ MVC components. Its coordinate system is the same of scene (millimeters). This is also the child of ItemObserver and ObjectItem, so it can become observer of a model (Observable). ​
  
 ==== LegendItem ==== ==== LegendItem ====
  
-Class that represents a graphic legend of a map. Its coordinate system is the same of scene (millimeters). This is also the son of ItemObserver and ObjectItem, so it can become observer of a model (Observable). ​+Class that represents a graphic legend of a map. Its coordinate system is the same of scene (millimeters). This is also the child of ItemObserver and ObjectItem, so it can become observer of a model (Observable). ​
  
 ==== ScaleItem ==== ==== ScaleItem ====
  
-Class that represents a graphic scale of a map. Its coordinate system is the same of scene (millimeters). This is also the son of ItemObserver and ObjectItem, so it can become observer of a model (Observable). ​+Class that represents a graphic scale of a map. Its coordinate system is the same of scene (millimeters). This is also the child of ItemObserver and ObjectItem, so it can become observer of a model (Observable). ​ 
  

QR Code
QR Code wiki:designimplementation:layout:item (generated for current page)