Code

Merge and cleanup of GSoC C++-ification project.
[inkscape.git] / src / box3d-side.h
1 #ifndef SEEN_BOX3D_SIDE_H
2 #define SEEN_BOX3D_SIDE_H
4 /*
5  * 3D box face implementation
6  *
7  * Authors:
8  *   Maximilian Albert <Anhalter42@gmx.de>
9  *   Abhishek Sharma
10  *
11  * Copyright (C) 2007  Authors
12  *
13  * Released under GNU GPL, read the file 'COPYING' for more information
14  */
16 #include "sp-polygon.h"
17 #include "axis-manip.h"
19 #define SP_TYPE_BOX3D_SIDE            (box3d_side_get_type ())
20 #define SP_BOX3D_SIDE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_BOX3D_SIDE, Box3DSide))
21 #define SP_BOX3D_SIDE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_BOX3D_SIDE, Box3DSideClass))
22 #define SP_IS_BOX3D_SIDE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_BOX3D_SIDE))
23 #define SP_IS_BOX3D_SIDE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_BOX3D_SIDE))
25 class SPBox3D;
26 class Box3DSide;
27 class Box3DSideClass;
28 class Persp3D;
30 // FIXME: Would it be better to inherit from SPPath instead?
31 struct Box3DSide : public SPPolygon {
32     Box3D::Axis dir1;
33     Box3D::Axis dir2;
34     Box3D::FrontOrRear front_or_rear;
35     long long int getFaceId();
36     static Box3DSide * createBox3DSide(SPBox3D *box);
37 };
39 struct Box3DSideClass {
40     SPPolygonClass parent_class;
41 };
43 GType box3d_side_get_type (void);
45 void box3d_side_position_set (Box3DSide *side); // FIXME: Replace this by box3d_side_set_shape??
47 gchar *box3d_side_axes_string(Box3DSide *side);
49 Persp3D *box3d_side_perspective(Box3DSide *side);
52 Inkscape::XML::Node *box3d_side_convert_to_path(Box3DSide *side);
54 #endif // SEEN_BOX3D_SIDE_H
56 /*
57   Local Variables:
58   mode:c++
59   c-file-style:"stroustrup"
60   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
61   indent-tabs-mode:nil
62   fill-column:99
63   End:
64 */
65 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :