View Javadoc
1   /* -------------------------------------------------------------------
2    * Java source file for the class TexCoordGeneration
3    * 
4    * Copyright (c), 2003, Masahiro Takatsuka.
5    * All Rights Researved.
6    * 
7    * Original Author: Masahiro Takatsuka (masa@jbeans.net)
8    * $Author: takatsukam $
9    * 
10   * $Date: 2004/03/03 11:53:06 $
11   * 
12   * $Id: TexCoordGeneration.java,v 1.3 2004/03/03 11:53:06 takatsukam Exp $
13   * 
14   * Reference:		Document no:
15   * ___				___
16   * 
17   * To Do:
18   * ___
19   * 
20  ------------------------------------------------------------------- */
21  
22  /* --------------------------- Package ---------------------------- */
23  package net.jbeans.j3d.scenegraph;
24  
25  /* ------------------ Import classes (packages) ------------------- *//package-summary/html">class="comment"> ------------------ Import classes (packages) ------------------- *//package-summary.html">class="comment">/* ------------------ Import classes (packages) ------------------- *//package-summary.html">class="comment"> ------------------ Import classes (packages) ------------------- */
26  import java.io.*;
27  import java.lang.reflect.*;
28  import java.util.*;
29  import javax.swing.event.*;
30  
31  import javax.vecmath.*;
32  
33  import net.jbeans.lang.*;
34  import net.jbeans.util.*;
35  import net.jbeans.util.debug.*;
36  
37  /*====================================================================
38                Implementation of class TexCoordGeneration              
39  ====================================================================*/
40  /***
41   * generally describe TexCoordGeneration in here
42   * 
43   * @version $Revision: 1.3 $
44   * @author Masahiro Takatsuka (masa@jbeans.net)
45   * @see javax.media.j3d.TexCoordGeneration
46   * @see Serializable
47   */
48  
49  public class TexCoordGeneration extends javax.media.j3d.TexCoordGeneration implements Serializable {
50  	private static final boolean DEBUG = Debug.getDebugFlag(TexCoordGeneration.class);
51  
52  	/* ------------------------ not serialized ------------------------ */
53  	public TexCoordGeneration() {
54  		super();
55  		initialize();
56  	}
57  
58  	public TexCoordGeneration(int genMode, int format) {
59  		super(genMode, format);
60  		initialize();
61  	}
62  	
63  	public TexCoordGeneration(int genMode, int format,
64  								Vector4f planeS, Vector4f planeT) {
65  		super(genMode, format, planeS, planeT);
66  		initialize();
67  	}
68  
69  	public TexCoordGeneration(int genMode, int format,
70  								Vector4f planeS, Vector4f planeT, Vector4f planeR) {
71  		super(genMode, format, planeS, planeT, planeR);
72  
73  		initialize();
74  	}
75  	
76  	private final void initialize() {
77  		setCapabilities();
78  	}
79  
80  	private final void setCapabilities() {
81  		setCapability(ALLOW_ENABLE_READ);
82  		setCapability(ALLOW_ENABLE_WRITE);		
83  		setCapability(ALLOW_FORMAT_READ);
84  		setCapability(ALLOW_MODE_READ);		
85  		setCapability(ALLOW_PLANE_READ);
86  	}
87  
88      /***
89       * Serialization methods
90       */
91      private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException {
92  		initialize();
93      }
94  }
95