OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Alex Mathews <possessedpenguinbob@gmail.com> | 2 * Copyright (C) 2008 Alex Mathews <possessedpenguinbob@gmail.com> |
3 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
4 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 4 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
5 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> | 5 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> |
6 * Copyright (C) 2010 Zoltan Herczeg <zherczeg@webkit.org> | 6 * Copyright (C) 2010 Zoltan Herczeg <zherczeg@webkit.org> |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 LightSource(LightType type) | 63 LightSource(LightType type) |
64 : m_type(type) | 64 : m_type(type) |
65 { } | 65 { } |
66 | 66 |
67 virtual ~LightSource(); | 67 virtual ~LightSource(); |
68 | 68 |
69 LightType type() const { return m_type; } | 69 LightType type() const { return m_type; } |
70 virtual TextStream& externalRepresentation(TextStream&) const = 0; | 70 virtual TextStream& externalRepresentation(TextStream&) const = 0; |
71 | 71 |
72 virtual void initPaintingData(PaintingData&) = 0; | 72 virtual void initPaintingData(PaintingData&) const = 0; |
73 // z is a float number, since it is the alpha value scaled by a user | 73 // z is a float number, since it is the alpha value scaled by a user |
74 // specified "surfaceScale" constant, which type is <number> in the SVG stan
dard | 74 // specified "surfaceScale" constant, which type is <number> in the SVG stan
dard |
75 virtual void updatePaintingData(PaintingData&, int x, int y, float z) = 0; | 75 virtual void updatePaintingData(PaintingData&, int x, int y, float z) const
= 0; |
76 | 76 |
77 virtual bool setAzimuth(float) { return false; } | 77 virtual bool setAzimuth(float) { return false; } |
78 virtual bool setElevation(float) { return false; } | 78 virtual bool setElevation(float) { return false; } |
79 virtual bool setX(float) { return false; } | 79 virtual bool setX(float) { return false; } |
80 virtual bool setY(float) { return false; } | 80 virtual bool setY(float) { return false; } |
81 virtual bool setZ(float) { return false; } | 81 virtual bool setZ(float) { return false; } |
82 virtual bool setPointsAtX(float) { return false; } | 82 virtual bool setPointsAtX(float) { return false; } |
83 virtual bool setPointsAtY(float) { return false; } | 83 virtual bool setPointsAtY(float) { return false; } |
84 virtual bool setPointsAtZ(float) { return false; } | 84 virtual bool setPointsAtZ(float) { return false; } |
85 virtual bool setSpecularExponent(float) { return false; } | 85 virtual bool setSpecularExponent(float) { return false; } |
86 virtual bool setLimitingConeAngle(float) { return false; } | 86 virtual bool setLimitingConeAngle(float) { return false; } |
87 | 87 |
88 private: | 88 private: |
89 LightType m_type; | 89 LightType m_type; |
90 }; | 90 }; |
91 | 91 |
92 } // namespace WebCore | 92 } // namespace WebCore |
93 | 93 |
94 #endif // LightSource_h | 94 #endif // LightSource_h |
OLD | NEW |