Lines Matching refs:side
14 #include "box3d-side.h"
29 static void box3d_side_compute_corner_ids(Box3DSide *side, unsigned int corners[4]);
144 box3d_side_position_set (Box3DSide *side) {
145 side->set_shape();
148 side->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG);
162 g_warning("Parent of 3D box side is not a 3D box.\n");
173 // To do this, determine the perspective of the box, the orientation of the side (e.g., XY-FRONT)
187 g_warning ("Trying to draw a 3D box side with invalid coordinates.\n");
215 gchar *box3d_side_axes_string(Box3DSide *side)
218 g_string_printf (pstring, "%s", Box3D::string_from_axes ((Box3D::Axis) (side->dir1 ^ side->dir2)));
220 switch ((Box3D::Axis) (side->dir1 ^ side->dir2)) {
222 g_string_append_printf (pstring, (side->front_or_rear == Box3D::FRONT) ? "front" : "rear");
226 g_string_append_printf (pstring, (side->front_or_rear == Box3D::FRONT) ? "top" : "bottom");
230 g_string_append_printf (pstring, (side->front_or_rear == Box3D::FRONT) ? "right" : "left");
241 box3d_side_compute_corner_ids(Box3DSide *side, unsigned int corners[4]) {
242 Box3D::Axis orth = Box3D::third_axis_direction (side->dir1, side->dir2);
244 corners[0] = (side->front_or_rear ? orth : 0);
245 corners[1] = corners[0] ^ side->dir1;
246 corners[2] = corners[0] ^ side->dir1 ^ side->dir2;
247 corners[3] = corners[0] ^ side->dir2;
251 box3d_side_perspective(Box3DSide *side) {
252 SPBox3D *box = side ? dynamic_cast<SPBox3D *>(side->parent) : NULL;
256 Inkscape::XML::Node *box3d_side_convert_to_path(Box3DSide *side) {
258 SPDocument *doc = side->document;
262 repr->setAttribute("d", side->getAttribute("d"));
263 repr->setAttribute("style", side->getAttribute("style"));