Index: mitkPointSet.cpp =================================================================== --- mitkPointSet.cpp (revision 21972) +++ mitkPointSet.cpp (working copy) @@ -237,6 +237,7 @@ defaultPointData.id = id; defaultPointData.selected = false; defaultPointData.pointSpec = mitk::PTUNDEFINED; + m_PointSetSeries[t]->SetPointData( id, defaultPointData ); //boundingbox has to be computed anyway m_CalculateBoundingBox = true; @@ -370,6 +371,7 @@ return false; } } + void mitk::PointSet::SetSelectInfo( int position, bool selected, int t ) { @@ -395,8 +397,20 @@ } } +mitk::PointSpecificationType mitk::PointSet::GetSpecificationTypeInfo( int position, int t ) const +{ + if ( this->IndexExists( position, t ) ) + { + PointDataType pointData = { 0, false, PTUNDEFINED }; + m_PointSetSeries[t]->GetPointData( position, &pointData ); + return pointData.pointSpec; + } + else + { + return PTUNDEFINED; + } +} - int mitk::PointSet::GetNumberOfSelected( int t ) const { if ( (unsigned int) t >= m_PointSetSeries.size() ) Index: mitkPointSet.h =================================================================== --- mitkPointSet.h (revision 21972) +++ mitkPointSet.h (working copy) @@ -76,7 +76,7 @@ * PointSetAddEvent issued when a point is added to the PointSet * PointSetRemoveEvent issued when a point is removed from the PointSet * - * + * \ingroup PSIO * \ingroup Data */ class MITK_CORE_EXPORT PointSet : public BaseData @@ -209,6 +209,9 @@ virtual void SetSelectInfo( int position, bool selected, int t = 0 ); + /** \brief to get the type of the point at the position and the moment */ + virtual mitk::PointSpecificationType mitk::PointSet::GetSpecificationTypeInfo( int position, int t ) const; + /** \brief returns the number of selected points */ virtual int GetNumberOfSelected( int t = 0 ) const;