|
JavaView® v2.00.008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--jv.object.PsObject
|
+--jv.geom.PgTexture
Texture image associated to a geometry. The geometry must supply texture coordinates in [0,1]*[0,1], either at vertices or for elements.
PgPointSet, Serialized Form| Field Summary | |
protected int |
m_height
Height of texture image. |
protected java.awt.Image |
m_image
Loaded texture image. |
protected java.lang.String |
m_imageName
File name of texture image. |
protected int |
m_width
Width of texture image. |
| Fields inherited from class jv.object.PsObject |
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_MATERIAL_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_SELECTED, IS_USED, m_infoPanel, m_name, m_panelList, m_parent, m_tag, m_updateList, NUM_TAGS |
| Constructor Summary | |
PgTexture()
|
|
| Method Summary | |
java.lang.Object |
clone()
Duplicate texture by recursively cloning all instance variables except inspector panels and lists of registered listeners. |
int |
getHeight()
Get height of texture image. |
java.awt.Image |
getImage()
Get image of texture. |
java.lang.String |
getImageName()
Get file name of texture image. |
int |
getWidth()
Get width of texture image. |
void |
init()
If instance has missing name then assign default name 'object_NUMBER' where number is the total number of already created instances. |
void |
setImage(java.awt.Image image)
Set image of texture. |
void |
setImage(java.lang.String name)
Set file name of texture image including full path or protocoll. |
| Methods inherited from class jv.object.PsObject |
addInspector, addUpdateListener, clearTag, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, removeInspector, removeUpdateListener, setName, setParent, setTag, toString, update, updatePanels |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String m_imageName
protected java.awt.Image m_image
protected int m_width
protected int m_height
| Constructor Detail |
public PgTexture()
| Method Detail |
public void init()
PsObjectinit in class PsObjectpublic java.lang.Object clone()
Link to image is copied. image is not cloned and not nulled since class Image has no clone() method.
clone in class PsObjectjv.object.PsObjectPsObject.copy(PsObject)public java.lang.String getImageName()
public void setImage(java.lang.String name)
public java.awt.Image getImage()
public void setImage(java.awt.Image image)
public int getHeight()
public int getWidth()
|
JavaView® v2.00.008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||