summaryrefslogtreecommitdiffstats
path: root/src/box3d.h
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2007-08-26 17:16:03 +0000
committercilix42 <cilix42@users.sourceforge.net>2007-08-26 17:16:03 +0000
commitcf59f9ff6a8eb98441942ca7d8618dfa31361e93 (patch)
treef1cf9056d32f60c1da57f5dc4d03749df851e44d /src/box3d.h
parent2 LPE things: (diff)
downloadinkscape-cf59f9ff6a8eb98441942ca7d8618dfa31361e93.tar.gz
inkscape-cf59f9ff6a8eb98441942ca7d8618dfa31361e93.zip
Rewrite of z-order code for 3D boxes, first stage (hopefully this is finally the right approach)
(bzr r3586)
Diffstat (limited to 'src/box3d.h')
-rw-r--r--src/box3d.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/box3d.h b/src/box3d.h
index e1b90c3f9..57c4f0e9b 100644
--- a/src/box3d.h
+++ b/src/box3d.h
@@ -38,6 +38,8 @@ struct SP3DBox : public SPGroup {
Box3DFace *faces[6];
guint z_orders[6]; // z_orders[i] holds the ID of the face at position #i in the group (from top to bottom)
+ std::vector<gint> currently_visible_faces;
+
// TODO: Keeping/updating the ratios works reasonably well but is still an ad hoc implementation.
// Use a mathematically correct model to update the boxes.
double ratio_x;
@@ -68,9 +70,8 @@ GType sp_3dbox_get_type (void);
void sp_3dbox_position_set (SP3DBoxContext &bc);
void sp_3dbox_set_shape(SP3DBox *box3d, bool use_previous_corners = false);
void sp_3dbox_recompute_corners (SP3DBox *box, NR::Point const pt1, NR::Point const pt2, NR::Point const pt3);
-bool sp_3dbox_recompute_z_orders (SP3DBox *box); /* returns true if there was a change in the z-orders
- (which triggers an update of the repr) */
-void sp_3dbox_set_z_orders (SP3DBox *box);
+void sp_3dbox_set_z_orders_in_the_first_place (SP3DBox *box);
+void sp_3dbox_set_z_orders_later_on (SP3DBox *box);
void sp_3dbox_update_curves (SP3DBox *box);
void sp_3dbox_link_to_existing_paths (SP3DBox *box, Inkscape::XML::Node *repr);
void sp_3dbox_set_ratios (SP3DBox *box, Box3D::Axis axes = Box3D::XYZ);