Code

982596d8f20b43771f895208f5a0a3da76d93a3b
[inkscape.git] / src / box3d.h
1 #ifndef __SP_3DBOX_H__
2 #define __SP_3DBOX_H__
4 /*
5  * SVG <box3d> implementation
6  *
7  * Authors:
8  *   Lauris Kaplinski <lauris@kaplinski.com>
9  *   Maximilian Albert <Anhalter42@gmx.de>
10  *
11  * Copyright (C) 2007      Authors
12  * Copyright (C) 1999-2002 Lauris Kaplinski
13  * Copyright (C) 2000-2001 Ximian, Inc.
14  *
15  * Released under GNU GPL, read the file 'COPYING' for more information
16  */
18 #include "inkscape.h"
19 #include "perspective-line.h"
21 #include "sp-item-group.h"
22 #include "sp-path.h"
23 #include "xml/document.h"
24 #include "xml/repr.h"
25 #include "line-geometry.h"
26 #include "box3d-face.h"
29 #define SP_TYPE_3DBOX            (sp_3dbox_get_type ())
30 #define SP_3DBOX(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_3DBOX, SP3DBox))
31 #define SP_3DBOX_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_3DBOX, SP3DBoxClass))
32 #define SP_IS_3DBOX(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_3DBOX))
33 #define SP_IS_3DBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_3DBOX))
36 struct SP3DBox : public SPGroup {
37     Box3DFace *faces[6];
38 };
40 struct SP3DBoxClass {
41         SPGroupClass parent_class;
42 };
44 GType sp_3dbox_get_type (void);
46 void sp_3dbox_position_set (SP3DBoxContext &bc);
47 void sp_3dbox_compute_specific_corners (SP3DBoxContext *box3d_context, NR::Point &corner1, NR::Point &corner2, NR::Point &corner3, NR::Point &corner4);
49 #endif