fw4spl
ImageProperties.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2018.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #pragma once
8 
9 #include "fwActivities/config.hpp"
10 #include "fwActivities/IObjectValidator.hpp"
11 
12 #include <fwCore/base.hpp>
13 
14 namespace fwActivities
15 {
16 namespace validator
17 {
18 
22 class FWACTIVITIES_CLASS_API ImageProperties : public ::fwActivities::IObjectValidator
23 {
24 public:
26  (()),
27  ::fwActivities::validator::factory::New< ImageProperties > )
28 
29 
30  FWACTIVITIES_API ImageProperties(::fwActivities::IValidator::Key key);
31 
33  FWACTIVITIES_API virtual ~ImageProperties();
34 
39  FWACTIVITIES_API virtual IValidator::ValidationType validate(
40  const ::fwActivities::registry::ActivityInfo& activityInfo,
41  const CSPTR(::fwData::Vector)& currentSelection ) const override;
42 
48  FWACTIVITIES_API virtual IValidator::ValidationType validate(const CSPTR(::fwData::Object)& currentObject ) const
49  override;
50 };
51 
52 } // namespace validator
53 } // namespace fwActivities
#define CSPTR(_cls_)
Contains fwAtomsFilter::registry details.
Defines a validator which checks that properties of given images are the same.
std::pair< bool, std::string > ValidationType
Defines validation result of an activity. First element tells if the activity is validated or not by ...
Definition: IValidator.hpp:39
Base class for all fwActivities data validator&#39;s classes.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Base class for all fwActivities validator&#39;s classes.
Definition: IValidator.hpp:29
Namespace containing activities data and builder.
Contains the representation of the data objects used in the framework.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.