Revision: 6897
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6897&view=rev
Author: mdboom
Date: 2009-02-09 20:06:49 +0000 (Mon, 09 Feb 2009)
Log Message:
-----------
Fix indentation.
Modified Paths:
--------------
trunk/matplotlib/src/path_cleanup.cpp
trunk/matplotlib/src/path_cleanup.h
Modified: trunk/matplotlib/src/path_cleanup.cpp
===================================================================
--- trunk/matplotlib/src/path_cleanup.cpp 2009-02-09 20:06:32 UTC (rev
6896)
+++ trunk/matplotlib/src/path_cleanup.cpp 2009-02-09 20:06:49 UTC (rev
6897)
@@ -7,7 +7,8 @@
#include "agg_py_transforms.h"
#include "path_converters.h"
-class PathCleanupIterator {
+class PathCleanupIterator
+{
typedef agg::conv_transform<PathIterator> transformed_path_t;
typedef PathNanRemover<transformed_path_t> nan_removal_t;
typedef PathClipper<nan_removal_t> clipped_t;
@@ -49,36 +50,36 @@
};
extern "C" {
- void*
- get_path_iterator(
- PyObject* path, PyObject* trans, int remove_nans, int do_clip,
- double rect[4], e_quantize_mode quantize_mode, int do_simplify)
- {
- agg::trans_affine agg_trans = py_to_agg_transformation_matrix(trans,
false);
- agg::rect_base<double> clip_rect(rect[0], rect[1], rect[2], rect[3]);
+ void*
+ get_path_iterator(
+ PyObject* path, PyObject* trans, int remove_nans, int do_clip,
+ double rect[4], e_quantize_mode quantize_mode, int do_simplify)
+ {
+ agg::trans_affine agg_trans = py_to_agg_transformation_matrix(trans,
false);
+ agg::rect_base<double> clip_rect(rect[0], rect[1], rect[2], rect[3]);
- PathCleanupIterator* pipeline = new PathCleanupIterator(
- path, agg_trans, remove_nans != 0, do_clip != 0,
- clip_rect, quantize_mode, do_simplify != 0);
+ PathCleanupIterator* pipeline = new PathCleanupIterator(
+ path, agg_trans, remove_nans != 0, do_clip != 0,
+ clip_rect, quantize_mode, do_simplify != 0);
- return (void*)pipeline;
- }
+ return (void*)pipeline;
+ }
- unsigned
- get_vertex(void* pipeline, double* x, double* y)
- {
- PathCleanupIterator* pipeline_iter = (PathCleanupIterator*)pipeline;
+ unsigned
+ get_vertex(void* pipeline, double* x, double* y)
+ {
+ PathCleanupIterator* pipeline_iter = (PathCleanupIterator*)pipeline;
- unsigned code = pipeline_iter->vertex(x, y);
- return code;
- }
+ unsigned code = pipeline_iter->vertex(x, y);
+ return code;
+ }
- void
- free_path_iterator(void* pipeline)
- {
- PathCleanupIterator* pipeline_iter = (PathCleanupIterator*)pipeline;
+ void
+ free_path_iterator(void* pipeline)
+ {
+ PathCleanupIterator* pipeline_iter = (PathCleanupIterator*)pipeline;
- delete pipeline_iter;
- }
+ delete pipeline_iter;
+ }
}
Modified: trunk/matplotlib/src/path_cleanup.h
===================================================================
--- trunk/matplotlib/src/path_cleanup.h 2009-02-09 20:06:32 UTC (rev 6896)
+++ trunk/matplotlib/src/path_cleanup.h 2009-02-09 20:06:49 UTC (rev 6897)
@@ -12,8 +12,8 @@
void*
get_path_iterator(
- PyObject* path, PyObject* trans, int remove_nans, int do_clip,
- double rect[4], e_quantize_mode quantize_mode, int do_simplify);
+ PyObject* path, PyObject* trans, int remove_nans, int do_clip,
+ double rect[4], e_quantize_mode quantize_mode, int do_simplify);
unsigned
get_vertex(void* pipeline, double* x, double* y);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins