Logo Search packages:      
Sourcecode: inkscape version File versions

canvas-axonomgrid.h

#ifndef SP_CANVAS_AXONOMGRID_H
#define SP_CANVAS_AXONOMGRID_H

/*
 * SPCAxonomGrid
 *
 * Generic (and quite unintelligent) modified copy of the grid item for gnome canvas
 *
 * Copyright (C) 2006 Johan Engelen  <johan@shouraizou.nl>
 * Copyright (C) 2000 Lauris Kaplinski 2000
 *
 */

#include <display/sp-canvas.h>
#include <libnr/nr-coord.h>


#define SP_TYPE_CAXONOMGRID            (sp_caxonomgrid_get_type ())
#define SP_CAXONOMGRID(obj)            (GTK_CHECK_CAST ((obj), SP_TYPE_CAXONOMGRID, SPCAxonomGrid))
#define SP_CAXONOMGRID_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), SP_TYPE_CAXONOMGRID, SPCAxonomGridClass))
#define SP_IS_CAXONOMGRID(obj)         (GTK_CHECK_TYPE ((obj), SP_TYPE_CAXONOMGRID))
#define SP_IS_CAXONOMGRID_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), SP_TYPE_CAXONOMGRID))


/** \brief  All the variables that are tracked for a axonometric grid specific
            canvas item. */
00027 struct SPCAxonomGrid : public SPCanvasItem{
00028       NR::Point origin;     /**< Origin of the grid */
00029       double lengthy;       /**< The lengths of the primary y-axis */
00030       double angle_deg[3];  /**< Angle of each axis (note that angle[2] == 0) */
00031       double angle_rad[3];  /**< Angle of each axis (note that angle[2] == 0) */
00032       double tan_angle[3];  /**< tan(angle[.]) */
00033       guint32 color;        /**< Color for normal lines */
00034       guint32 empcolor;     /**< Color for emphasis lines */
00035       gint empspacing;      /**< Spacing between emphasis lines */
00036       bool scaled;          /**< Whether the grid is in scaled mode */
      
00038       NR::Point ow;         /**< Transformed origin by the affine for the zoom */
00039       double lyw;           /**< Transformed length y by the affine for the zoom */
      double lxw_x;
      double lxw_z;
      double spacing_ylines;
                          
00044     NR::Point sw;          /**< the scaling factors of the affine transform */
};

struct SPCAxonomGridClass {
      SPCanvasItemClass parent_class;
};


/* Standard Gtk function */
GtkType sp_caxonomgrid_get_type (void);



#endif    



Generated by  Doxygen 1.6.0   Back to index