|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjp.digitalmuseum.jogl.JoglModel
public class JoglModel
| 入れ子のクラスの概要 | |
|---|---|
static class |
JoglModel.Color
Class for holding color parameter. |
static class |
JoglModel.FloatArray
Class for holding a float array. |
static class |
JoglModel.JoglMaterial
Class which represents a JOGL material. |
static class |
JoglModel.JoglObject
Class which represents a JOGL object. |
static class |
JoglModel.LightSourcePoint
Class for holding three-dimensional coordinates of a light source. |
static class |
JoglModel.Point
Class for holding three-dimensional coordinates of a point. |
static class |
JoglModel.UV
Class for holding UV texture mapping parameters. |
| フィールドの概要 | |
|---|---|
protected JoglCoordinates |
coordinates
|
protected int |
frontFace
|
protected javax.media.opengl.GL |
gl
|
protected boolean |
hasOwnTextureManager
|
protected boolean |
isVboEnabled
|
protected JoglModel.JoglObject[] |
joglObjects
|
protected JoglModel.Point |
maxPos
|
protected JoglModel.Point |
minPos
|
protected JoglTextureManager |
textureManager
|
| コンストラクタの概要 | |
|---|---|
protected |
JoglModel(javax.media.opengl.GL gl,
JoglTextureManager textureManager,
JoglCoordinates coordinates,
boolean isVboEnabled)
Default constructor. |
| メソッドの概要 | |
|---|---|
protected static void |
append(java.lang.StringBuilder sb,
float[] array)
|
protected static void |
append(java.lang.StringBuilder sb,
int[] array)
|
protected static void |
append(java.lang.StringBuilder sb,
long[] array)
|
protected JoglModel.Point |
calcNormal(JoglModel.Point[] vertices,
int indexVertexA,
int indexVertexB,
int indexVertexC)
Calculate normal vector of a triangle face. |
void |
clear()
Free used memory spaces. |
void |
draw()
Draw this object. |
void |
draw(float alpha)
Draw this object with the specified transparency. |
JoglModel.Point |
getMaxPos()
|
void |
getMaxPosOut(JoglModel.Point p)
|
JoglModel.Point |
getMinPos()
|
void |
getMinPosOut(JoglModel.Point p)
|
static boolean |
isExtensionSupported(javax.media.opengl.GL gl,
java.lang.String targetExtension)
Returns whether current OpenGL implementation supports the specified extension. |
void |
setMaterialVisible(java.lang.String materialName,
boolean isVisible)
Set visibility of material. |
void |
setMaterialVisible(java.lang.String objectName,
java.lang.String materialName,
boolean isVisible)
Set visibility of material of an object. |
void |
setObjectVisible(java.lang.String objectName,
boolean isVisible)
Set visibility of an object. |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected javax.media.opengl.GL gl
protected JoglTextureManager textureManager
protected boolean hasOwnTextureManager
protected boolean isVboEnabled
protected int frontFace
protected JoglCoordinates coordinates
protected JoglModel.Point minPos
protected JoglModel.Point maxPos
protected JoglModel.JoglObject[] joglObjects
| コンストラクタの詳細 |
|---|
protected JoglModel(javax.media.opengl.GL gl,
JoglTextureManager textureManager,
JoglCoordinates coordinates,
boolean isVboEnabled)
gl - OpenGL object.textureManager - JoglTextureManager for managing textures. Create new one inside the instance if this parameter is null.coordinates - JoglCoordinates for managing coordinates.isVboEnabled - Whether to use VBO or not.| メソッドの詳細 |
|---|
public void setObjectVisible(java.lang.String objectName,
boolean isVisible)
objectName - Name of an object.isVisible - Visibility.
public void setMaterialVisible(java.lang.String materialName,
boolean isVisible)
materialName - Name of material.isVisible - Visibility.
public void setMaterialVisible(java.lang.String objectName,
java.lang.String materialName,
boolean isVisible)
objectName - Name of an object.materialName - Name of material.isVisible - Visibility.public void draw()
public void draw(float alpha)
alpha - 0 (completely transparent) - 1.0 (not transparent)public JoglModel.Point getMaxPos()
public void getMaxPosOut(JoglModel.Point p)
public JoglModel.Point getMinPos()
public void getMinPosOut(JoglModel.Point p)
public void clear()
protected JoglModel.Point calcNormal(JoglModel.Point[] vertices,
int indexVertexA,
int indexVertexB,
int indexVertexC)
vertices - Array of the coordinates of the verticesindexVertexA - Index of vertex A in the arrayindexVertexB - Index of vertex B in the arrayindexVertexC - Index of vertex C in the array
protected static void append(java.lang.StringBuilder sb,
int[] array)
protected static void append(java.lang.StringBuilder sb,
long[] array)
protected static void append(java.lang.StringBuilder sb,
float[] array)
public static boolean isExtensionSupported(javax.media.opengl.GL gl,
java.lang.String targetExtension)
gl - OpenGL objecttargetExtension - Name of OpenGL extension
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||