summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 392efbf)
raw | patch | inline | side by side (parent: 392efbf)
author | joncruz <joncruz@users.sourceforge.net> | |
Sat, 15 Dec 2007 19:55:32 +0000 (19:55 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Sat, 15 Dec 2007 19:55:32 +0000 (19:55 +0000) |
diff --git a/src/box3d-context.cpp b/src/box3d-context.cpp
index 858e7fc57be29c9cfbaa59b068a1bed976f72843..f66647ef7cd5fea87fef58ee95d5d4adfbde056f 100644 (file)
--- a/src/box3d-context.cpp
+++ b/src/box3d-context.cpp
@@ -612,7 +612,7 @@ static gint sp_box3d_context_root_handler(SPEventContext *event_context, GdkEven
return ret;
}
-static void sp_box3d_drag(Box3DContext &bc, guint state)
+static void sp_box3d_drag(Box3DContext &bc, guint /*state*/)
{
SPDesktop *desktop = SP_EVENT_CONTEXT(&bc)->desktop;
diff --git a/src/box3d-side.cpp b/src/box3d-side.cpp
index ee449be476794d4911eed857aec25837d5cae8ba..9c61a0fce49f771939c486da5ca1b5ae4459917b 100644 (file)
--- a/src/box3d-side.cpp
+++ b/src/box3d-side.cpp
static void box3d_side_apply_style (Box3DSide *side);
static Proj::Pt3 box3d_side_corner (Box3DSide *side, guint index);
static std::vector<Proj::Pt3> box3d_side_corners (Box3DSide *side);
-static gint box3d_side_descr_to_id (gchar const *descr);
+// static gint box3d_side_descr_to_id (gchar const *descr);
static SPShapeClass *parent_class;
}
Inkscape::XML::Node *repr = SP_OBJECT_REPR (shape);
+ (void)repr;
Persp3D *persp = box3d_side_perspective(side);
//g_return_if_fail (persp != NULL);
if (!persp) {
return corners;
}
+/*
static gint
box3d_side_descr_to_id (gchar const *descr)
{
g_print (" (description is: %s)\n", descr);
return -1;
}
+*/
Persp3D *
box3d_side_perspective(Box3DSide *side) {
diff --git a/src/box3d.cpp b/src/box3d.cpp
index 038a6b06b768e45b6edfbe849a03883fdfd65896..0f8abd71d0fd5bc7192883e2d3e92e35e1d6f950 100644 (file)
--- a/src/box3d.cpp
+++ b/src/box3d.cpp
}
static NR::Matrix
-box3d_set_transform(SPItem *item, NR::Matrix const &xform)
+box3d_set_transform(SPItem */*item*/, NR::Matrix const &xform)
{
/* check whether we need to unlink any boxes from their perspectives */
std::set<Persp3D *> p_sel = persp3d_currently_selected_persps(inkscape_active_event_context());
* Gets called when persp(?) repr contents change: i.e. parameter change.
*/
static void
-box3d_ref_modified(SPObject *href, guint flags, SPBox3D *box)
+box3d_ref_modified(SPObject */*href*/, guint /*flags*/, SPBox3D */*box*/)
{
/***
g_print ("FIXME: box3d_ref_modified was called. What should we do?\n");
g_print ("Here is at least the the href's id: %s\n", SP_OBJECT_REPR(href)->attribute("id"));
g_print (" ... and the box's, too: %s\n", SP_OBJECT_REPR(box)->attribute("id"));
***/
-
+
}
Proj::Pt3
return box->persp_ref->getObject()->tmat.image(proj_center).affine();
}
-/*
+/*
* To keep the snappoint from jumping randomly between the two lines when the mouse pointer is close to
* their intersection, we remember the last snapped line and keep snapping to this specific line as long
* as the distance from the intersection to the mouse pointer is less than remember_snap_threshold.
bool corner7_move_x = (id & Box3D::X) && (movement & Box3D::X);
bool corner7_move_y = (id & Box3D::Y) && (movement & Box3D::Y);
// normalizing pt_proj is essential because we want to mingle affine coordinates
- pt_proj.normalize();
+ pt_proj.normalize();
box->orig_corner0 = Proj::Pt3 (corner0_move_x ? pt_proj[Proj::X] : box->orig_corner0[Proj::X],
corner0_move_y ? pt_proj[Proj::Y] : box->orig_corner0[Proj::Y],
(id & Box3D::Z) ? box->orig_corner0[Proj::Z] : pt_proj[Proj::Z],
@@ -609,7 +609,7 @@ void box3d_set_center (SPBox3D *box, NR::Point const &new_pos, NR::Point const &
pt_proj = box3d_snap (box, -1, pt_proj, old_pos_proj);
}
// normalizing pt_proj is essential because we want to mingle affine coordinates
- pt_proj.normalize();
+ pt_proj.normalize();
box->orig_corner0 = Proj::Pt3 ((movement & Box3D::X) ? pt_proj[Proj::X] - radx : box->orig_corner0[Proj::X],
(movement & Box3D::Y) ? pt_proj[Proj::Y] - rady : box->orig_corner0[Proj::Y],
box->orig_corner0[Proj::Z],
@@ -627,7 +627,7 @@ void box3d_set_center (SPBox3D *box, NR::Point const &new_pos, NR::Point const &
Proj::Pt3 pt_proj (box->persp_ref->getObject()->tmat.preimage (new_pos_snapped, coord, Proj::X));
/* normalizing pt_proj is essential because we want to mingle affine coordinates */
- pt_proj.normalize();
+ pt_proj.normalize();
box->orig_corner0 = Proj::Pt3 (box->orig_corner0[Proj::X],
box->orig_corner0[Proj::Y],
pt_proj[Proj::Z] - radz,
@@ -643,7 +643,7 @@ void box3d_set_center (SPBox3D *box, NR::Point const &new_pos, NR::Point const &
* Manipulates corner1 through corner4 to contain the indices of the corners
* from which the perspective lines in the direction of 'axis' emerge
*/
-void box3d_corners_for_PLs (const SPBox3D * box, Proj::Axis axis,
+void box3d_corners_for_PLs (const SPBox3D * box, Proj::Axis axis,
NR::Point &corner1, NR::Point &corner2, NR::Point &corner3, NR::Point &corner4)
{
g_return_if_fail (box->persp_ref->getObject());
@@ -887,7 +887,7 @@ box3d_set_new_z_orders_case1 (SPBox3D *box, int z_orders[6], Box3D::Axis central
//g_print ("central axis Z (case b2)");
box3d_aux_set_z_orders (z_orders, 5, 3, 4, 1, 0, 2);
//box3d_aux_set_z_orders (z_orders, 5, 3, 0, 1, 2, 4);
- }
+ }
} else {
// "regular" case
if (!swapped) {
@@ -923,7 +923,7 @@ box3d_set_new_z_orders_case1 (SPBox3D *box, int z_orders[6], Box3D::Axis central
/* Precisely 2 finite VPs */
static void
-box3d_set_new_z_orders_case2 (SPBox3D *box, int z_orders[6], Box3D::Axis central_axis, Box3D::Axis infinite_axis) {
+box3d_set_new_z_orders_case2 (SPBox3D *box, int z_orders[6], Box3D::Axis central_axis, Box3D::Axis /*infinite_axis*/) {
Persp3D *persp = box->persp_ref->getObject();
NR::Point c3(box3d_get_corner_screen(box, 3));
@@ -944,6 +944,9 @@ box3d_set_new_z_orders_case2 (SPBox3D *box, int z_orders[6], Box3D::Axis central
//g_print ("Insides: xy = %d, xz = %d, yx = %d, yz = %d, zx = %d, zy = %d\n",
// insidexy, insidexz, insideyx, insideyz, insidezx, insidezy);
+ (void)insidexz;
+ (void)insideyx;
+ (void)insidezx;
//g_print ("1 infinite VP; ");
switch(central_axis) {
diff --git a/src/object-edit.cpp b/src/object-edit.cpp
index 9c8db0936210a1130434fcc5dbe9867c1d18c7af..51ec2da10e00beb1d96cf69bd4f7b2b5745219a6 100644 (file)
--- a/src/object-edit.cpp
+++ b/src/object-edit.cpp
return box3d_get_corner_screen(box, knot_id) * i2d;
}
-static void box3d_knot_set(SPItem *item, guint knot_id, NR::Point const &new_pos, NR::Point const &origin, guint state)
+static void box3d_knot_set(SPItem *item, guint knot_id, NR::Point const &new_pos, NR::Point const &/*origin*/, guint state)
{
g_assert(item != NULL);
SPBox3D *box = SP_BOX3D(item);
return box3d_knot_get(item, 7);
}
-static void box3d_knot_click(SPItem *item, guint state, guint id)
+static void box3d_knot_click(SPItem */*item*/, guint /*state*/, guint id)
{
g_print ("Corner %d was clicked\n", id);
}
index cbd855c317fcd9af80754d06b87fae48e3301263..339c8e181ca7bf9db6690daf3e37e16b987cd076 100644 (file)
@@ -149,7 +149,7 @@ persp3dreference_delete_self(SPObject */*deleted*/, Persp3DReference *persp3dref
}
static void
-persp3dreference_source_modified(SPObject *iSource, guint flags, Persp3DReference *persp3dref)
+persp3dreference_source_modified(SPObject */*iSource*/, guint /*flags*/, Persp3DReference *persp3dref)
{
/**
g_print ("persp3dreference_source_modified; FIXME: Can we leave this to the parent URIReference?\n");
diff --git a/src/persp3d.cpp b/src/persp3d.cpp
index 818afe053ffacd106536a41410d5a24e75caf2e5..cb7b31803a725efe23c5dc8ccde5e792989d6d5d 100644 (file)
--- a/src/persp3d.cpp
+++ b/src/persp3d.cpp
persp1->boxes.insert(persp1->boxes.begin(), persp2->boxes.begin(), persp2->boxes.end());
}
-static void
-persp3d_on_repr_attr_changed ( Inkscape::XML::Node * repr,
- const gchar *key,
- const gchar *oldval,
- const gchar *newval,
- bool is_interactive,
+static void
+persp3d_on_repr_attr_changed ( Inkscape::XML::Node * /*repr*/,
+ const gchar */*key*/,
+ const gchar */*oldval*/,
+ const gchar */*newval*/,
+ bool /*is_interactive*/,
void * data )
{
//g_print("persp3d_on_repr_attr_changed!!!! TODO: Do we need to trigger any further updates than the box reprs?");
index 0b68ff54141f279879d41090b8ed71c9359acbc5..403162d0e19c63cbcd0d7a73b9572041842d9ae5 100644 (file)
--- a/src/vanishing-point.cpp
+++ b/src/vanishing-point.cpp
};
static void
-vp_drag_sel_changed(Inkscape::Selection *selection, gpointer data)
+vp_drag_sel_changed(Inkscape::Selection */*selection*/, gpointer data)
{
VPDrag *drag = (VPDrag *) data;
drag->updateDraggers();
}
static void
-vp_drag_sel_modified (Inkscape::Selection *selection, guint flags, gpointer data)
+vp_drag_sel_modified (Inkscape::Selection */*selection*/, guint /*flags*/, gpointer data)
{
VPDrag *drag = (VPDrag *) data;
drag->updateLines ();
}
static void
-vp_knot_moved_handler (SPKnot *knot, NR::Point const *ppointer, guint state, gpointer data)
+vp_knot_moved_handler (SPKnot */*knot*/, NR::Point const *ppointer, guint state, gpointer data)
{
VPDragger *dragger = (VPDragger *) data;
VPDrag *drag = dragger->parent;
@@ -163,7 +163,7 @@ vp_knot_moved_handler (SPKnot *knot, NR::Point const *ppointer, guint state, gpo
// ... and merge any duplicate perspectives
d_new->mergePerspectives();
-
+
// TODO: Update the new merged dragger
//d_new->updateKnotShape ();
d_new->updateTip();
@@ -200,7 +200,7 @@ vp_knot_moved_handler (SPKnot *knot, NR::Point const *ppointer, guint state, gpo
/* helpful for debugging */
static void
-vp_knot_clicked_handler(SPKnot *knot, guint state, gpointer data)
+vp_knot_clicked_handler(SPKnot */*knot*/, guint /*state*/, gpointer data)
{
VPDragger *dragger = (VPDragger *) data;
g_print ("\nVPDragger contains the following VPs: ");
}
void
-vp_knot_grabbed_handler (SPKnot *knot, unsigned int state, gpointer data)
+vp_knot_grabbed_handler (SPKnot */*knot*/, unsigned int /*state*/, gpointer data)
{
VPDragger *dragger = (VPDragger *) data;
VPDrag *drag = dragger->parent;
}
static void
-vp_knot_ungrabbed_handler (SPKnot *knot, guint state, gpointer data)
+vp_knot_ungrabbed_handler (SPKnot *knot, guint /*state*/, gpointer data)
{
VPDragger *dragger = (VPDragger *) data;
for (std::list<VanishingPoint>::iterator i = vps.begin(); i != vps.end(); ++i) {
if (persp3d_perspectives_coincide(persp, (*i).get_perspective())) {
return true;
- }
+ }
}
return false;
}
this->lines = g_slist_append (this->lines, line);
}
-} // namespace Box3D
-
+} // namespace Box3D
+
/*
Local Variables:
mode:c++