M3GToolkit 0.5.0

com.java4ever.m3g
Class PolygonMode

java.lang.Object
  extended bycom.java4ever.m3g.M3GObject
      extended bycom.java4ever.m3g.Object3D
          extended bycom.java4ever.m3g.PolygonMode

public class PolygonMode
extends Object3D


Field Summary
static int CULL_BACK
           
static int CULL_FRONT
           
static int CULL_NONE
           
static int SHADE_FLAT
           
static int SHADE_SMOOTH
           
static int WINDING_CCW
           
static int WINDING_CW
           
 
Fields inherited from class com.java4ever.m3g.M3GObject
ANIMATION_CONTROLLER, ANIMATION_TRACK, APPEARANCE, BACKGROUND, CAMERA, COMPOSITING_MODE, EXTERNAL_REFERENCE, FOG, GROUP, HEADER, IMAGE2D, KEYFRAME_SEQUENCE, LIGHT, MATERIAL, MESH, MORPHING_MESH, POLYGON_MODE, SKINNED_MESH, SPRITE3D, TEXTURE2D, TRIANGLE_STRIP_ARRAY, VERTEX_ARRAY, VERTEX_BUFFER, WORLD
 
Constructor Summary
PolygonMode()
           
 
Method Summary
 int getCulling()
           
 int getObjectType()
           
 int getShading()
           
 int getWinding()
           
 boolean isLocalCameraLightingEnabled()
           
 boolean isPerspectiveCorrectionEnabled()
           
 boolean isTwoSidedLightingEnabled()
           
protected  void read(M3GInputStream is, java.util.ArrayList table)
           
 void setCulling(int mode)
           
 void setLocalCameraLightingEnable(boolean enable)
           
 void setPerspectiveCorrectionEnable(boolean enable)
           
 void setShading(int mode)
           
 void setTwoSidedLightingEnable(boolean enable)
           
 void setWinding(int mode)
           
protected  void write(M3GOutputStream os, java.util.ArrayList table)
           
 
Methods inherited from class com.java4ever.m3g.Object3D
addAnimationTrack, animate, buildReferenceTable, duplicate, find, getAnimationTrack, getAnimationTrackCount, getReferences, getUserID, getUserObject, removeAnimationTrack, setUserID, setUserObject
 
Methods inherited from class com.java4ever.m3g.M3GObject
getObjectAtIndex, isRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CULL_BACK

public static final int CULL_BACK
See Also:
Constant Field Values

CULL_FRONT

public static final int CULL_FRONT
See Also:
Constant Field Values

CULL_NONE

public static final int CULL_NONE
See Also:
Constant Field Values

SHADE_FLAT

public static final int SHADE_FLAT
See Also:
Constant Field Values

SHADE_SMOOTH

public static final int SHADE_SMOOTH
See Also:
Constant Field Values

WINDING_CCW

public static final int WINDING_CCW
See Also:
Constant Field Values

WINDING_CW

public static final int WINDING_CW
See Also:
Constant Field Values
Constructor Detail

PolygonMode

public PolygonMode()
Method Detail

setCulling

public void setCulling(int mode)

getCulling

public int getCulling()

setWinding

public void setWinding(int mode)

getWinding

public int getWinding()

setShading

public void setShading(int mode)

getShading

public int getShading()

setTwoSidedLightingEnable

public void setTwoSidedLightingEnable(boolean enable)

isTwoSidedLightingEnabled

public boolean isTwoSidedLightingEnabled()

setLocalCameraLightingEnable

public void setLocalCameraLightingEnable(boolean enable)

isLocalCameraLightingEnabled

public boolean isLocalCameraLightingEnabled()

setPerspectiveCorrectionEnable

public void setPerspectiveCorrectionEnable(boolean enable)

isPerspectiveCorrectionEnabled

public boolean isPerspectiveCorrectionEnabled()

getObjectType

public int getObjectType()
Specified by:
getObjectType in class M3GObject

read

protected void read(M3GInputStream is,
                    java.util.ArrayList table)
             throws java.io.IOException
Overrides:
read in class Object3D
Throws:
java.io.IOException

write

protected void write(M3GOutputStream os,
                     java.util.ArrayList table)
              throws java.io.IOException
Overrides:
write in class Object3D
Throws:
java.io.IOException

M3GToolkit 0.5.0

Copyright 2005 java4ever.com. All Rights Reserved.