23 #include "phyobject.h"
124 void setUpperBaseColor(QColor color);
133 return m_upperBaseColor;
143 void setLowerBaseColor(QColor color);
152 return m_lowerBaseColor;
171 void setSegmentsColor(QColor base,
const QList<SegmentColor>& segmentsColor);
182 if (colorv.isValid()) {
183 m_uniformColor[0].color = colorv;
185 return m_uniformColor;
187 return m_segmentsColor;
207 bool graphicalRepresentationNeedsUpdate(
void* renderer = NULL);
216 void setUpdateAllGraphicalRepresentation();
224 QColor m_upperBaseColor;
229 QColor m_lowerBaseColor;
237 QList<SegmentColor> m_segmentsColor;
245 mutable QList<SegmentColor> m_uniformColor;
253 QMap<void*, bool> m_graphicalRepresentationNeedsUpdate;
266 void createPrivateObject();
SegmentColor(Intervals i, QColor c)
Constructor.
Intervals intervals
The intervals of the cylinder with the given color.
static wMatrix identity()
create an identity matrix
real height() const
return the height
real radius() const
return the radius
The structure used to define the color of intervals of the cylinder.
SegmentColor()
Constructor.
const QList< SegmentColor > & segmentsColor() const
Returns the color of segments of the cylinder.
const QColor & lowerBaseColor() const
Returns the color of the lower base.
const QColor & upperBaseColor() const
Returns the color of the upper base.
QColor color
The color of the segment.