DGP - merged printing support from branch
[debian/openrocket] / src / net / sf / openrocket / rocketcomponent / BodyComponent.java
index 884893d559f90949d80a5ee0854f667ad12c3a31..97a12406f4e764d00cce6abf580b796f14d56b0e 100644 (file)
@@ -23,7 +23,6 @@ public abstract class BodyComponent extends ExternalComponent {
        }
        
        
-
        /**
         * Get the outer radius of the component at cylindrical coordinate (x,theta).
         * 
@@ -63,5 +62,16 @@ public abstract class BodyComponent extends ExternalComponent {
        public boolean allowsChildren() {
                return true;
        }
-       
+    
+    /**
+     * Accept a visitor to this BodyComponent in the component hierarchy.
+     * 
+     * @param theVisitor  the visitor that will be called back with a reference to this BodyComponent
+     */
+    @Override 
+    public void accept (final ComponentVisitor theVisitor) {
+        theVisitor.visit(this);
+    }
+    
+    
 }