31 MITK_WARN(
"NavigationDataSet") <<
"Tried to add too many or too few navigation Datas to NavigationDataSet. " <<
m_NumberOfTools <<
" required, tried to add " << navigationDatas.size() <<
".";
38 for (std::vector<mitk::NavigationData::Pointer>::size_type i = 0; i < navigationDatas.size(); i++)
41 MITK_WARN(
"NavigationDataSet") <<
"IGTTimeStamp of new NavigationData should be newer than timestamp of last NavigationData.";
54 MITK_WARN(
"NavigationDataSet") <<
"There is no NavigationData available at index " << index <<
".";
60 MITK_WARN(
"NavigationDataSet") <<
"There is NavigatitionData available at index " << index <<
" for tool " << toolIndex <<
".";
102 MITK_WARN(
"NavigationDataSet") <<
"Invalid toolIndex: " <<
m_NumberOfTools <<
" Tools known, requested index " << toolIndex <<
"";
103 return std::vector<mitk::NavigationData::Pointer>();
106 std::vector< mitk::NavigationData::Pointer > result;
108 for(std::vector<std::vector<NavigationData::Pointer> >::size_type i = 0; i <
m_NavigationDataVectors.size(); i++)
150 return (
Size() == 0);
156 for (
unsigned int toolIndex = 0; toolIndex < this->
GetNumberOfTools(); ++ toolIndex)
166 std::stringstream str;
167 str <<
"NavigationData Tool " << toolIndex;
169 dn->SetData(_tempPointSet);
unsigned int m_NumberOfTools
The Number of Tools that this class is going to support.
static BaseRenderer * GetInstance(vtkRenderWindow *renWin)
static vtkRenderWindow * GetRenderWindowByName(const std::string &name)
~NavigationDataSet() override
void SetRequestedRegion(const itk::DataObject *data) override
Set the requested region from this data object to match the requested region of the data object passe...
virtual NavigationDataSetConstIterator Begin() const
Returns an iterator pointing to the first TimeStep.
virtual NavigationDataSetConstIterator End() const
Returns an iterator pointing behind to the last TimeStep.
unsigned int GetNumberOfTools() const
Returns the number of tools for which NavigationDatas are stored in this set.
DataCollection - Class to facilitate loading/accessing structured data.
bool VerifyRequestedRegion() override
Verify that the RequestedRegion is within the LargestPossibleRegion.
void SetRequestedRegionToLargestPossibleRegion() override
Set the RequestedRegion to the LargestPossibleRegion.
unsigned int Size() const
Returns the number of time steps stored in this NavigationDataSet.
NavigationData::Pointer GetNavigationDataForIndex(unsigned int index, unsigned int toolIndex) const
Get mitk::NavigationData from the given tool at given index.
bool IsEmpty() const override
This overrid is probably a little hacky. See Bug 19086.
virtual std::vector< mitk::NavigationData::Pointer > GetTimeStep(unsigned int index) const
Returns a vector that contains NavigationDatas for each tool for a given timestep.
void ConvertNavigationDataToPointSet() const
bool AddNavigationDatas(std::vector< mitk::NavigationData::Pointer > navigationDatas)
Add mitk::NavigationData of the given tool to the Set.
std::vector< std::vector< NavigationData::Pointer > > m_NavigationDataVectors
Holds all the mitk::NavigationData objects managed by this class.
virtual std::vector< mitk::NavigationData::Pointer > GetDataStreamForTool(unsigned int toolIndex)
Get last mitk::Navigation object for given tool whose timestamp is less than the given timestamp...
virtual DataStorage::Pointer GetDataStorage() const
std::vector< std::vector< mitk::NavigationData::Pointer > >::const_iterator NavigationDataSetConstIterator
This iterator iterates over the distinct time steps in this set. And is const.
NavigationDataSet(unsigned int numTools)
Constructs set with fixed number of tools.
bool RequestedRegionIsOutsideOfTheBufferedRegion() override
Determine whether the RequestedRegion is outside of the BufferedRegion.