Stellarium  HEAD
Data Structures | Public Slots | Public Member Functions | Protected Member Functions
LensDistortionEstimatorDialog Class Reference

Data Structures

struct  ImagePointStatus
 

Public Slots

void retranslate () override
 
- Public Slots inherited from StelDialog
virtual void styleChanged (const QString &style)
 Apply application style change.
 
virtual void retranslate ()=0
 Retranslate the content of the dialog. More...
 
virtual void setVisible (bool)
 On the first call with "true" populates the window contents.
 
virtual void close ()
 Closes the window (the window widget is not deleted, just not visible).
 
void handleMovedTo (QPoint newPos)
 Adds dialog location to config.ini; should be connected in createDialogContent()
 
virtual void handleDialogSizeChanged (QSizeF size)
 Stores dialog sizes into config.ini; should be connected from the proxy. More...
 

Public Member Functions

 LensDistortionEstimatorDialog (LensDistortionEstimator *lde)
 
void init ()
 
double distortionTerm1 () const
 
double distortionTerm2 () const
 
double distortionTerm3 () const
 
Vec3d imageUpDir () const
 
Vec3d projectionCenterDir () const
 
Vec2d imageCenterShift () const
 
QColor bgToSubtract () const
 
double imageBrightness () const
 
double imageSmallerSideFoV () const
 
LensDistortionEstimator::DistortionModel distortionModel () const
 
Vec3d computeImagePointDir (const Vec2d &imagePoint) const
 
double applyDistortion (const double ru) const
 
double maxUndistortedR () const
 
QImage image () const
 
bool imageChanged () const
 
void resetImageChangeFlag ()
 
bool isPickingAPoint () const
 
void resetImagePointPicking ()
 
void registerImagePoint (const StelObject &object, const Vec2d &posInImage)
 
void repositionImageByPoints ()
 
void setupGenerateLensfunModelButton ()
 
double imageFieldRotation () const
 
double projectionCenterAzimuth () const
 
double projectionCenterElevation () const
 
void setImageFieldRotation (double imageFieldRot)
 
void setProjectionCenterAzimuth (double centerAzim)
 
void setProjectionCenterElevation (double centerElev)
 
void setImageSmallerSideFoV (double fov)
 
double computeAngleBetweenImagePoints (const Vec2d &pointA, const Vec2d &pointB, double smallerSideFoV) const
 
void togglePointPickingMode ()
 
void generateLensfunModel ()
 
void showSettingsPage ()
 
void showComputationPage ()
 
bool initialized () const
 
std::vector< ImagePointStatusimagePointDirections () const
 
- Public Member Functions inherited from StelDialog
 StelDialog (const QString &dialogName=QString("Default"), QObject *parent=nullptr)
 
bool visible () const
 Returns true if the dialog contents have been constructed and are currently shown.
 
QString getDialogName () const
 

Protected Member Functions

void createDialogContent () override
 Initialize the dialog widgets and connect the signals/slots.
 
void emitWarning (const QString &text, bool autoFixable=false)
 
void clearWarnings ()
 

Additional Inherited Members

- Signals inherited from StelDialog
void visibleChanged (bool)
 
- Protected Slots inherited from StelDialog
bool askConfirmation (const QString &message=q_("Are you sure? This will delete your customized data."))
 
void messageBox (const QString &title, const QString &message)
 
void enableKineticScrolling (bool b)
 enable kinetic scrolling. This should be connected to StelApp's StelGui signal flagUseKineticScrollingChanged.
 
void handleFontChanged ()
 connect from StelApp to handle font and font size changes.
 
void handleColorSchemeChanged ()
 connect from StelApp to handle CSS style changes
 
virtual void updateNightModeProperty (bool n)
 
- Static Protected Member Functions inherited from StelDialog
static void connectCheckBox (QAbstractButton *checkBox, const QString &actionName)
 Helper function to connect a checkbox to the StelAction with the specified name.
 
static void connectCheckBox (QAbstractButton *checkBox, StelAction *action)
 Helper function to connect a checkbox to the given StelAction.
 
static void connectIntProperty (QLineEdit *lineEdit, const QString &propName)
 Helper function to connect a QLineEdit to an integer StelProperty. More...
 
static void connectIntProperty (QSpinBox *spinBox, const QString &propName)
 Helper function to connect a QSpinBox to an integer StelProperty. More...
 
static void connectIntProperty (QComboBox *comboBox, const QString &propName)
 Helper function to connect a QComboBox to an integer StelProperty. More...
 
static void connectIntProperty (QSlider *slider, const QString &propName, int minValue, int maxValue)
 Helper function to connect a QSlider to an double or float StelProperty. More...
 
static void connectDoubleProperty (QDoubleSpinBox *spinBox, const QString &propName)
 Helper function to connect a QDoubleSpinBox to an double or float StelProperty. More...
 
static void connectDoubleProperty (AngleSpinBox *spinBox, const QString &propName)
 Helper function to connect an AngleSpinBox to a double or float StelProperty representing decimal degrees. More...
 
static void connectDoubleProperty (QSlider *slider, const QString &propName, double minValue, double maxValue)
 Helper function to connect a QSlider to an double or float StelProperty. More...
 
static void connectStringProperty (QComboBox *comboBox, const QString &propName)
 Helper function to connect a QComboBox to a QString StelProperty. More...
 
static void connectStringProperty (QLineEdit *lineEdit, const QString &propName)
 Helper function to connect a QLineEdit to a QString StelProperty. More...
 
static void connectBoolProperty (QAbstractButton *checkBox, const QString &propName)
 Helper function to connect a checkbox to a bool StelProperty. More...
 
static void connectBoolProperty (QGroupBox *checkBox, const QString &propName)
 Helper function to connect a groupbox to a bool StelProperty. More...
 
- Protected Attributes inherited from StelDialog
QWidget * dialog
 The main dialog.
 
class CustomProxyproxy
 
QString dialogName
 The name should be set in derived classes' constructors and can be used to store and retrieve the panel locations.
 
QList< QWidget * > kineticScrollingList
 A list of widgets where kinetic scrolling can be activated or deactivated The list must be filled once, in the constructor or init() of fillDialog() etc. More...
 
- Properties inherited from StelDialog
bool visible
 

Data Structure Documentation

◆ LensDistortionEstimatorDialog::ImagePointStatus

struct LensDistortionEstimatorDialog::ImagePointStatus
Data Fields
Vec3d direction
bool selected