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

SegmentColor ( )
inline

Constructor.

Sets color to white

Definition at line 67 of file phycylinder.h.

SegmentColor ( real  s,
QColor  c 
)
inline

Constructor.

Parameters
sthe starting angle of the segment in radiants
cthe color of the segment

Definition at line 79 of file phycylinder.h.

Member Function Documentation

bool operator< ( const SegmentColor other) const
inline

Comparison operator, needed for sorting.

This compares the angles

Parameters
otherthe 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: