]> git.mxchange.org Git - simgear.git/blobdiff - simgear/canvas/elements/CanvasPath.hxx
Canvas: rework style setter system.
[simgear.git] / simgear / canvas / elements / CanvasPath.hxx
index 3ef722a4ca02b31f15cd895dc9b3733dd299a552..706f8cd715f53dda5ce17f120c6af57f0a2d5040 100644 (file)
@@ -31,11 +31,14 @@ namespace canvas
     public:
       Path( const CanvasWeakPtr& canvas,
             const SGPropertyNode_ptr& node,
-            const Style& parent_style );
+            const Style& parent_style,
+            Element* parent = 0 );
       virtual ~Path();
 
       virtual void update(double dt);
 
+      virtual osg::BoundingBox getTransformedBounds(const osg::Matrix& m) const;
+
     protected:
 
       enum PathAttributes
@@ -45,7 +48,8 @@ namespace canvas
       };
 
       class PathDrawable;
-      osg::ref_ptr<PathDrawable> _path;
+      typedef osg::ref_ptr<PathDrawable> PathDrawableRef;
+      PathDrawableRef _path;
 
       virtual void childRemoved(SGPropertyNode * child);
       virtual void childChanged(SGPropertyNode * child);