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

This is the abstract view for View. More...

#include <AbstractView.h>

Inheritance diagram for te::layout::AbstractView:
te::layout::View

Public Member Functions

 AbstractView ()
 Constructor. More...
 
virtual void addZoomFactor (double factor, std::string text)
 Method that adds new zoom factor. Ex.: 0.5 - 50%. More...
 
virtual void clearZoomFactors ()
 Method that clears the zoom factor list. More...
 
virtual void config ()=0
 Initialization method that configures the View and sets the transformation matrix of the scene in the View object. More...
 
virtual bool isVisibleRulers ()
 Method that return rulers visibility state. More...
 
virtual double nextFactor (double currentFactor)
 Method that returns the next zoom factor in the list. More...
 
virtual double previousFactor (double currentFactor)
 Method that returns the previous zoom factor in the list. More...
 
virtual void setVisibleRulers (bool visible)
 Method that change rulers visibility state. More...
 
virtual ~AbstractView (void)
 Destructor. More...
 

Protected Attributes

bool m_visibleRulers
 rulers visibility state More...
 
std::map< double, std::string > m_zoomFactors
 zoom factor list More...
 

Detailed Description

This is the abstract view for View.

Definition at line 49 of file AbstractView.h.

Constructor & Destructor Documentation

te::layout::AbstractView::AbstractView ( )

Constructor.

Definition at line 31 of file AbstractView.cpp.

References m_zoomFactors.

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

Destructor.

Definition at line 61 of file AbstractView.h.

Member Function Documentation

void te::layout::AbstractView::addZoomFactor ( double  factor,
std::string  text 
)
virtual

Method that adds new zoom factor. Ex.: 0.5 - 50%.

Parameters
factorfactor
textpercentage

Definition at line 53 of file AbstractView.cpp.

void te::layout::AbstractView::clearZoomFactors ( )
virtual

Method that clears the zoom factor list.

Definition at line 58 of file AbstractView.cpp.

virtual void te::layout::AbstractView::config ( )
pure virtual

Initialization method that configures the View and sets the transformation matrix of the scene in the View object.

Implemented in te::layout::View.

bool te::layout::AbstractView::isVisibleRulers ( )
virtual

Method that return rulers visibility state.

Returns
true if visible, false otherwise

Definition at line 43 of file AbstractView.cpp.

double te::layout::AbstractView::nextFactor ( double  currentFactor)
virtual

Method that returns the next zoom factor in the list.

Parameters
currentFactorcurrent factor

Definition at line 63 of file AbstractView.cpp.

double te::layout::AbstractView::previousFactor ( double  currentFactor)
virtual

Method that returns the previous zoom factor in the list.

Parameters
currentFactorcurrent factor

Definition at line 83 of file AbstractView.cpp.

void te::layout::AbstractView::setVisibleRulers ( bool  visible)
virtual

Method that change rulers visibility state.

Parameters
visiblevisibility state

Definition at line 48 of file AbstractView.cpp.

Member Data Documentation

bool te::layout::AbstractView::m_visibleRulers
protected

rulers visibility state

Definition at line 111 of file AbstractView.h.

std::map<double, std::string> te::layout::AbstractView::m_zoomFactors
protected

zoom factor list

Definition at line 112 of file AbstractView.h.

Referenced by AbstractView().


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