• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KHTML

SVGAnimateMotionElement.h

Go to the documentation of this file.
00001 /*
00002  Copyright (C) 2007 Eric Seidel <eric@webkit.org>
00003  Copyright (C) 2008 Apple Inc. All Rights Reserved.
00004  
00005  This file is part of the WebKit project
00006  
00007  This library is free software; you can redistribute it and/or
00008  modify it under the terms of the GNU Library General Public
00009  License as published by the Free Software Foundation; either
00010  version 2 of the License, or (at your option) any later version.
00011  
00012  This library is distributed in the hope that it will be useful,
00013  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  Library General Public License for more details.
00016  
00017  You should have received a copy of the GNU Library General Public License
00018  along with this library; see the file COPYING.LIB.  If not, write to
00019  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020  Boston, MA 02110-1301, USA.
00021  */
00022 
00023 #ifndef SVGAnimateMotionElement_h
00024 #define SVGAnimateMotionElement_h
00025 #if ENABLE(SVG_ANIMATION)
00026 
00027 #include "SVGAnimationElement.h"
00028 #include "AffineTransform.h"
00029 #include "Path.h"
00030 
00031 namespace WebCore {
00032             
00033     class SVGAnimateMotionElement : public SVGAnimationElement {
00034     public:
00035         SVGAnimateMotionElement(const QualifiedName&, Document*);
00036         virtual ~SVGAnimateMotionElement();
00037 
00038         virtual bool hasValidTarget() const;
00039 
00040         virtual void parseMappedAttribute(MappedAttribute*);
00041         
00042     private:
00043         virtual const SVGElement* contextElement() const { return this; }
00044         
00045         virtual void resetToBaseValue(const String&);
00046         virtual bool calculateFromAndToValues(const String& fromString, const String& toString);
00047         virtual bool calculateFromAndByValues(const String& fromString, const String& byString);
00048         virtual void calculateAnimatedValue(float percentage, unsigned repeat, SVGSMILElement* resultElement);
00049         virtual void applyResultsToTarget();
00050         virtual float calculateDistance(const String& fromString, const String& toString);
00051         virtual Path animationPath() const;
00052         
00053         enum RotateMode {
00054             RotateAngle,
00055             RotateAuto,
00056             RotateAutoReverse
00057         };
00058         RotateMode rotateMode() const;
00059 
00060         FloatSize m_animatedTranslation;
00061         float m_animatedAngle;
00062 
00063         // Note: we do not support percentage values for to/from coords as the spec implies we should (opera doesn't either)
00064         FloatPoint m_fromPoint;
00065         float m_fromAngle;
00066         FloatPoint m_toPoint;
00067         float m_toAngle;
00068 
00069         unsigned m_baseIndexInTransformList;
00070 
00071         Path m_path;
00072         Vector<float> m_keyPoints;
00073         float m_angle;
00074     };
00075     
00076 } // namespace WebCore
00077 
00078 #endif // ENABLE(SVG_ANIMATION)
00079 #endif // SVGAnimateMotionElement_h
00080 
00081 // vim:ts=4:noet

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal