Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::SceneIOTestScenarioProvider::Scenario Struct Reference

#include <mitkSceneIOTestScenarioProvider.h>

Collaboration diagram for mitk::SceneIOTestScenarioProvider::Scenario:

Public Member Functions

DataStorage::Pointer BuildDataStorage () const
 Construct the DataStorage for this scenario. More...
 
 Scenario (const std::string &_key, const SceneIOTestScenarioProvider *_scenarioProvider, SceneIOTestScenarioProvider::BuilderMethodPointer _providerMethod, bool _isSerializable, const std::string &_referenceArchiveFilename, bool _isReferenceLoadable, double _comparisonPrecision)
 

Public Attributes

std::string key
 Description / ID. More...
 
bool serializable
 Do we expect that this can be stored in a .mitk file? More...
 
std::string referenceArchiveFilename
 Absolute filename with a reference .mitk file. More...
 
bool referenceArchiveLoadable
 Do we expect that the reference can be loaded without errors? More...
 
double comparisonPrecision
 Precision used for floating point comparisons after save/load cycle (eps). More...
 

Detailed Description

Structure to describe a single scenario.

Holds some descriptive members plus a pointer to a method in SceneIOTestScenarioProvider that is able to create a DataStorage. This DataStorage shall represent some particularity to be tested in a related test.

Definition at line 55 of file mitkSceneIOTestScenarioProvider.h.

Constructor & Destructor Documentation

mitk::SceneIOTestScenarioProvider::Scenario::Scenario ( const std::string &  _key,
const SceneIOTestScenarioProvider _scenarioProvider,
SceneIOTestScenarioProvider::BuilderMethodPointer  _providerMethod,
bool  _isSerializable,
const std::string &  _referenceArchiveFilename,
bool  _isReferenceLoadable,
double  _comparisonPrecision 
)
Parameters
_keyDescription / ID.
_scenarioProviderobject that contains the member function in _providerMethod
_providerMethodpointer to a member that creates a DataStorage for the scenario
_isSerializableDo we expect that this can be stored in a .mitk file?
_referenceArchiveFilenameAbsolute filename with a reference .mitk file.
_isReferenceLoadableDo we expect that the reference can be loaded without errors?
_comparisonPrecisionPrecision used for floating point comparisions after save/load cycle (eps).

Definition at line 73 of file mitkSceneIOTestScenarioProvider.cpp.

Member Function Documentation

mitk::DataStorage::Pointer mitk::SceneIOTestScenarioProvider::Scenario::BuildDataStorage ( ) const

Construct the DataStorage for this scenario.

Definition at line 68 of file mitkSceneIOTestScenarioProvider.cpp.

Member Data Documentation

double mitk::SceneIOTestScenarioProvider::Scenario::comparisonPrecision

Precision used for floating point comparisons after save/load cycle (eps).

Definition at line 61 of file mitkSceneIOTestScenarioProvider.h.

std::string mitk::SceneIOTestScenarioProvider::Scenario::key

Description / ID.

Definition at line 57 of file mitkSceneIOTestScenarioProvider.h.

std::string mitk::SceneIOTestScenarioProvider::Scenario::referenceArchiveFilename

Absolute filename with a reference .mitk file.

Definition at line 59 of file mitkSceneIOTestScenarioProvider.h.

bool mitk::SceneIOTestScenarioProvider::Scenario::referenceArchiveLoadable

Do we expect that the reference can be loaded without errors?

Definition at line 60 of file mitkSceneIOTestScenarioProvider.h.

bool mitk::SceneIOTestScenarioProvider::Scenario::serializable

Do we expect that this can be stored in a .mitk file?

Definition at line 58 of file mitkSceneIOTestScenarioProvider.h.


The documentation for this struct was generated from the following files: