All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::layout::AbstractScene Class Referenceabstract

Abstract scene for Scene, a QGraphicsScene class, part of Graphics View Framework. More...

#include <AbstractScene.h>

Inheritance diagram for te::layout::AbstractScene:
te::layout::Scene

Public Member Functions

 AbstractScene ()
 Constructor. More...
 
virtual te::gm::Envelope getSceneBox ()
 Method that return the scene box. More...
 
virtual void init (double screenWMM, double screenHMM)=0
 Method that starts the scene and configures. Calculates the transformation matrix of the scene and calculates the ratio of the size of the scene with the paper size. More...
 
virtual void insertItem (ItemObserver *item)=0
 Method that inserts a graphic object in the scene. Inverts the matrix of the object if necessary, ex.: TextItem. More...
 
virtual ~AbstractScene (void)
 Destructor. More...
 

Protected Member Functions

virtual void calculateMatrixViewScene ()=0
 Method that calculates the transformation matrix of the scene. This matrix will be set in each QGraphicsView class that watches this scene. More...
 
virtual void calculateWindow (double wMM, double hMM)=0
 Method that calculates the ratio of the size of the scene with the paper size. This calculation is necessary so that the paper always is centered in the scene. More...
 

Protected Attributes

te::gm::Envelope m_box
 scene box. More...
 

Detailed Description

Abstract scene for Scene, a QGraphicsScene class, part of Graphics View Framework.

Definition at line 48 of file AbstractScene.h.

Constructor & Destructor Documentation

te::layout::AbstractScene::AbstractScene ( )

Constructor.

Definition at line 31 of file AbstractScene.cpp.

virtual te::layout::AbstractScene::~AbstractScene ( void  )
inlinevirtual

Destructor.

Definition at line 60 of file AbstractScene.h.

Member Function Documentation

virtual void te::layout::AbstractScene::calculateMatrixViewScene ( )
protectedpure virtual

Method that calculates the transformation matrix of the scene. This matrix will be set in each QGraphicsView class that watches this scene.

Implemented in te::layout::Scene.

virtual void te::layout::AbstractScene::calculateWindow ( double  wMM,
double  hMM 
)
protectedpure virtual

Method that calculates the ratio of the size of the scene with the paper size. This calculation is necessary so that the paper always is centered in the scene.

Parameters
wMMwidth of physical screen in millimeters
hMMheight of physical screen in millimeters

Implemented in te::layout::Scene.

te::gm::Envelope te::layout::AbstractScene::getSceneBox ( )
virtual
virtual void te::layout::AbstractScene::init ( double  screenWMM,
double  screenHMM 
)
pure virtual

Method that starts the scene and configures. Calculates the transformation matrix of the scene and calculates the ratio of the size of the scene with the paper size.

Parameters
screenWMMwidth of physical screen in millimeters
screenHMMheight of physical screen in millimeters

Implemented in te::layout::Scene.

virtual void te::layout::AbstractScene::insertItem ( ItemObserver item)
pure virtual

Method that inserts a graphic object in the scene. Inverts the matrix of the object if necessary, ex.: TextItem.

Parameters
itemgraphic object

Implemented in te::layout::Scene.

Member Data Documentation

te::gm::Envelope te::layout::AbstractScene::m_box
protected

scene box.

Definition at line 101 of file AbstractScene.h.


The documentation for this class was generated from the following files: