home *** CD-ROM | disk | FTP | other *** search
/ Late Night VRML 2.0 with Java CD-ROM / code.zip / Ch12 / geometry / GroupingNode.bak < prev    next >
Text File  |  1997-01-01  |  898b  |  36 lines

  1. // VRML Generator
  2. // (c) Justin Couch 1996
  3. //
  4. // From Chapter 13 Late Night VRML 2.0 and Java
  5. //
  6. // GroupingNode abstract class. Base class for all the Grouping Nodes and
  7. // SpecialGroups
  8.  
  9. package geometry;
  10.  
  11. import java.io.PrintStream;
  12. import java.util.Vector;
  13. import vrml.external.field.EventInMFNode;
  14. import geometry.VrmlObject;
  15.  
  16. public abstract class GroupingNode extends VrmlObject
  17. {
  18.     protected EventInMFNode        _addChildren;
  19.     protected EventInMFNode        _removeChildren;
  20.     protected EventInMFNode        _set_children;
  21.  
  22.     protected Vector        _children = null;
  23.     protected float[]        _bboxCenter = null;
  24.     protected float[]        _bboxSize = null;
  25.  
  26.  
  27.     protected GroupingNode()
  28.     {
  29.     }
  30.  
  31.     public abstract void writeToFile(PrintStream fp, int indent);
  32.     public abstract void addChildren(VrmlObject child);
  33.     public abstract void removeChildren(VrmlObject child);
  34.     public abstract void set_children(VrmlObject[] child_list);
  35.  
  36. }