|
JavaView® v2.12 | ||||||||
| 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| Fields inherited from class jv.object.PsObject |
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_SELECTED, IS_USED, 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. |
void |
copy(PgTexture src)
Copy base instance variables and prepend "Copy of" to name if identical to original object name. |
int |
getHeight()
Get height of used region in texture image. |
java.awt.Image |
getImage()
Get image of texture. |
java.lang.String |
getImageName()
Get file name of texture image. |
int |
getUMax()
Get upper width of used region in texture image. |
int |
getUMin()
Get lower width value of used region in texture image. |
int |
getVMax()
Get upper height of used region in texture image. |
int |
getVMin()
Get lower height value of used region in texture image. |
int |
getWidth()
Get width of used region in 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)
Deprecated. use #setImageName(String) instead. |
void |
setImageName(java.lang.String name)
Set file name of texture image including relative path or full url. |
void |
setUMax(int value)
Set upper width of used region in texture image. |
void |
setUMin(int value)
Set lower width value of used region in texture image. |
void |
setVMax(int value)
Set upper height of used region in texture image. |
void |
setVMin(int value)
Set lower height value of used region in texture image. |
boolean |
update(java.lang.Object event)
Update the class whenever a child has changed. |
| Methods inherited from class jv.object.PsObject |
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, removeInspector, removeUpdateListener, setName, setParent, setTag, toString, updatePanels |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 void copy(PgTexture src)
clone()public boolean update(java.lang.Object event)
update in class PsObjectjv.object.PsObjectPsObject.setParent(PsUpdateIf),
PsObject.getFather(),
PsObject.addUpdateListener(PsUpdateIf)public java.lang.String getImageName()
public void setImageName(java.lang.String name)
imageName - name of image file including a relative path.public void setImage(java.lang.String name)
public java.awt.Image getImage()
public void setImage(java.awt.Image image)
public int getUMin()
public void setUMin(int value)
value - in pixel coordinatespublic int getVMin()
public void setVMin(int value)
value - in pixel coordinatespublic int getUMax()
public void setUMax(int value)
value - in pixel coordinatespublic int getVMax()
public void setVMax(int value)
value - in pixel coordinatespublic int getWidth()
public int getHeight()
|
JavaView® v2.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||