IlvPredefinedIOMembers(IlvShadowEllipse); |
IlvGraphic* ShadowEllipse::read(IlvInputFile& input, IlvPalette* palette) { return new ShadowEllipse(input, palette); } IlvGraphic* ShadowEllipse::copy() const { return new ShadowEllipse(*this); } |
ShadowEllipse::ShadowEllipse(IlvInputFile& f, IlvPalette* pal) : IlvSimpleGraphic(f, pal), _rect(), _thickness(0) { int thickness; f.getStream() >> _rect >> thickness; _thickness = (IlvDim)thickness; _invertedPalette = 0; computeInvertedPalette(); } |
ShadowEllipse::ShadowEllipse(const ShadowEllipse& source) : IlvSimpleGraphic(source), _rect(source._rect), _thickness(source._thickness) { _invertedPalette = source._invertedPalette; _invertedPalette->lock(); } |
void ShadowEllipse::write(IlvOutputFile& f) const { f.getStream() << _rect << IlvSpc() << (int)_thickness; } |
void IlvRoundRectangle::write(IlvOutputFile& os) const { IlvRectangle::write(os); os.getStream() << IlvSpc() << _radius; } |
IlvRegisterClass(ShadowEllipse, IlvSimpleGraphic); |