]> SALOME platform Git repositories - modules/shaper.git/blob - src/Config/Config_SelectionFilterMessage.h
Salome HOME
Merge branch 'Dev_0.7.1' of newgeom:newgeom.git into Dev_0.7.1
[modules/shaper.git] / src / Config / Config_SelectionFilterMessage.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 /*
4  * Config_SelectionFilterMessage.h
5  *
6  *  Created on: 08 Jul 2014
7  *      Author: sbh
8  */
9
10 #ifndef CONFIG_SELECTIONFILTERMESSAGE_H_
11 #define CONFIG_SELECTIONFILTERMESSAGE_H_
12
13 #include <Events_Message.h>
14 #include <Config_def.h>
15
16 #include <list>
17 #include <string>
18
19 /// Event ID that Selection Filter is loaded (comes with Config_SelectionFilterMessage)
20 static const char * EVENT_SELFILTER_LOADED = "SelectionFilterLoaded";
21
22 /*!
23  * \class Config_SelectionFilterMessage
24  * \brief Transmits info about selection filters on "SelectionFilterLoaded" event
25  */
26 class Config_SelectionFilterMessage : public Events_Message
27 {
28   std::string mySelectionFilterId;
29   std::string myFeatureId;
30   std::string myAttributeId;
31   std::list<std::string> myFilterParameters;
32
33  public:
34   CONFIG_EXPORT Config_SelectionFilterMessage(const Events_ID theId, const void* theParent = 0);
35   CONFIG_EXPORT virtual ~Config_SelectionFilterMessage();
36
37   //! Get id of the filter
38   CONFIG_EXPORT const std::string& selectionFilterId() const;
39   //! Get id of a feature to which the filter belongs to
40   CONFIG_EXPORT const std::string& featureId() const;
41   //! Get id of an attribute to which the filter belongs to
42   CONFIG_EXPORT const std::string& attributeId() const;
43   //! Get filter parameters
44   CONFIG_EXPORT const std::list<std::string>& parameters() const;
45
46   //! Set id of the filter
47   CONFIG_EXPORT void setSelectionFilterId(const std::string& theId);
48   //! Set id of a feature to which the filter belongs to
49   CONFIG_EXPORT void setFeatureId(const std::string& theId);
50   //! Set id of an attribute to which the filter belongs to
51   CONFIG_EXPORT void setAttributeId(const std::string& theId);
52   //! Get filter parameters
53   CONFIG_EXPORT void setFilterParameters(const std::list<std::string>& parameters);
54 };
55
56 #endif /* CONFIG_SELECTIONFILTERMESSAGE_H_ */