Package org.robwork.sdurw_graphics
Class TextureData
- java.lang.Object
-
- org.robwork.sdurw_geometry.Model3D.Texture
-
- org.robwork.sdurw_graphics.TextureData
-
public class TextureData extends Model3D.Texture
container for storing texture data.
-
-
Constructor Summary
Constructors Constructor Description TextureData()
constructorTextureData(long cPtr, boolean cMemoryOwn)
TextureData(java.lang.String name, float r, float g, float b)
constructorTextureData(java.lang.String name, ImagePtr img)
constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TexturePtr
clone()
Clone the current texture.
The image data will be shared with the clonevoid
delete()
static long
getCPtr(TextureData obj)
ImagePtr
getImageData()
get image datajava.lang.String
getName()
get id of textureVector3Df
getRGBData()
get RGB databoolean
hasImageData()
check if this texture has image data-
Methods inherited from class org.robwork.sdurw_geometry.Model3D.Texture
getCPtr
-
-
-
-
Constructor Detail
-
TextureData
public TextureData(long cPtr, boolean cMemoryOwn)
-
TextureData
public TextureData()
constructor
-
TextureData
public TextureData(java.lang.String name, ImagePtr img)
constructor- Parameters:
name
- [in] texture idimg
- [in] texture data
-
TextureData
public TextureData(java.lang.String name, float r, float g, float b)
constructor- Parameters:
name
- [in] texture idr
- [in] red value [0:1]g
- [in] green value [0:1]b
- [in] blue value [0:1]
-
-
Method Detail
-
getCPtr
public static long getCPtr(TextureData obj)
-
delete
public void delete()
- Overrides:
delete
in classModel3D.Texture
-
hasImageData
public boolean hasImageData()
check if this texture has image data- Overrides:
hasImageData
in classModel3D.Texture
- Returns:
- true if it has image data, false otherwise
-
getImageData
public ImagePtr getImageData()
get image data- Returns:
-
getRGBData
public Vector3Df getRGBData()
get RGB data- Overrides:
getRGBData
in classModel3D.Texture
- Returns:
-
getName
public java.lang.String getName()
get id of texture- Overrides:
getName
in classModel3D.Texture
- Returns:
-
clone
public TexturePtr clone()
Clone the current texture.
The image data will be shared with the clone- Overrides:
clone
in classModel3D.Texture
- Returns:
- rw::core::Ptr<Texture>
-
-