#include <VisAttribute.h>
Collaboration diagram for VisAttribute:
Public Types | |
| VISIBLE | |
| NOT_VISIBLE | |
| NO_VISIBILITY | |
| OPENED | |
| CLOSED | |
| NO_STATUS | |
| PLAIN | |
| WIRE_FRAME | |
| NO_MODE | |
| enum | Visibility { VISIBLE, NOT_VISIBLE, NO_VISIBILITY } |
| enum | OpenStatus { OPENED, CLOSED, NO_STATUS } |
| enum | DisplayMode { PLAIN, WIRE_FRAME, NO_MODE } |
Public Member Functions | |
| VisAttribute () | |
| Default constructor. | |
| VisAttribute (Visibility visible, OpenStatus openStatus, DisplayMode displayMode, Color color) | |
| Standard constructor. | |
| const Color | color () const |
| Get accessor to member m_color. | |
| const Visibility | visible () const |
| Get accessor to member m_visible. | |
| const OpenStatus | openStatus () const |
| Get accessor to member m_openStatus. | |
| const DisplayMode | displayMode () const |
| Get accessor to member m_displayMode. | |
| void | merge (const VisAttribute attr) |
| Merges an attribute with this one. | |
| bool | operator== (const VisAttribute &v) const |
| equality operator for VisAttribute | |
| bool | operator!= (const VisAttribute &v) const |
| unequality operator for VisAttribute | |
Private Attributes | |
| Color | m_color |
| Visibility | m_visible |
| OpenStatus | m_openStatus |
| DisplayMode | m_displayMode |
Included attributes are :
Definition at line 20 of file VisAttribute.h.
| VisAttribute::VisAttribute | ( | ) | [inline] |
Default constructor.
Definition at line 29 of file VisAttribute.h.
00029 : 00030 m_color(), 00031 m_visible(NO_VISIBILITY), 00032 m_openStatus(NO_STATUS), 00033 m_displayMode(NO_MODE) 00034 {};
| VisAttribute::VisAttribute | ( | Visibility | visible, | |
| OpenStatus | openStatus, | |||
| DisplayMode | displayMode, | |||
| Color | color | |||
| ) | [inline] |
Standard constructor.
Definition at line 37 of file VisAttribute.h.
00040 : 00041 m_color(color), 00042 m_visible(visible), 00043 m_openStatus(openStatus), 00044 m_displayMode(displayMode) 00045 {};
| const Color VisAttribute::color | ( | ) | const [inline] |
Get accessor to member m_color.
Definition at line 51 of file VisAttribute.h.
00051 { 00052 return m_color; 00053 }
| const Visibility VisAttribute::visible | ( | ) | const [inline] |
Get accessor to member m_visible.
Definition at line 59 of file VisAttribute.h.
00059 { 00060 return m_visible; 00061 }
| const OpenStatus VisAttribute::openStatus | ( | ) | const [inline] |
Get accessor to member m_openStatus.
Definition at line 67 of file VisAttribute.h.
00067 { 00068 return m_openStatus; 00069 }
| const DisplayMode VisAttribute::displayMode | ( | ) | const [inline] |
Get accessor to member m_displayMode.
Definition at line 75 of file VisAttribute.h.
00075 { 00076 return m_displayMode; 00077 }
| void VisAttribute::merge | ( | const VisAttribute | attr | ) | [inline] |
Merges an attribute with this one.
This one has precedence but every undefined member will be defined using the other attribute
| attr | the attribute to merge with this one |
Definition at line 85 of file VisAttribute.h.
00085 { 00086 if (!m_color.isValid()) m_color = attr.color(); 00087 if (NO_VISIBILITY == m_visible) m_visible = attr.visible(); 00088 if (NO_STATUS == m_openStatus) m_openStatus = attr.openStatus(); 00089 if (NO_MODE == m_displayMode) m_displayMode = attr.displayMode(); 00090 return; 00091 }
| bool VisAttribute::operator== | ( | const VisAttribute & | v | ) | const [inline] |
equality operator for VisAttribute
Definition at line 96 of file VisAttribute.h.
00096 { 00097 return m_visible == v.visible() && 00098 m_openStatus == v.openStatus() && 00099 m_displayMode == v.displayMode() && 00100 m_color == v.color(); 00101 }
| bool VisAttribute::operator!= | ( | const VisAttribute & | v | ) | const [inline] |
unequality operator for VisAttribute
Definition at line 106 of file VisAttribute.h.
00106 { 00107 return !this->operator==(v); 00108 }
Color VisAttribute::m_color [private] |
Definition at line 111 of file VisAttribute.h.
Visibility VisAttribute::m_visible [private] |
Definition at line 112 of file VisAttribute.h.
OpenStatus VisAttribute::m_openStatus [private] |
Definition at line 113 of file VisAttribute.h.
DisplayMode VisAttribute::m_displayMode [private] |
Definition at line 114 of file VisAttribute.h.
1.4.7