30 : QListWidget(parent), m_TimeStep(0), m_SelfCall(false), m_MultiWidget(NULL)
32 QListWidget::setAlternatingRowColors(
true);
35 QListWidget::setSelectionBehavior(QAbstractItemView::SelectRows);
36 QListWidget::setSelectionMode(QAbstractItemView::SingleSelection);
38 connect(
this, SIGNAL(itemDoubleClicked(QListWidgetItem *)),
this, SLOT(
OnItemDoubleClicked(QListWidgetItem *)));
113 _EditPointDialog.exec();
198 for (mitk::PointSet::PointsContainer::Iterator it = pointset->GetPoints()->Begin();
199 it != pointset->GetPoints()->End();
202 text = QString(
"%0: (%1, %2, %3)")
204 .arg(it.Value().GetElement(0), 0,
'f', 3)
205 .arg(it.Value().GetElement(1), 0,
'f', 3)
206 .arg(it.Value().GetElement(2), 0,
'f', 3);
208 if (i == this->count())
211 this->item(i)->setText(text);
213 if (currentRowChanged)
215 if (i == this->currentRow())
226 QListWidgetItem *item = this->takeItem(this->count() - 1);
231 if (!currentRowChanged)
236 std::cerr <<
"Point set has multiple selected points. This view is not designed for more than one selected point."
241 if (selectedIndex != -1)
243 this->setCurrentRow(selectedIndex);
void RemoveListener(const AbstractDelegate &delegate) const
void AddListener(const AbstractDelegate &delegate) const
A dialog for editing points directly (coordinates) via TextEdits.
itk::SmartPointer< Self > Pointer
virtual void ExecuteOperation(Operation *operation) override
executes the given Operation
itkObjectEvent ObjectDelete
AddEvent is emitted when the object pointed to gets deleted.
PointType GetPoint(PointIdentifier id, int t=0) const
Get the point with ID id in world coordinates.
Constants for most interaction classes, due to the generic StateMachines.
virtual void SetSelectInfo(int position, bool selected, int t=0)
DataType::PointIdentifier PointIdentifier
Data structure which stores a set of points. Superclass of mitk::Mesh.
virtual DataType::Pointer GetPointSet(int t=0) const
returns the pointset
static RenderingManager * GetInstance()
virtual int SearchSelectedPoint(int t=0) const
searches a selected point and returns the id of that point. If no point is found, then -1 is returned...
Operation that handles all actions on one Point.
virtual int GetNumberOfSelected(int t=0) const
returns the number of selected points
itkObjectEvent ObjectModified
AddEvent is emitted when the object pointed to gets modified.
void RequestUpdateAll(RequestType type=REQUEST_UPDATE_ALL)
void SetPoint(mitk::PointSet *_PointSet, mitk::PointSet::PointIdentifier _PointId, int timestep=0)