Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F484
PointSet.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
vongruen
Mar 22 2010, 10:36 AM
2010-03-22 10:36:44 (UTC+1)
Size
1 KB
Referenced Files
None
Subscribers
None
PointSet.patch
View Options
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;
File Metadata
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
464
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.
Mar 22 2010, 10:36 AM
2010-03-22 10:36:44 (UTC+1)
Comment Actions
Forgotten PointSet Patch
Log In to Comment