Go to the documentation of this file.
20 #ifndef GNASH_MORPH_SHAPE_H
21 #define GNASH_MORPH_SHAPE_H
25 #include <boost/intrusive_ptr.hpp>
70 double currentRatio()
const;
72 const boost::intrusive_ptr<const SWF::DefineMorphShapeTag> _def;
bool pointTest(std::int32_t x, std::int32_t y, const SWFMatrix &wm) const
Definition: ShapeRecord.h:183
The base class for all ActionScript objects.
Definition: as_object.h:162
std::int32_t y
Definition: BitmapData_as.cpp:435
MorphShape(movie_root &mr, as_object *object, const SWF::DefineMorphShapeTag *def, DisplayObject *parent)
Definition: MorphShape.cpp:30
virtual bool pointInShape(std::int32_t x, std::int32_t y) const
Return true if the given point falls in this DisplayObject's shape.
Definition: MorphShape.cpp:40
SWFMatrix & invert()
Invert this SWFMatrix and return the result.
Definition: SWFMatrix.cpp:288
DefineMorphShape tag.
Definition: DefineMorphShapeTag.h:46
DSOEXPORT void expand_to_rect(const SWFRect &r)
Makes union of the given and the current SWFRect.
Definition: SWFRect.cpp:56
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
const SWFRect & getBounds() const
Definition: ShapeRecord.h:166
SWFMatrix getWorldMatrix(const DisplayObject &d, bool includeRoot=true)
Get concatenated SWFMatrix (all ancestor transforms and our SWFMatrix)
Definition: DisplayObject.h:1131
Base class for render handlers.
Definition: Renderer.h:189
const Transform & transform() const
Definition: DisplayObject.h:292
Rectangle class, see swf defined rectangle record.
Definition: SWFRect.h:45
std::int32_t x
The x coordinate.
Definition: Point2d.h:43
virtual SWFRect getBounds() const
Definition: MorphShape.cpp:79
void transform(geometry::Point2d &p) const
Transform a given point by our SWFMatrix.
Definition: SWFMatrix.cpp:99
Definition: SWFMatrix.h:54
2D Point class
Definition: Point2d.h:39
void clear_invalidated()
Definition: DisplayObject.h:720
DisplayObject * parent() const
Return the parent of this DisplayObject, or NULL if the DisplayObject has no parent.
Definition: DisplayObject.h:252
This class represents the 'Stage' and top-level movie.
Definition: movie_root.h:151
bool point_test(std::int32_t x, std::int32_t y) const
Return true if the given point is inside this SWFRect.
Definition: SWFRect.h:143
virtual void display(Renderer &renderer, const Transform &xform)
Render the DisplayObject.
Definition: MorphShape.cpp:62
const SWF::ShapeRecord & shape() const
Definition: MorphShape.h:62
std::int32_t y
The y coordinate.
Definition: Point2d.h:46
DisplayObject is the base class for all DisplayList objects.
Definition: DisplayObject.h:169
Holds information needed to draw a shape.
Definition: ShapeRecord.h:127
A DisplayObject that tweens between two shapes.
Definition: MorphShape.h:49
std::uint16_t get_ratio() const
Definition: DisplayObject.h:360
std::int32_t x
Definition: BitmapData_as.cpp:434
void setLerp(const ShapeRecord &a, const ShapeRecord &b, const double ratio)
Set to the lerp of two ShapeRecords.
Definition: ShapeRecord.cpp:132