PhyCylinder::SegmentColor Struct Reference
The structure used to define the color of a single segment of the cylinder. More...
Public Member Functions | |
SegmentColor () | |
Constructor. | |
SegmentColor (real s, QColor c) | |
Constructor. | |
bool | operator< (const SegmentColor &other) const |
Comparison operator, needed for sorting. | |
Public Attributes | |
QColor | color |
The color of the segment. | |
real | startingAngle |
The starting angle of the segment in radiants. | |
Detailed Description
The structure used to define the color of a single segment of the cylinder.
See the description of setSegmentsColor() for more information
Definition at line 61 of file phycylinder.h.
Constructor & Destructor Documentation
|
inline |
|
inline |
Constructor.
- Parameters
-
s the starting angle of the segment in radiants c the color of the segment
Definition at line 79 of file phycylinder.h.
Member Function Documentation
|
inline |
Comparison operator, needed for sorting.
This compares the angles
- Parameters
-
other the other object with which we are compared
- Returns
- true if we are less than other
Definition at line 92 of file phycylinder.h.
References PhyCylinder::SegmentColor::startingAngle.
Member Data Documentation
QColor color |
The color of the segment.
Definition at line 105 of file phycylinder.h.
real startingAngle |
The starting angle of the segment in radiants.
Definition at line 100 of file phycylinder.h.
Referenced by PhyCylinder::SegmentColor::operator<().
The documentation for this struct was generated from the following file:
- worldsim/include/phycylinder.h