gepetto-viewer 6.0.0
An user-friendly Graphical Interface
Loading...
Searching...
No Matches
properties.h
Go to the documentation of this file.
1
8
9#ifndef GEPETTO_VIEWER_PROPERTIES_HH
10#define GEPETTO_VIEWER_PROPERTIES_HH
11
13
14namespace gepetto {
15namespace viewer {
17 public:
18 typedef osg::StateSetRefPtr StateSetRefPtr;
19
20 bool hasReadAccess() const { return static_cast<bool>(stateSet_); }
21 bool hasWriteAccess() const { return static_cast<bool>(stateSet_); }
22
23 std::string type() { return details::property_type<bool>::to_string(); }
24
25 BackfaceDrawingProperty() : Property("BackfaceDrawing") {}
26
27 void stateSet(const StateSetRefPtr& stateSet) { stateSet_ = stateSet; }
28 StateSetRefPtr stateSet() const { return stateSet_; }
29
30 virtual QWidget* guiEditor() { return details::buildEditor<bool>(this); }
31
32 protected:
33 bool impl_set(const bool& value);
34 bool impl_get(bool& value);
35
36 private:
37 osg::StateSetRefPtr stateSet_;
38};
39} /* namespace viewer */
40} /* namespace gepetto */
41
42#endif /* GEPETTO_VIEWER_PROPERTIES_HH */
StateSetRefPtr stateSet() const
Definition properties.h:28
virtual QWidget * guiEditor()
Definition properties.h:30
std::string type()
Definition properties.h:23
void stateSet(const StateSetRefPtr &stateSet)
Definition properties.h:27
bool hasWriteAccess() const
Definition properties.h:21
bool hasReadAccess() const
Definition properties.h:20
BackfaceDrawingProperty()
Definition properties.h:25
osg::StateSetRefPtr StateSetRefPtr
Definition properties.h:18
Abstract base class for runtime properties of Node.
Definition node-property.h:114
Definition action-search-bar.hh:27