fw4spl
fwActivities::validator::ImageProperties Class Reference

Defines a validator which checks that properties of given images are the same. More...

#include <ImageProperties.hpp>

+ Inheritance diagram for fwActivities::validator::ImageProperties:
+ Collaboration diagram for fwActivities::validator::ImageProperties:

Public Member Functions

virtual bool isA (const std::string &type) const override
 
FWACTIVITIES_API ImageProperties (::fwActivities::IValidator::Key key)
 Constructor. Do nothing.
 
virtual FWACTIVITIES_API ~ImageProperties ()
 Destructor. Do nothing.
 
virtual FWACTIVITIES_API IValidator::ValidationType validate (const ::fwActivities::registry::ActivityInfo &activityInfo, const std::shared_ptr< const ::fwData::Vector > &currentSelection) const override
 Validates if the given images have the same properties (origin, spacing, ...) More...
 
virtual FWACTIVITIES_API IValidator::ValidationType validate (const std::shared_ptr< const ::fwData::Object > &currentObject) const override
 Validates if the given images have the same properties (origin, spacing, ...) More...
 
- Public Member Functions inherited from fwActivities::IObjectValidator
- Public Member Functions inherited from fwActivities::IValidator
- Public Member Functions inherited from fwCore::BaseObject

Static Public Member Functions

static bool isTypeOf (const std::string &type)
 
- Static Public Member Functions inherited from fwActivities::IObjectValidator
static bool isTypeOf (const std::string &type)
 
static const std::string & classname ()
 return full object's classname with its namespace, i.e. fwCore::BaseObject
 
- Static Public Member Functions inherited from fwActivities::IValidator
static bool isTypeOf (const std::string &type)
 
static const std::string & classname ()
 return full object's classname with its namespace, i.e. fwCore::BaseObject
 
- Static Public Member Functions inherited from fwCore::BaseObject
static bool isTypeOf (const std::string &type)
 
static const std::string & leafClassname ()
 return object's classname without its namespace, i.e. BaseObject
 
static const std::string & classname ()
 return object's classname without its namespace, i.e. BaseObject
 

Friends

template<class , class , class >
class ::fwTools::ClassFactory
 
class ::fwTools::Factory
 

Demangling methods

virtual const std::string & getLeafClassname () const override
 return object's classname without its namespace, i.e. BaseObject
 
virtual const std::string & getClassname () const override
 return full object's classname with its namespace, i.e. fwCore::BaseObject
 
static const std::string & leafClassname ()
 return object's classname without its namespace, i.e. BaseObject
 
static const std::string & classname ()
 return object's classname without its namespace, i.e. BaseObject
 

Additional Inherited Members

- Public Types inherited from fwActivities::IValidator
typedef std::pair< bool, std::string > ValidationType
 Defines validation result of an activity. First element tells if the activity is validated or not by the IValidator implementation. Second element may contains information about the result of activity validation.
 
typedef ::fwActivities::validator::factory::Key Key
 

Detailed Description

Defines a validator which checks that properties of given images are the same.

Definition at line 22 of file ImageProperties.hpp.

Member Function Documentation

virtual FWACTIVITIES_API IValidator::ValidationType fwActivities::validator::ImageProperties::validate ( const ::fwActivities::registry::ActivityInfo activityInfo,
const std::shared_ptr< const ::fwData::Vector > &  currentSelection 
) const
overridevirtual

Validates if the given images have the same properties (origin, spacing, ...)

See also
fwActivities::IValidator::validate

Reimplemented from fwActivities::IObjectValidator.

virtual FWACTIVITIES_API IValidator::ValidationType fwActivities::validator::ImageProperties::validate ( const std::shared_ptr< const ::fwData::Object > &  currentObject) const
overridevirtual

Validates if the given images have the same properties (origin, spacing, ...)

Note
Given object must be a Vector or Composite of ImageSeries (or images)
See also
fwActivities::IValidator::validate

Implements fwActivities::IObjectValidator.


The documentation for this class was generated from the following file: