Code

Super duper mega (fun!) commit: replaced encoding=utf-8 with fileencoding=utf-8 in...
[inkscape.git] / src / display / nr-filter-skeleton.cpp
index f595f13f16945fec949a1e9b35cb62911de419d8..c17bee1d4b2b6dff91e73e186e206ea7bddb10a1 100644 (file)
@@ -5,7 +5,7 @@
  * type, like gaussian or blend in respective case.
  *
  * This can be accomplished with the following sed command:
- * sed -e "s/Skeleton/Name/g" -e "s/skeleton/name" -e "s/SKELETON/NAME"
+ * sed -e "s/Skeleton/Name/g" -e "s/skeleton/name/" -e "s/SKELETON/NAME/"
  * nr-filter-skeleton.cpp >nr-filter-name.cpp
  *
  * (on one line, replace occurences of 'name' with your filter name)
 
 #include "display/nr-filter-skeleton.h"
 #include "display/nr-filter-slot.h"
+#include "display/nr-filter-units.h"
 #include "libnr/nr-pixblock.h"
-#include "libnr/nr-matrix.h"
 
-namespace NR {
+namespace Inkscape {
+namespace Filters {
 
 FilterSkeleton::FilterSkeleton() 
 {}
@@ -38,9 +39,10 @@ FilterPrimitive * FilterSkeleton::create() {
 FilterSkeleton::~FilterSkeleton()
 {}
 
-int FilterSkeleton::render(FilterSlot &slot, Matrix const &trans) {
-    NRPixBlock *in = slot.get(_input);
-    NRPixBlock *out;
+int FilterSkeleton::render(FilterSlot &slot,
+                           FilterUnits const &/*units*/) {
+    //NRPixBlock *in = slot.get(_input);
+    NRPixBlock *out = new NRPixBlock();
 
     /* Insert rendering code here */
 
@@ -50,7 +52,8 @@ int FilterSkeleton::render(FilterSlot &slot, Matrix const &trans) {
     return 0;
 }
 
-} /* namespace NR */
+} /* namespace Filters */
+} /* namespace Inkscape */
 
 /*
   Local Variables:
@@ -61,4 +64,4 @@ int FilterSkeleton::render(FilterSlot &slot, Matrix const &trans) {
   fill-column:99
   End:
 */
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :