1
#ifndef __BOX3D_SIDE_H__
2
#define __BOX3D_SIDE_H__
5
* 3D box face implementation
8
* Maximilian Albert <Anhalter42@gmx.de>
10
* Copyright (C) 2007 Authors
12
* Released under GNU GPL, read the file 'COPYING' for more information
15
#include "sp-polygon.h"
16
#include "axis-manip.h"
18
#define SP_TYPE_BOX3D_SIDE (box3d_side_get_type ())
19
#define SP_BOX3D_SIDE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_BOX3D_SIDE, Box3DSide))
20
#define SP_BOX3D_SIDE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_BOX3D_SIDE, Box3DSideClass))
21
#define SP_IS_BOX3D_SIDE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_BOX3D_SIDE))
22
#define SP_IS_BOX3D_SIDE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_BOX3D_SIDE))
29
// FIXME: Would it be better to inherit from SPPath instead?
30
struct Box3DSide : public SPPolygon {
33
Box3D::FrontOrRear front_or_rear;
36
struct Box3DSideClass {
37
SPPolygonClass parent_class;
40
GType box3d_side_get_type (void);
42
//void sp_box3d_side_position_set (Box3DSide *side, NR::Point corner1, NR::Point corner2);
43
void box3d_side_set_shape (SPShape *shape);
44
void box3d_side_position_set (Box3DSide *side); // FIXME: Replace this by box3d_side_set_shape??
45
void box3d_side_apply_style (Box3DSide *side);
46
gchar *box3d_side_axes_string(Box3DSide *side);
47
Persp3D *box3d_side_perspective(Box3DSide *side);
49
Inkscape::XML::Node *box3d_side_convert_to_path(Box3DSide *side);
51
#endif /* __BOX3D_SIDE_H__ */
56
c-file-style:"stroustrup"
57
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
62
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :