X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fbox3d.h;h=5dbf0cf5e4912aeea30a82ae10cfe35a171a5425;hb=c7cf14ac71346f76ae219ce67fb88c1bd34832e2;hp=182a312e13b9ffdcb989302cfdff2b5bb73358df;hpb=094dc7c249a0253b9bbed67205e341a05b59eca7;p=inkscape.git diff --git a/src/box3d.h b/src/box3d.h index 182a312e1..5dbf0cf5e 100644 --- a/src/box3d.h +++ b/src/box3d.h @@ -1,5 +1,5 @@ -#ifndef __SP_BOX3D_H__ -#define __SP_BOX3D_H__ +#ifndef SEEN_SP_BOX3D_H +#define SEEN_SP_BOX3D_H /* * SVG implementation @@ -7,6 +7,7 @@ * Authors: * Lauris Kaplinski * Maximilian Albert + * Abhishek Sharma * * Copyright (C) 2007 Authors * Copyright (C) 1999-2002 Lauris Kaplinski @@ -30,7 +31,7 @@ class Persp3D; class Persp3DReference; class SPBox3D : public SPGroup { - public: +public: gint z_orders[6]; // z_orders[i] holds the ID of the face at position #i in the group (from top to bottom) gchar *persp_href; @@ -45,10 +46,15 @@ class SPBox3D : public SPGroup { Box3D::Axis swapped; // to indicate which coordinates are swapped during dragging gint my_counter; // for debugging only + + /** + * Create a SPBox3D and append it to the parent. + */ + static SPBox3D * createBox3D(SPItem * parent); }; class SPBox3DClass { - public: +public: SPGroupClass parent_class; }; @@ -80,7 +86,7 @@ void box3d_switch_perspectives(SPBox3D *box, Persp3D *old_persp, Persp3D *new_pe SPGroup *box3d_convert_to_group(SPBox3D *box); -#endif /* __SP_BOX3D_H__ */ +#endif // SEEN_SP_BOX3D_H /* Local Variables: @@ -91,4 +97,4 @@ SPGroup *box3d_convert_to_group(SPBox3D *box); fill-column:99 End: */ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :