Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F485
PointSet.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
vongruen
Apr 1 2010, 4:42 PM
2010-04-01 16:42:47 (UTC+2)
Size
1 KB
Referenced Files
None
Subscribers
None
PointSet.patch
View Options
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 <i>issued when a point is added to the PointSet</i>
* PointSetRemoveEvent <i>issued when a point is removed from the PointSet</i>
* </tt>
- *
+ * \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;
File Metadata
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
465
Default Alt Text
PointSet.patch (1 KB)
Attached To
Mode
T3415: 4D PointSet Writer and Loader does ignore Point specification
Attached
Detach File
Event Timeline
•
vongruen
added a comment.
Apr 1 2010, 4:42 PM
2010-04-01 16:42:47 (UTC+2)
Comment Actions
Bug changes
Log In to Comment