Index: mitkPointSet.cpp =================================================================== --- mitkPointSet.cpp (revision 21795) +++ 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 21795) +++ mitkPointSet.h (working copy) @@ -209,6 +209,8 @@ virtual void SetSelectInfo( int position, bool selected, int t = 0 ); + 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;