VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes
makVrf::DtQSvgView Class Reference
Inheritance diagram for makVrf::DtQSvgView:
Inheritance graph
[legend]

Public Slots

virtual void setViewBackground (bool enable)
 
virtual void zoomIn ()
 
virtual void zoomOut ()
 
virtual void resetZoom ()
 

Signals

void zoomChanged ()
 

Public Member Functions

 DtQSvgView (QWidget *parent=nullptr)
 
virtual ~DtQSvgView ()
 
virtual void load (const std::string &contents, bool bKeepViewport=false)
 
virtual bool openFile (const QString &fileName)
 
virtual void drawBackground (QPainter *p, const QRectF &rect) override
 
virtual QSize svgSize () const
 
virtual qreal zoomFactor () const
 

Protected Member Functions

virtual void wheelEvent (QWheelEvent *event) override
 
virtual void paintEvent (QPaintEvent *event) override
 
virtual void deleteAndClearSvg ()
 
virtual void zoomBy (qreal factor)
 

Protected Attributes

QSvgRenderer * pMySvgRenderer
 
QGraphicsSvgItem * m_svgItem
 
QGraphicsRectItem * m_backgroundItem
 

Constructor & Destructor Documentation

makVrf::DtQSvgView::DtQSvgView ( QWidget *  parent = nullptr)
explicit
virtual makVrf::DtQSvgView::~DtQSvgView ( )
virtual

Member Function Documentation

virtual void makVrf::DtQSvgView::load ( const std::string &  contents,
bool  bKeepViewport = false 
)
virtual

Render from the string buffer containing XML This will be passed to a QXmlStreamReader. If bKeepViewport is true, an attempt will be made to preserve the existing viewport.

virtual bool makVrf::DtQSvgView::openFile ( const QString &  fileName)
virtual

Render the contents of the given SVG file.

virtual void makVrf::DtQSvgView::drawBackground ( QPainter *  p,
const QRectF &  rect 
)
overridevirtual
virtual QSize makVrf::DtQSvgView::svgSize ( ) const
virtual
virtual qreal makVrf::DtQSvgView::zoomFactor ( ) const
virtual
virtual void makVrf::DtQSvgView::setViewBackground ( bool  enable)
virtualslot
virtual void makVrf::DtQSvgView::zoomIn ( )
virtualslot
virtual void makVrf::DtQSvgView::zoomOut ( )
virtualslot
virtual void makVrf::DtQSvgView::resetZoom ( )
virtualslot
void makVrf::DtQSvgView::zoomChanged ( )
signal
virtual void makVrf::DtQSvgView::wheelEvent ( QWheelEvent *  event)
overrideprotectedvirtual
virtual void makVrf::DtQSvgView::paintEvent ( QPaintEvent *  event)
overrideprotectedvirtual
virtual void makVrf::DtQSvgView::deleteAndClearSvg ( )
protectedvirtual
virtual void makVrf::DtQSvgView::zoomBy ( qreal  factor)
protectedvirtual

Member Data Documentation

QSvgRenderer* makVrf::DtQSvgView::pMySvgRenderer
protected
QGraphicsSvgItem* makVrf::DtQSvgView::m_svgItem
protected
QGraphicsRectItem* makVrf::DtQSvgView::m_backgroundItem
protected

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)