diff options
| author | Markus Engel <markus.engel@tum.de> | 2013-04-05 15:51:29 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2013-04-05 15:51:29 +0000 |
| commit | dbda80349e95767e390a178cda7c05787fbce1fe (patch) | |
| tree | 851cb7ea9e876da0ff50665f16e2410604c79da1 /src/box3d.h | |
| parent | Merged Shape and subclasses. Cleaned up a bit. (diff) | |
| download | inkscape-dbda80349e95767e390a178cda7c05787fbce1fe.tar.gz inkscape-dbda80349e95767e390a178cda7c05787fbce1fe.zip | |
Merged Group and subclasses.
(bzr r11608.1.77)
Diffstat (limited to 'src/box3d.h')
| -rw-r--r-- | src/box3d.h | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/src/box3d.h b/src/box3d.h index b3f4f7d87..6763bb271 100644 --- a/src/box3d.h +++ b/src/box3d.h @@ -22,16 +22,15 @@ #define SP_TYPE_BOX3D (box3d_get_type ()) #define SP_BOX3D(obj) ((SPBox3D*)obj) -#define SP_IS_BOX3D(obj) (obj != NULL && static_cast<const SPObject*>(obj)->typeHierarchy.count(typeid(SPBox3D))) +#define SP_IS_BOX3D(obj) (dynamic_cast<const SPBox3D*>((SPObject*)obj)) struct Persp3D; class Persp3DReference; -class CBox3D; class SPBox3D : public SPGroup { public: SPBox3D(); - CBox3D* cbox3d; + virtual ~SPBox3D(); gint z_orders[6]; // z_orders[i] holds the ID of the face at position #i in the group (from top to bottom) @@ -52,18 +51,6 @@ public: * Create a SPBox3D and append it to the parent. */ static SPBox3D * createBox3D(SPItem * parent); -}; - -class SPBox3DClass { -public: - SPGroupClass parent_class; -}; - - -class CBox3D : public CGroup { -public: - CBox3D(SPBox3D* box3d); - virtual ~CBox3D(); virtual void build(SPDocument *document, Inkscape::XML::Node *repr); virtual void release(); @@ -74,14 +61,8 @@ public: virtual gchar *description(); virtual Geom::Affine set_transform(Geom::Affine const &transform); virtual void convert_to_guides(); - -protected: - SPBox3D* spbox3d; }; - -GType box3d_get_type (void); - void box3d_position_set (SPBox3D *box); Proj::Pt3 box3d_get_proj_corner (SPBox3D const *box, guint id); Geom::Point box3d_get_corner_screen (SPBox3D const *box, guint id, bool item_coords = true); |
