casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Slots | Public Member Functions | Private Slots | Private Attributes | List of all members
casa::QtNewRSPolygon Class Reference

Specialized widget for creating a new polygon. More...

#include <QtNewRegionShape.qo.h>

Inheritance diagram for casa::QtNewRSPolygon:

Public Slots

void apply ()
 Applies the entered values to the RSPolygon. More...
 

Public Member Functions

 QtNewRSPolygon (RSPolygon *poly, QtRegionShapeManager *manager)
 Constructor which takes the polygon to modify. More...
 
 ~QtNewRSPolygon ()
 Destructor. More...
 
bool enteredCoordinatesAreValid (casacore::String &reason) const
 See QtEditRegionShape::enteredCoordinatesAreValid. More...
 

Private Slots

void addCoordinates ()
 Add the values entered in the line edits to the coord list. More...
 
void listMoveUp ()
 Moves the selected coordinate up in the list. More...
 
void listMoveDown ()
 Moves the selected coordinate down in the list. More...
 
void listDelete ()
 Deletes the selected coordinate in the list. More...
 

Private Attributes

RSPolygonm_polygon
 
QtEditRegionShapem_editor
 
QListWidget * m_coordList
 
QFrame * m_coordFrame
 
vector< std::pair< QString,
QString > > 
m_enteredCoords
 
QLineEdit * m_coordXEdit
 
QLineEdit * m_coordYEdit
 

Detailed Description

Specialized widget for creating a new polygon.

Definition at line 130 of file QtNewRegionShape.qo.h.

Constructor & Destructor Documentation

casa::QtNewRSPolygon::QtNewRSPolygon ( RSPolygon poly,
QtRegionShapeManager manager 
)

Constructor which takes the polygon to modify.

casa::QtNewRSPolygon::~QtNewRSPolygon ( )

Destructor.

Member Function Documentation

void casa::QtNewRSPolygon::addCoordinates ( )
privateslot

Add the values entered in the line edits to the coord list.

void casa::QtNewRSPolygon::apply ( )
slot

Applies the entered values to the RSPolygon.

bool casa::QtNewRSPolygon::enteredCoordinatesAreValid ( casacore::String reason) const
void casa::QtNewRSPolygon::listDelete ( )
privateslot

Deletes the selected coordinate in the list.

void casa::QtNewRSPolygon::listMoveDown ( )
privateslot

Moves the selected coordinate down in the list.

void casa::QtNewRSPolygon::listMoveUp ( )
privateslot

Moves the selected coordinate up in the list.

Member Data Documentation

QFrame* casa::QtNewRSPolygon::m_coordFrame
private

Definition at line 151 of file QtNewRegionShape.qo.h.

QListWidget* casa::QtNewRSPolygon::m_coordList
private

Definition at line 150 of file QtNewRegionShape.qo.h.

QLineEdit* casa::QtNewRSPolygon::m_coordXEdit
private

Definition at line 153 of file QtNewRegionShape.qo.h.

QLineEdit * casa::QtNewRSPolygon::m_coordYEdit
private

Definition at line 153 of file QtNewRegionShape.qo.h.

QtEditRegionShape* casa::QtNewRSPolygon::m_editor
private

Definition at line 149 of file QtNewRegionShape.qo.h.

vector<std::pair<QString, QString> > casa::QtNewRSPolygon::m_enteredCoords
private

Definition at line 152 of file QtNewRegionShape.qo.h.

RSPolygon* casa::QtNewRSPolygon::m_polygon
private

Definition at line 148 of file QtNewRegionShape.qo.h.


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