VPTissue Reference Manual
SimPT_Editor::TransformationWidget Class Reference

Qt GUI to enter a transformation of an item. More...

#include <TransformationWidget.h>

Inheritance diagram for SimPT_Editor::TransformationWidget:
Inheritance graph
Collaboration diagram for SimPT_Editor::TransformationWidget:
Collaboration graph

Signals

void TransformationChanged ()
 Emitted when the transformation is changed by the user.
 

Public Member Functions

 TransformationWidget (int maxScaleRatio, double maxTranslationX, double maxTranslationY, QWidget *parent=nullptr)
 Constructor. More...
 
virtual ~TransformationWidget ()
 Destructor.
 
int GetRotation ()
 Gets the rotation of the transformation. More...
 
double GetScalingX ()
 Gets the x scaling of the transformation. More...
 
double GetScalingY ()
 Gets the y scaling of the transformation. More...
 
double GetTranslationX ()
 Gets the x translation of the transformation. More...
 
double GetTranslationY ()
 Gets the y translation of the transformation. More...
 

Detailed Description

Qt GUI to enter a transformation of an item.

Definition at line 33 of file TransformationWidget.h.

Constructor & Destructor Documentation

SimPT_Editor::TransformationWidget::TransformationWidget ( int  maxScaleRatio,
double  maxTranslationX,
double  maxTranslationY,
QWidget parent = nullptr 
)

Constructor.

Parameters
maxScaleRatioThe maximum ratio that can be scaled
maxTranslationXThe maximum translation in the x direction
maxTranslationYThe maximum translation in the y direction
parentThe widget's parent

Definition at line 58 of file TransformationWidget.cpp.

Member Function Documentation

int SimPT_Editor::TransformationWidget::GetRotation ( )
inline

Gets the rotation of the transformation.

Returns
int The rotation (in integer degrees)

Definition at line 58 of file TransformationWidget.h.

double SimPT_Editor::TransformationWidget::GetScalingX ( )
inline

Gets the x scaling of the transformation.

Returns
double The scaling factor in the x direction

Definition at line 65 of file TransformationWidget.h.

double SimPT_Editor::TransformationWidget::GetScalingY ( )
inline

Gets the y scaling of the transformation.

Returns
double The scaling factor in the y direction

Definition at line 72 of file TransformationWidget.h.

double SimPT_Editor::TransformationWidget::GetTranslationX ( )
inline

Gets the x translation of the transformation.

Returns
double The translation distance in the x direction

Definition at line 79 of file TransformationWidget.h.

double SimPT_Editor::TransformationWidget::GetTranslationY ( )
inline

Gets the y translation of the transformation.

Returns
double The translation distance in the y direction

Definition at line 86 of file TransformationWidget.h.


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