OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::Painter2DPreview Class Reference

#include "Painter2DPreview.h"

Inheritance diagram for ot::Painter2DPreview:
ot::QWidgetInterface

Public Member Functions

 Painter2DPreview (const Painter2D *_painter=(Painter2D *) nullptr)
 
virtual ~Painter2DPreview ()
 
void setFromPainter (const ot::Painter2D *_painter)
 
virtual void paintEvent (QPaintEvent *_event) override
 
virtual QWidget * getQWidget (void) override
 Returns a pointer to the root widget of this object.
 
virtual const QWidget * getQWidget (void) const override
 
void setMaintainAspectRatio (bool _maintain)
 
bool isMaintainAspectRatio (void) const
 
- Public Member Functions inherited from ot::QWidgetInterface
 QWidgetInterface ()
 
virtual ~QWidgetInterface ()
 
void setOTWidgetFlags (const WidgetFlags &_flags)
 
const WidgetFlagsotWidgetFlags (void) const
 

Additional Inherited Members

- Protected Member Functions inherited from ot::QWidgetInterface
virtual void otWidgetFlagsChanged (const WidgetFlags &_flags)
 

Constructor & Destructor Documentation

◆ Painter2DPreview()

ot::Painter2DPreview::Painter2DPreview ( const Painter2D * _painter = (Painter2D*) nullptr)

◆ ~Painter2DPreview()

ot::Painter2DPreview::~Painter2DPreview ( )
virtual

Member Function Documentation

◆ getQWidget() [1/2]

virtual const QWidget * ot::Painter2DPreview::getQWidget ( void ) const
inlineoverridevirtual

Implements ot::QWidgetInterface.

◆ getQWidget() [2/2]

virtual QWidget * ot::Painter2DPreview::getQWidget ( void )
inlineoverridevirtual

Returns a pointer to the root widget of this object.

Implements ot::QWidgetInterface.

◆ isMaintainAspectRatio()

bool ot::Painter2DPreview::isMaintainAspectRatio ( void ) const
inline

◆ paintEvent()

void ot::Painter2DPreview::paintEvent ( QPaintEvent * _event)
overridevirtual

◆ setFromPainter()

void ot::Painter2DPreview::setFromPainter ( const ot::Painter2D * _painter)

◆ setMaintainAspectRatio()

void ot::Painter2DPreview::setMaintainAspectRatio ( bool _maintain)
inline

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